HNHacker News
TopNewBestAskShowJobs

straight-shoota

170 karma · joined March 22, 2021

[ my public key: https://keybase.io/straightshoota; my proof: https://keybase.io/straightshoota/sigs/MSepfI78a6iE7fSqDIIP4KWACjlGps9EG1uqGtPmO8o ]
submissionscomments
straight-shoota··on Crystal Programming Language
Nikola had some trouble in the past, but it's actually doing remarkably well. They have electric trucks on the streets right now, with Crystal on board. Read more at https://manas.tech/blog/2020/02/11/nikola-motor-company/
straight-shoota··on How to be uncertain with dates (2020)
The format looks neat and I'm sure it could be of some help. But it's also very limited, as it can only express some restricted uncertainty withing the format of the date representation.

There's no qualification about the range of approximation. For example, "a day in May" may be restricted that it was definitely before the 14th of May. So the uncertainty could be narrowed down to between 05-01 and 05-13. And there's no way to express unspecifics that relate to properties not represented in the format, such as "a Tuesday in Dezember" or "a day in the second week of March".

So, I believe this extension is probably not very useful unless there is a practical use cases where the described methods of expressing uncertainty would be completely sufficient. That's highly unlikely, because uncertainty typically has soo many different angles.

straight-shoota··on How to be uncertain with dates (2020)
Representing partial information can be important in some use cases, mostly related to historical contexts.
straight-shoota··on To learn a new language, read its standard library
Crystal core developer here. Happy to see Crystal's stdlib as an example for how you can grasp a language by looking into stdlib code. That's what I like a lot about Crystal. Even its stdlib easily readable. Arguably, this is somewhat deteriorating as algorithms get optimized. Readability and performance being in competition.

I agree with some of concerns from many commenters. For many languages, especially those that have been around for a long time it's probably not a good idea to look at the stdlib. C++ or Java, no thanks. But with some languages like Crystal, Golang or Julia, it can be really very helpful to look at the stdlib implementation.

straight-shoota··on Crystal 1.0 – What to expect
I like Ruby, too. But Crystal is like Ruby, and better in many regards. Performance is a huge issue with any computational intensive tasks. Crystal's static typing also avoids many simple errors you would only catch in Ruby with an extensive spec suite for many edge cases.
straight-shoota··on Crystal 1.0 – What to expect
Crystal is sponsored by https://manas.tech/ and the company actively provides paid support to a number of commercial clients. Breaking changes have been really low lately. I have a couple of shards that work on 1.0 as well as they did on 0.27 or so (that's 10 major dev releases ago). And with 1.0 there is a guarantee to not have breaking changes until 2.0. I don't agree to the other points too, but that's more subjective.
straight-shoota··on Crystal 1.0 – What to expect
No, that's expected. The program you wrote might be minimalistic, but there is still a lot of code under the hood for the runtime. If you compile a program that's twice as complex, you should still get roughly the same build time. FWIW The compiler builds in about 30 seconds. And it's a really complex piece of software.
straight-shoota··on Crystal 1.0 – What to expect
More accurately would be "no surprising nulls at runtime". If a value can be `nil`, the compiler forces to treat it as nilable. It doesn't throw random null pointer exceptions.
straight-shoota··on Crystal 1.0 – What to expect
Remember static typing is also really useful for code quality and avoiding hidden bugs. Some code in Ruby requires a ton of specs to discover bugs caused by type issues, while the Crystal compiler tells you immediately that something doesn't work out. I love Crystal's type system really for productivity reasons.
straight-shoota··on Crystal 1.0 – What to expect
Crystal comes from a Ruby background, but it's far more than compiled Ruby. As a general purpose language mainly aiming at application development it can surely compete with any of the above in that field. The main objective inherited from Ruby is the focus on developer hapiness. While doing that it doesn't back down on performance or interoparability.
← PreviousPage 2 of 2