Earlier quoted context omitted.
Until I can perform runtime define_method calls and dynamically construct classes, it doesn't matter what Crystal does. It's fundamentally antithetical to my needs. (JavaScript isn't, but JavaScript is kind of clunky.) I have Kotlin, C#, C++, and Rust if I need static typing. Ruby is for when I don't.
You can do all of that with really easy to write crystal macros.
Reducing Memory Usage in Ruby
21–30 of 58 posts
Re: Reducing Memory Usage in Ruby
#221. if usage of ruby = 0, halt. 2. reduce usage of ruby and return to step (1).
Re: Reducing Memory Usage in Ruby
#23What I'd like to be able to do is load ActiveRecord (or any other v. heavy lib) asynchronously in non web-based apps so that I can paint the UI quicker. By the time the user will do/need anything db-related a proxy object should be swapped out for an actual ActiveRecord object. Using Rails' ORM is so nice and ergonomic but it kills start-up time with all the file requires, Bootsnap helps a bit but I'd prefer not to h…
I am actually facing a similar problem. I also find that Rails just creates a db connection everytime I do Model.new even though I have not yet saved it.
Re: Reducing Memory Usage in Ruby
#24Re: Reducing Memory Usage in Ruby
#25The underlying JVM and the Truffle/Graal/SubstrateVM is the product of millions of man hours of research - and for the very first time, you have a compiler framework on top of that.
The Truffle framework also brings in a lot of support that all languages get for free, like zero overhead profiling https://twitter.com/nirvdrum/status/948333404122214401
Truffleruby is already in the running in benchmarks, and it will be awesome to see how far it can be pushed . http://nirvdrum.com/2017/02/15/truffleruby-on-the-substrate-...
Re: Reducing Memory Usage in Ruby
#26Ruby seems to have a footprint on Hacker News disproportionate to its general popularity and TIOBE index. Why?
Re: Reducing Memory Usage in Ruby
#27Ruby seems to have a footprint on Hacker News disproportionate to its general popularity and TIOBE index. Why?
It’s popularity at this may have diminished with the rise of JavaScript, Go and alternatives but many folks still like and use Ruby, or at least would like to see it continue to improve and thrive.
Re: Reducing Memory Usage in Ruby
#28Earlier quoted context omitted.
You can do all of that with really easy to write crystal macros.
You can dynamically build at runtime an HTTP client from an OpenAPI spec (unavailable until runtime, to be clear), method-by-method, using macros? Tell me more.
Re: Reducing Memory Usage in Ruby
#29Ruby seems to have a footprint on Hacker News disproportionate to its general popularity and TIOBE index. Why?
Similar to general hiring/salary surveys, I’m not sure that the referenced index is accurate.
Re: Reducing Memory Usage in Ruby
#30Earlier quoted context omitted.
You can dynamically build at runtime an HTTP client from an OpenAPI spec (unavailable until runtime, to be clear), method-by-method, using macros? Tell me more.
Got me there. First time I've ever in my life heard of a legitimate example where you really do need dynamic methods.
I'm also not sure Crystal can implement an active record pattern off of a database? (Though I am not personally the type to go with that, I prefer row mappers.)