public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: new global USE flag: jit
@ 2012-05-14 18:05 Alexandre Rostovtsev
  2012-05-14 18:09 ` Agostino Sarubbo
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Alexandre Rostovtsev @ 2012-05-14 18:05 UTC (permalink / raw
  To: gentoo-dev

I propose adding the following global USE flag:

jit - Enable just-in-time compilation for improved performance. May
prevent use of some PaX memory protection features in Gentoo Hardened.


Current local flags that could probably be unified:

app-arch/libzpaq:jit - Enable just-in-time compilation for faster
compression (requires SSE2)

dev-libs/libpcre:jit - Enable Just-In-Time compilation of regexp
bytecode to machine code, through the SLJIT compiler. This feature might
conflict wtih security mitigation strategies such as NX/PaX as enabled
by Gentoo Hardened.

dev-python/pypy:jit - Enable the JIT compiler

dev-scheme/racket:jit - Enable just-in-time compiler

media-sound/csound:luajit - Use the lua just-in-time compiler
dev-lang/luajit instead of dev-lang/lua

net-libs/webkit-gtk:jit - Enable JIT javascript compiler (disabling it
will cause performance penalty)

www-client/epiphany:jit - Allow using net-libs/webkit-gtk that has the
JIT javascript compiler enabled

www-client/luakit:luajit - Use the lua just-in-time compiler
dev-lang/luajit instead of dev-lang/lua, which should make luakit
faster.

www-client/seamonkey:methodjit - Enable JIT for JavaScript using
MethodJIT for faster JS performance. Hardened users can disable this
USE-flag to use MPROTECT on grsecurity kernels.

www-servers/nginx:pcre-jit - Enable JIT for pcre

x11-libs/qt-core:jit - Enables JIT for Javascript usage inside Qt

x11-libs/qt-script:jit - Enables JIT for Javascript usage inside Qt

x11-libs/qt-webkit:jit - Enable JavaScriptCore just-in-time compiler for
faster JavaScript execution

-Alexandre.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
@ 2012-05-14 18:09 ` Agostino Sarubbo
  2012-05-14 18:48   ` Pacho Ramos
  2012-05-14 19:51 ` Dirkjan Ochtman
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Agostino Sarubbo @ 2012-05-14 18:09 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

On Monday 14 May 2012 14:05:12 Alexandre Rostovtsev wrote:
> I propose adding the following global USE flag:
> 
> jit - Enable just-in-time compilation for improved performance. May
> prevent use of some PaX memory protection features in Gentoo Hardened.
> 
> 
> Current local flags that could probably be unified:
> 
> app-arch/libzpaq:jit - Enable just-in-time compilation for faster
> compression (requires SSE2)
> 
> dev-libs/libpcre:jit - Enable Just-In-Time compilation of regexp
> bytecode to machine code, through the SLJIT compiler. This feature might
> conflict wtih security mitigation strategies such as NX/PaX as enabled
> by Gentoo Hardened.
> 
> dev-python/pypy:jit - Enable the JIT compiler
> 
> dev-scheme/racket:jit - Enable just-in-time compiler
> 
> media-sound/csound:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua
> 
> net-libs/webkit-gtk:jit - Enable JIT javascript compiler (disabling it
> will cause performance penalty)
> 
> www-client/epiphany:jit - Allow using net-libs/webkit-gtk that has the
> JIT javascript compiler enabled
> 
> www-client/luakit:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua, which should make luakit
> faster.
> 
> www-client/seamonkey:methodjit - Enable JIT for JavaScript using
> MethodJIT for faster JS performance. Hardened users can disable this
> USE-flag to use MPROTECT on grsecurity kernels.
> 
> www-servers/nginx:pcre-jit - Enable JIT for pcre
> 
> x11-libs/qt-core:jit - Enables JIT for Javascript usage inside Qt
> 
> x11-libs/qt-script:jit - Enables JIT for Javascript usage inside Qt
> 
> x11-libs/qt-webkit:jit - Enable JavaScriptCore just-in-time compiler for
> faster JavaScript execution
> 
> -Alexandre.
+1
-- 
Agostino Sarubbo		ago -at- gentoo.org
Gentoo/AMD64 Arch Security Liaison
GPG: 0x7CD2DC5D

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:09 ` Agostino Sarubbo
@ 2012-05-14 18:48   ` Pacho Ramos
  0 siblings, 0 replies; 9+ messages in thread
From: Pacho Ramos @ 2012-05-14 18:48 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]

