News for hackers. Stuff that matters.

grashalm

It's two jits in total.
Re:The Rapper 50 Cent, Adjusted for Inflation on Saturday October 18, 2025 @08:19AM (#45626761)
This is the internet at its best.
Re:Tetris Game Shows Promise in Reducing PTSD Symptoms on Sunday September 22, 2024 @01:47PM (#41618633)
That is a great strategy. It gets easier over time though. My tipp is to still join smoking friends, but just don't smoke. Makes you robust against the temptation longer term.
Any language can be sandboxed on the VM level. It's a property of it's implementation. So you can say that Lua has no sandbox friendly implementation right now.

For example, termination you can solve by unwinding the stack in efficiently polled safepoints. You need to take down the entire sandbox-capable Lua VM instance but you can.

Re:Writing memory safe JIT compilers on Saturday June 08, 2024 @05:33AM (#40616403)
Feel free to drop Dr. Futamura an email: https://fi.ftmr.info/

If he says yes to changing his name you have my full support.

Re:Writing memory safe JIT compilers on Friday June 07, 2024 @04:42PM (#40612760)
I work on Truffle for more than 10 years and I recently wrote a comment on hackernews using Futurama instead of Futamura. That comment had it wrong twice.
Re:Apple releases Pkl – configuration as code language on Monday February 05, 2024 @03:37AM (#39258688)
Truffle has no opinion on how you parse the sources. It cares about how you execute them from an intermediate Truffle guided representation produced by the parser.

In other words antlr and truffle are a great fit. We even use this pairing for our example language simplelanguage.

https://github.com/graalvm/simplelanguage

Re:Apple releases Pkl – configuration as code language on Sunday February 04, 2024 @07:24AM (#39249698)
Very few people have heard of them. That is exactly the reason why I mention them as often as I can. They are a great entry into the world of meta compilers.
Re:Apple releases Pkl – configuration as code language on Sunday February 04, 2024 @07:22AM (#39249684)
He probably means one of the wonderfully crafted talks by Chris Seaton.

Here is one of the many: https://youtu.be/bf5pQVgux3c?si=S8Dm5d_GXYXgJtnY

If you go looking for more you will find many more marbles.

Re:Apple releases Pkl – configuration as code language on Saturday February 03, 2024 @10:15AM (#39241055)
The truffle compiler extensions in Graal will be part of Galahad. For example the partial evaluator. The truffle framework and all the languages are consumed from a maven repo as a regular java library these days.

Some background on the recent changes there: https://medium.com/graalvm/truffle-unchained-13887b77b62c

Re:Apple releases Pkl – configuration as code language on Saturday February 03, 2024 @10:08AM (#39240975)
Shameless self plug: Giving an introduction in this video: https://youtu.be/pksRrON5XfU?si=CmutoA5Fcwa287Yl
Re:Apple releases Pkl – configuration as code language on Saturday February 03, 2024 @08:02AM (#39239965)
Damn you autocomplete! This happens all the time :D
Re:Apple releases Pkl – configuration as code language on Saturday February 03, 2024 @07:37AM (#39239778)
Pkl was built using the GraalVM Truffle framework. So it supports runtime compilation using Futamura Projections. We have been working with Apple on this for a while, and I am quite happy that we can finally read the sources!

https://github.com/oracle/graal/tree/master/truffle

Disclaimer: graalvm dev here.

Edit: typo

Re:Juno – A YouTube Client for Vision Pro on Friday February 02, 2024 @11:23AM (#39230472)
Thanks for the link. I didn't know Peertube, yet.

I can't see how you can avoid the centralization problem and also have decent monetization for the videos. But I want to certainly become convinced that it can work. Crypto made me a decentralization skeptic.

Re:Juno – A YouTube Client for Vision Pro on Friday February 02, 2024 @11:17AM (#39230389)
Alternative to working with a big silicon valley giant. If you want to integrate/use YouTube you need to deal with whatever that company puts you up with. And as the article states, you don't want them to become grumpy at you; otherwise, they will turn you off even quicker. The only alternative I see is to develop a new YouTube, which seems unreasonable given how dominant Google is.
Re:Juno – A YouTube Client for Vision Pro on Friday February 02, 2024 @10:47AM (#39229920)
I don't understand what reasonable alternative there could be. Develop your own YouTube?
Re:GraalVM for JDK 21 is here on Wednesday September 20, 2023 @09:58AM (#37584212)
With the new GFTC license, we hope G1 is much more accessible now.
Re:GraalVM for JDK 21 is here on Tuesday September 19, 2023 @03:49PM (#37575466)
We do not do process isolation yet, although we have plans to implement that as well as a fallback strategy.

The advantage of the native-image-isolate-based isolation is that it is much more lightweight. For example, calls from and to the host application are much faster. There is no copying or expensive synchronization necessary. The disadvantage is that we need to do our own protections against attacks, as the OS protections between processes don't apply to such isolates. By default, we deploy software/compiler-based protections but are also very close to supporting hardware like Intel MPK.

If you have more questions, you can also drop by on Slack; we are a friendly bunch: https://www.graalvm.org/slack-invitation/

Re:GraalVM for JDK 21 is here on Tuesday September 19, 2023 @01:24PM (#37573197)
The Polyglot sandbox is licensed under GFTC: https://www.oracle.com/downloads/licenses/graal-free-license...

ISOLATED and UNTRUSTED require GFTC

CONSTRAINED is also available under open-source licenses.

Only for JavaScript right now. We are working hard on supporting all the other languages!

Developer here. So, if you have more questions, let me know!

Re:Fluent: Static Extension Methods for Java on Monday July 03, 2023 @06:19AM (#36570975)
I did some digging on past discussions, and yes, it seems the stars are not aligned for extension methods in standard Java.

But tbh, there are some very good arguments against extension methods. Also, some tricky questions about overloading handling and compatibility are lurking in the shadow. But if you have good suggestions on how to fix them, I'd take the time to propose something on an OpenJDK mailing list, maybe you get some support.

Older »