Re:Lightstorm: Minimalistic Ruby Compiler
by mapcars on Monday December 30, 2024 @08:37PM
(#42555516)
I'm curious if Crystal lang is not fit enough for the main task?
[ Parent
| on HN ]
Re:Lightstorm: Minimalistic Ruby Compiler
by Bolwin on Monday December 30, 2024 @10:27PM
(#42556150)
Amir on why they didn't go with crystal
Re:Lightstorm: Minimalistic Ruby Compiler
by brigandish on Tuesday December 31, 2024 @01:06AM
(#42556791)
That's a bit light on the details, and I can't make any sense of "To use stdio even you literally need kernel-level privileges on Console.", C's stdio doesn't require special privileges to use, nor does Crystal's, afaik.
Maybe someone else will know that means.
Re:Lightstorm: Minimalistic Ruby Compiler
by remexre on Tuesday December 31, 2024 @02:08AM
(#42557042)
I think Console is as in XBox or PlayStation, not as in the kind of application.
Re:Lightstorm: Minimalistic Ruby Compiler
by brigandish on Wednesday January 01, 2025 @10:32AM
(#42566602)
Ah, the use of Germanic uppercased nouns in English sent me the wrong way. Thanks.
Re:Lightstorm: Minimalistic Ruby Compiler
by amirrajan on Tuesday December 31, 2024 @06:27AM
(#42558071)
More poignant examples would be `dirent.h` and `system`. Getting access to the file system on a console, or the ability to start up a process out of band is not allowed.
Re:Lightstorm: Minimalistic Ruby Compiler
by trevorhinesley on Monday December 30, 2024 @08:41PM
(#42555535)
Which task? DragonRuby uses a custom mruby build to target cross platform game releases so their goal is to fit the Ruby lang spec, which Crystal does not adhere to.
Re:Lightstorm: Minimalistic Ruby Compiler
by mdaniel on Monday December 30, 2024 @10:52PM
(#42556265)
> their goal is to fit the Ruby lang spec
I honestly thought that "ruby lang spec" was "whatever Matz ruby does." The ISO-IEC-30170 standard cited by mruby's readme seems to be laughably old but I can't obviously tell if mruby is a superset of the ISO or a subset. Their use of the phrase "part of the ISO standard" doesn't help
Re:Lightstorm: Minimalistic Ruby Compiler
by trevorhinesley on Monday December 30, 2024 @11:44PM
(#42556473)
Matz is the creator and maintainer of Ruby, yes. mruby is a subset to my knowledge, and I don't think it's 100% parity with Ruby MRI (CRuby), which is basically what the lang spec is built around to my knowledge.
Re:Lightstorm: Minimalistic Ruby Compiler
by loktarogar on Monday December 30, 2024 @11:36PM
(#42556434)
There's a full blown test suite for Ruby which the various implementations use: https://github.com/ruby/spec