El lun, 14-05-2012 a las 20:09 +0200, Agostino Sarubbo escribió:
> On Monday 14 May 2012 14:05:12 Alexandre Rostovtsev wrote:
> > I propose adding the following global USE flag:
> > 
> > jit - Enable just-in-time compilation for improved performance. May
> > prevent use of some PaX memory protection features in Gentoo Hardened.
> > 
> > 
> > Current local flags that could probably be unified:
> > 
> > app-arch/libzpaq:jit - Enable just-in-time compilation for faster
> > compression (requires SSE2)
> > 
> > dev-libs/libpcre:jit - Enable Just-In-Time compilation of regexp
> > bytecode to machine code, through the SLJIT compiler. This feature might
> > conflict wtih security mitigation strategies such as NX/PaX as enabled
> > by Gentoo Hardened.
> > 
> > dev-python/pypy:jit - Enable the JIT compiler
> > 
> > dev-scheme/racket:jit - Enable just-in-time compiler
> > 
> > media-sound/csound:luajit - Use the lua just-in-time compiler
> > dev-lang/luajit instead of dev-lang/lua
> > 
> > net-libs/webkit-gtk:jit - Enable JIT javascript compiler (disabling it
> > will cause performance penalty)
> > 
> > www-client/epiphany:jit - Allow using net-libs/webkit-gtk that has the
> > JIT javascript compiler enabled
> > 
> > www-client/luakit:luajit - Use the lua just-in-time compiler
> > dev-lang/luajit instead of dev-lang/lua, which should make luakit
> > faster.
> > 
> > www-client/seamonkey:methodjit - Enable JIT for JavaScript using
> > MethodJIT for faster JS performance. Hardened users can disable this
> > USE-flag to use MPROTECT on grsecurity kernels.
> > 
> > www-servers/nginx:pcre-jit - Enable JIT for pcre
> > 
> > x11-libs/qt-core:jit - Enables JIT for Javascript usage inside Qt
> > 
> > x11-libs/qt-script:jit - Enables JIT for Javascript usage inside Qt
> > 
> > x11-libs/qt-webkit:jit - Enable JavaScriptCore just-in-time compiler for
> > faster JavaScript execution
> > 
> > -Alexandre.
> +1

