Hacker Newsnew | past | comments | ask | show | jobs | submit | Malp's commentslogin

This is some solid work and a great blog post to go hand-in-hand with. Wow.


Awesome to see the progress made by Alex, highly recommend watching the linked talk for people interested in any of Ruby, (AoT) compilers, and MLIR (which I haven't seen used too much outside of the ML space, personally)


Just-in-time compilation of Ruby allowing you to elide a lot of the overhead of dynamic language features + executing optimized machine code instead of running in the VM / bytecode interpreter.

For example, doing some loop unrolling for a piece of code with a known & small-enough fixed-size iteration. As another example, doing away with some dynamic dispatch / method lookup for a call site, or inlining methods - especially handy given Ruby's first class support for dynamic code generation, execution, redefinition (monkey patching).

From https://railsatscale.com/2023-12-04-ruby-3-3-s-yjit-faster-w...,

> In particular, YJIT is now able to better handle calls with splats as well as optional parameters, it’s able to compile exception handlers, and it can handle megamorphic call sites and instance variable accesses without falling back to the interpreter.

> We’ve also implemented specialized inlined primitives for certain core method calls such as Integer#!=, String#!=, Kernel#block_given?, Kernel#is_a?, Kernel#instance_of?, Module#===, and more. It also inlines trivial Ruby methods that only return a constant value such as #blank? and specialized #present? from Rails. These can now be used without needing to perform expensive method calls in most cases.


I recommend trying out Quiche Browser on iOS, or Orion from Kagi- both will support Kagi as a search option. Spotlight search still goes to Google, but I find that acceptable.


Ditto, this seems to have some parallels to the neurosymbolic ideas being explored by Lab V2 at ASU


Both are written in Crystal, interestingly enough


I had similar thoughts about a year ago. My experience is that the results are that good, though sometimes there are changes under the hood which lead to poor or limited results- it is a beta project, after all. I used the free trial, following which I stayed on the monthly sub before paying a lump sum of $100 for the next 10 months. I've enjoyed my correspondence with the CEO as well. YMMV


Happy to see this here; I found it to be a fun language to prototype reasonably performant things in + for learning about certain data structures. I expect to see the comments talking about the lack of docs, language server struggles, and compilation times (the whole stdlib and program is compiled from scratch every time a program is compiled/run, IIRC). The language is slowly growing and I encourage people to stick with its onboarding shortcomings and giving it a shot for their next project.


DARVO


~1.5 PB. Observability data.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: