I am most excited about the parser change, previously discussed here:<p><a href="https://news.ycombinator.com/item?id=36310130">https://news.ycombinator.com/item?id=36310130</a> - Rewriting the Ruby parser (2023-06-13, 176 comments)<p>I remember being taught to use yacc in our compiler course because "writing it by hand is too hard". But looks like Ruby joins the growing list of languages that have hand-written parsers, apparently working with generated parsers turned out to be even harder in the long run.<p>That said, replacing a ~16k line parse.y[1] with a 22k line prism.c[2] is a pretty bold move.<p>[1] <a href="https://github.com/ruby/ruby/blob/master/parse.y">https://github.com/ruby/ruby/blob/master/parse.y</a><p>[2] <a href="https://github.com/ruby/prism/blob/main/src/prism.c">https://github.com/ruby/prism/blob/main/src/prism.c</a>
Ruby is getting more and more awesome these last few years, especially when it comes to performance. Since 3.3 I've been running all my apps with --yjit, it makes a tremendous difference!
If I want to make a SSR site using Ruby, are there any good frontend UI libraries that make doing this easier? It’d be nice if there was some Ruby abstraction for writing HTML, CSS, and JS that makes building interactive UIs easier (possibly built on top of HTMX, AlpineJS, etc).
I want to try Ruby since the news of Rails 8 came out, but it's been so difficult that I just gave up. Installing Ruby on Mac and Windows and actually getting the 3.3 version required for Rails 8 was a huge mission and test of patience because every installer defaulted to older versions of both Ruby and Rails even one month after the release. And yes, even Docker required tweaking to get the versions and I had issues with devContainers anyway...<p>I finally got it installed and then followed some tutorials only to see that Rails' html.erb files have completely broken syntax highlighting in VSCode and other editors. I facepalmed and though I tried to search for a fix online, I couldn't find one. I saw posts mentioning it in forums and yet not a single solution posted.<p>So I gave up. I tried in Mac, Windows and Linux. If someone here knows how to fix the broken highlighter, that can be my Christmas gift today, but for the most part I've moved on.