+1 also ;)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
  2012-05-14 18:09 ` Agostino Sarubbo
@ 2012-05-14 19:51 ` Dirkjan Ochtman
  2012-05-14 21:36   ` Alexandre Rostovtsev
  2012-05-14 20:22 ` Maxim Kammerer
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Dirkjan Ochtman @ 2012-05-14 19:51 UTC (permalink / raw
  To: gentoo-dev

On Mon, May 14, 2012 at 8:05 PM, Alexandre Rostovtsev
<tetromino@gentoo.org> wrote:
> media-sound/csound:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua
>
> www-client/luakit:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua, which should make luakit
> faster.

Not sure it's a good fit for these two. In the other cases, there
appears to be just a difference in compilation, but this is about
selecting a different dependency.

Cheers,

Dirkjan



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
  2012-05-14 18:09 ` Agostino Sarubbo
  2012-05-14 19:51 ` Dirkjan Ochtman
@ 2012-05-14 20:22 ` Maxim Kammerer
  2012-05-14 20:54   ` Nirbheek Chauhan
  2012-05-14 22:00 ` James Cloos
  2012-05-19 10:19 ` Alexandre Rostovtsev
  4 siblings, 1 reply; 9+ messages in thread
From: Maxim Kammerer @ 2012-05-14 20:22 UTC (permalink / raw
  To: gentoo-dev

On Mon, May 14, 2012 at 9:05 PM, Alexandre Rostovtsev
<tetromino@gentoo.org> wrote:
> Current local flags that could probably be unified:

What about USE=orc? It's JIT in a sense — IIRC, it creates an
executable in /tmp at run-time.

-- 
Maxim Kammerer
Liberté Linux (discussion / support: http://dee.su/liberte-contribute)



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 20:22 ` Maxim Kammerer
@ 2012-05-14 20:54   ` Nirbheek Chauhan
  0 siblings, 0 replies; 9+ messages in thread
From: Nirbheek Chauhan @ 2012-05-14 20:54 UTC (permalink / raw
  To: gentoo-dev

On Tue, May 15, 2012 at 1:52 AM, Maxim Kammerer <mk@dee.su> wrote:
>
> On Mon, May 14, 2012 at 9:05 PM, Alexandre Rostovtsev
> <tetromino@gentoo.org> wrote:
> > Current local flags that could probably be unified:
>
> What about USE=orc? It's JIT in a sense — IIRC, it creates an
> executable in /tmp at run-time.
>

Doesn't make sense to unnecessarily unify USE-flags like that.

"Consolidate just enough, but not too much."

--
~Nirbheek Chauhan

Gentoo GNOME+Mozilla Team



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 19:51 ` Dirkjan Ochtman
@ 2012-05-14 21:36   ` Alexandre Rostovtsev
  0 siblings, 0 replies; 9+ messages in thread
From: Alexandre Rostovtsev @ 2012-05-14 21:36 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2012-05-14 at 21:51 +0200, Dirkjan Ochtman wrote:
> On Mon, May 14, 2012 at 8:05 PM, Alexandre Rostovtsev
> <tetromino@gentoo.org> wrote:
> > media-sound/csound:luajit - Use the lua just-in-time compiler
> > dev-lang/luajit instead of dev-lang/lua
> >
> > www-client/luakit:luajit - Use the lua just-in-time compiler
> > dev-lang/luajit instead of dev-lang/lua, which should make luakit
> > faster.
> 
> Not sure it's a good fit for these two. In the other cases, there
> appears to be just a difference in compilation, but this is about
> selecting a different dependency.

Good point. Since dev-lang/luajit is the actual name of the selected
package, leaving the flag as luajit makes more sense.

-Alexandre.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
                   ` (2 preceding siblings ...)
  2012-05-14 20:22 ` Maxim Kammerer
@ 2012-05-14 22:00 ` James Cloos
  2012-05-19 10:19 ` Alexandre Rostovtsev
  4 siblings, 0 replies; 9+ messages in thread
From: James Cloos @ 2012-05-14 22:00 UTC (permalink / raw
  To: gentoo-dev

>>>>> "AR" == Alexandre Rostovtsev <tetromino@gentoo.org> writes:

AR> www-servers/nginx:pcre-jit - Enable JIT for pcre

This one also should remain un-unified.  There may be other, unrelated
jit options in the future, whether affecting nginx itself or potential
PDEPENDs or ???.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: new global USE flag: jit
  2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
                   ` (3 preceding siblings ...)
  2012-05-14 22:00 ` James Cloos
@ 2012-05-19 10:19 ` Alexandre Rostovtsev
  4 siblings, 0 replies; 9+ messages in thread
From: Alexandre Rostovtsev @ 2012-05-19 10:19 UTC (permalink / raw
  To: gentoo-dev

On Mon, 2012-05-14 at 14:05 -0400, Alexandre Rostovtsev wrote:
> I propose adding the following global USE flag:
> 
> jit - Enable just-in-time compilation for improved performance. May
> prevent use of some PaX memory protection features in Gentoo Hardened.
> 
> 
> Current local flags that could probably be unified:
> 
> app-arch/libzpaq:jit - Enable just-in-time compilation for faster
> compression (requires SSE2)
> 
> dev-libs/libpcre:jit - Enable Just-In-Time compilation of regexp
> bytecode to machine code, through the SLJIT compiler. This feature might
> conflict wtih security mitigation strategies such as NX/PaX as enabled
> by Gentoo Hardened.
> 
> dev-python/pypy:jit - Enable the JIT compiler
> 
> dev-scheme/racket:jit - Enable just-in-time compiler
> 
> media-sound/csound:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua
> 
> net-libs/webkit-gtk:jit - Enable JIT javascript compiler (disabling it
> will cause performance penalty)
> 
> www-client/epiphany:jit - Allow using net-libs/webkit-gtk that has the
> JIT javascript compiler enabled
> 
> www-client/luakit:luajit - Use the lua just-in-time compiler
> dev-lang/luajit instead of dev-lang/lua, which should make luakit
> faster.
> 
> www-client/seamonkey:methodjit - Enable JIT for JavaScript using
> MethodJIT for faster JS performance. Hardened users can disable this
> USE-flag to use MPROTECT on grsecurity kernels.
> 
> www-servers/nginx:pcre-jit - Enable JIT for pcre
> 
> x11-libs/qt-core:jit - Enables JIT for Javascript usage inside Qt
> 
> x11-libs/qt-script:jit - Enables JIT for Javascript usage inside Qt
> 
> x11-libs/qt-webkit:jit - Enable JavaScriptCore just-in-time compiler for
> faster JavaScript execution
> 
> -Alexandre.

Update: since the response to the proposal was favorable, jit has now
been added to use.desc. Two packages, webkit-gtk and epiphany, have
switched to the global flag already; bugs (#416601, #416603, #416605,
#416607, #416609, #416611) have been filed with maintainers of the other
packages most likely to benefit from the new flag.

-Alexandre.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-19 10:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 18:05 [gentoo-dev] RFC: new global USE flag: jit Alexandre Rostovtsev
2012-05-14 18:09 ` Agostino Sarubbo
2012-05-14 18:48   ` Pacho Ramos
2012-05-14 19:51 ` Dirkjan Ochtman
2012-05-14 21:36   ` Alexandre Rostovtsev
2012-05-14 20:22 ` Maxim Kammerer
2012-05-14 20:54   ` Nirbheek Chauhan
2012-05-14 22:00 ` James Cloos
2012-05-19 10:19 ` Alexandre Rostovtsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox