Comments (65)
I thought you'd never ask :P
from mini_racer.
6.0 released 🎉
from mini_racer.
I'll revert this commit and release another beta. Bundler is not selecting the correct version of libv8 I think. Try uninstalling 6.*. Sorry for taking so long to respond. My ISP has a broken optical connection.
from mini_racer.
Any update on this?
from mini_racer.
beta up on rubygems
from mini_racer.
OK, will do a stable release asap
from mini_racer.
just an FYI, we will be losing FreeBSD support with this version due to lack of upstream support. I decided to not hold up the release more. Will hopefully work out a solution and release binaries at a later stage.
from mini_racer.
OK, my plan for tomorrow is to bench it on Discourse!
from mini_racer.
yes, 100% 6.3.292.48.0beta1 in my gemfile lock ... trying to build a repro
from mini_racer.
Will cut another release for you to test tomorrow if the CI passes tonight :)
from mini_racer.
everything looks good on my end. tests pass. no funky behavior (more than usual) :P
from mini_racer.
It is holiday season, I will try to get a new stable out next week, but will only upgrade Discourse the week after
from mini_racer.
thanks heaps @ignisf for the work on libv8 6.3 we now have a new release.
from mini_racer.
I'm getting
mkdir -p tmp/x86_64-darwin15/mini_racer_extension/2.2.4
cd tmp/x86_64-darwin15/mini_racer_extension/2.2.4
/Users/user/.rvm/rubies/ruby-2.2.4/bin/ruby -I. ../../../../ext/mini_racer_extension/extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
creating Makefile
cd -
cd tmp/x86_64-darwin15/mini_racer_extension/2.2.4
/usr/bin/make
compiling ../../../../ext/mini_racer_extension/mini_racer_extension.cc
clang: warning: argument unused during compilation: '-rdynamic'
linking shared-object mini_racer_extension.bundle
clang: warning: libstdc++ is deprecated; move to libc++
ld: unknown option: --start-group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mini_racer_extension.bundle] Error 1
rake aborted!
Command failed with status (2): [/usr/bin/make...]
/Users/user/.rvm/gems/ruby-2.2.4/gems/rake-compiler-0.9.9/lib/rake/extensiontask.rb:157:in `block (2 levels) in define_compile_tasks'
/Users/user/.rvm/gems/ruby-2.2.4/gems/rake-compiler-0.9.9/lib/rake/extensiontask.rb:156:in `block in define_compile_tasks'
/Users/user/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
/Users/user/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => compile => compile:x86_64-darwin15 => compile:mini_racer_extension:x86_64-darwin15 => copy:mini_racer_extension:x86_64-darwin15:2.2.4 => tmp/x86_64-darwin15/mini_racer_extension/2.2.4/mini_racer_extension.bundle
(See full trace by running task with --trace)
on rake clean compile
is my platform built @ignisf or am I doing something else wrong?
from mini_racer.
looks like this issue is #66 and I think related to the --start-group linker error (unknown option)
The weird thing is that it's inconsistent on when it shows up. Will resolve on other issue.
from mini_racer.
from mini_racer.
haha thanks @ignisf -- can't tell if this is introducing the issue or fixing it? Assuming introduces, but don't understand how this is happening on mini_racer mainline (through bundler) when dependency is @ 5.9
Maybe my grasp of what bundler is doing is poor. :\
from mini_racer.
it's all good @ignisf! Thanks for the response.
Good luck with your internet!
from mini_racer.
You were right-- uninstalling 6.0 got the correct libv8 version to load up, and has isolated the issue to 6.0beta. Thanks for the help @ignisf :)
Awaiting new beta for testing.
from mini_racer.
6.0 beta2 is up
from mini_racer.
Everything works @ignisf thanks!
Running test suite now.
from mini_racer.
Tests all check out. :)
from mini_racer.
@seanmakesgames are you testing it on production again? :D
from mini_racer.
That's just how he roll :)
from mini_racer.
Can you see significant performance improvement?
from mini_racer.
Haha, nah-- was running against my test suite. I'll be 'testing on production' once mini_racer has upped its version number. ;)
I didn't do any benchmarking as part of my test cases because I run them multicore. It did 'feel' faster, but that's not useful information. :P
from mini_racer.
Haha. When I updated Node to 8.4.0 (with v8 6.0) it was about 40% faster.
Do you have any ETA? :)
from mini_racer.
That's a question for @SamSaffron (whom I'm sure is busy atm, or he'd probably have said something already) ;)
from mini_racer.
@krzysiek1507 I don't have an eta, but once @seanmakesgames is happy that 6.0 is stable I am happy to bounce the version.
My initial testing definitely did not show a 40% improvement in my microbench maybe 5-10%
from mini_racer.
Note, I am travelling over the next 3 weeks so I am not 100% sure I will be super fast here.
from mini_racer.
Thanks, guys! You are doing great work!
from mini_racer.
@SamSaffron 6.0 appears stable. I'm good with a rev bump.
from mini_racer.
When I installed it from my repo I saw error:
/bundle/bin/rake assets:precompile: symbol lookup error: /bundle/bundler/gems/mini_racer-458c7fafa7a0/lib/mini_racer_extension.so: undefined symbol: _ZN2v84base5debug27EnableInProcessStackDumpingEv
Version: libv8 6.0.286.54.1 (x86_64-linux)
on Debian jessie
from mini_racer.
Will do another release next week
from mini_racer.
Thanks!
from mini_racer.
confirmed @ignisf getting:
/home/sam/.rbenv/versions/2.3.1/bin/ruby: symbol lookup error: /home/sam/Source/mini_racer/lib/mini_racer_extension.so: undefined symbol: _ZN2v84base5debug27EnableInProcessStackDumpingEv
on GCC with 6.0.286 , can you have a look?
from mini_racer.
morning, back from vacation, will try to check it out
from mini_racer.
from mini_racer.
the missing symbol was due to the reordering of the libraries. Who knew Google's wiki would lie... Should be fixed in master and the 6.0 branches
from mini_racer.
Released a version that fixes this.
from mini_racer.
@ignisf I would like to push us up to 6.2 which is latest stable, any chance you can do a build, then @seanmakesgames can validate it looks good?
from mini_racer.
received. mini_racer tests are passing. Running hackmud suite now.
from mini_racer.
Tests pass. ✅
@ignisf
from mini_racer.
from mini_racer.
Fine by me. ;)
I'm excited to see how this release performs in the live environment. 😄
from mini_racer.
from mini_racer.
from mini_racer.
That's strange. My full test suite passed. :\
from mini_racer.
oops @ignisf looks like 6.2 is hanging for me during script runs. I will try to build a repro for this. I wonder if this was a temporary bug in v8 or if it is fixed in 6.3
6.0 seems to work fine though.
from mini_racer.
the repro of the bug is to run: https://github.com/discourse/discourse/blob/master/script/benchmarks/markdown/bench.rb but that involves a full discourse install...
from mini_racer.
will look into building betas for 6.1 and 6.3
from mini_racer.
@SamSaffron, just released 6.3 beta.
from mini_racer.
Oh no :( looks like this is hanging as well, going to create a simple repro script here and ask v8 folks for help.
from mini_racer.
@SamSaffron, are you sure you're testing with mini_racer linked against the 6.3 beta and not by any chance linked against 6.2?
from mini_racer.
from mini_racer.
OK, v8 team say it backports very cleanly, can you try maybe adding that patch and doing another 6.3 release?
from mini_racer.
Hey, sounds good, will look into backporting.
from mini_racer.
from mini_racer.
from mini_racer.
@SamSaffron let me know when you've tested the patch on this. I'll run my suite against it after.
from mini_racer.
Looking good on my side! @ignisf bench is no longer hanging, 6.3 appears slower than 5.9 in some of the bench suite (and faster in other bits):
5.9
tiny post sanitize: true
129.364 (±10.8%) i/s - 636.000 in 5.014269s
giant post sanitize: true
106.396 (±10.3%) i/s - 530.000 in 5.073153s
most features sanitize: true
54.285 (± 7.4%) i/s - 272.000 in 5.039917s
lots of mentions sanitize: true
0.404 (± 0.0%) i/s - 3.000 in 7.428951s
tiny post sanitize: false
284.413 (± 8.8%) i/s - 1.430k in 5.071733s
giant post sanitize: false
207.441 (± 7.2%) i/s - 1.050k in 5.092453s
most features sanitize: false
74.881 (± 6.7%) i/s - 378.000 in 5.071991s
lots of mentions sanitize: false
0.403 (± 0.0%) i/s - 3.000 in 7.441425s
markdown it no extensions commonmark tiny post
7.832k (± 4.3%) i/s - 39.744k in 5.083833s
markdown it no extensions commonmark giant post
916.757 (± 9.5%) i/s - 4.550k in 5.054635s
markdown it no extensions commonmark most features
1.493k (± 6.3%) i/s - 7.560k in 5.087277s
markdown it no extensions commonmark lots of mentions
2.089k (± 5.5%) i/s - 10.556k in 5.070508s
6.3
tiny post sanitize: true
129.675 (±10.8%) i/s - 648.000 in 5.070792s
giant post sanitize: true
106.214 (±10.4%) i/s - 530.000 in 5.057866s
most features sanitize: true
52.109 (±11.5%) i/s - 260.000 in 5.054359s
lots of mentions sanitize: true
0.335 (± 0.0%) i/s - 2.000 in 5.988207s
tiny post sanitize: false
257.299 (±10.9%) i/s - 1.288k in 5.073169s
giant post sanitize: false
208.196 (± 9.6%) i/s - 1.050k in 5.093251s
most features sanitize: false
75.199 (± 6.6%) i/s - 378.000 in 5.053536s
lots of mentions sanitize: false
0.393 (± 0.0%) i/s - 2.000 in 5.091215s
markdown it no extensions commonmark tiny post
7.643k (± 4.3%) i/s - 38.743k in 5.078730s
markdown it no extensions commonmark giant post
934.341 (±12.2%) i/s - 4.592k in 5.079925s
markdown it no extensions commonmark most features
1.472k (± 3.6%) i/s - 7.452k in 5.068865s
markdown it no extensions commonmark lots of mentions
2.054k (± 6.9%) i/s - 10.400k in 5.095029s
Benchmark is: https://github.com/discourse/discourse/blob/master/script/benchmarks/markdown/bench.rb
from mini_racer.
.0 and .1 releases are up on rubygems.
from mini_racer.
prepping to run the suite on this (have been making changes, so want to make sure tests are passing first) ;)
Will be running tests against 6.3.292.48.1 and let you know how it goes.
from mini_racer.
What about 6.4? They promise a significant optimization.
from mini_racer.
I too am eager to push libv8 6.4. Just have to find some time to do so.
from mini_racer.
Related Issues (20)
- sq_mini_racer Ruby 3.1 incompatibility (`Psych::DisallowedClass`) HOT 2
- After MacOS Ventura upgrade. gem install works, bundle install does not HOT 2
- Context has no Isolate available anymore HOT 3
- bundler install error HOT 5
- Installing mini_racer 0.6 on docker M1 fails with "make: printf: Argument list too long" HOT 4
- Update default branch to `main` HOT 3
- Unexpected token p in JSON at position HOT 2
- Gem::Ext::BuildError: ERROR: Failed to build gem native extension (Ruby 2.7.4) HOT 3
- Discuss: Release version 1.0.0 and manage consumer breaking version expectations HOT 3
- Node release catch-up plan HOT 42
- CI Improvements HOT 1
- `Isolate::low_memory_notification` fails to lock Isolate HOT 5
- Error installing mini_racer: ERROR: Failed to build gem native extension HOT 7
- Undefined Conversion
- Segmentation fault when application stops (Ruby 3.2.2, HOT 11
- mini_racer not starting: `ZSt28__throw_bad_array_new_lengthv: symbol not found (LoadError)` HOT 9
- Suggestions for context defaults for server side rendering HOT 4
- Security guarantees? HOT 1
- mini_racer 0.12.0 Segmentation fault on x86_64-linux with libv8-node 21.7.2.0 HOT 74
- Using IO or rescuing exceptions when setting a timeout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini_racer.