6 ms·
Crystal 0.27.0 released
- nerdponx 8y agoFrom now on, if the arguments of a method call are to be splitted across multiple lines, the comma must be at the end of the line, before the line break. Out of curiosity, what's the purpose of this change? Style enforcement? Simpler parser?
- RX14 8y agoSimpler code. This style of code was accepted by the parser but not the automated code formatter. We decided it was easier to disallow it, as the style was uncommon (especially so as ruby doesn't accept that style either, and a lot of crystal's style guidelines are based off ruby's)
- nik736 8y agoLooking forward to Windows support and parallelism. After that a stable v1.0 and I am more than happy to use Crystal for my productive projects. Great work so far, thanks! Absolutely in love with the language.
- Doctor_Fegg 8y agoAbsolutely. My favourite bit of these release notes: > Next releases should enable some stories around parallelism
- jpittis 8y agoThe Haskell style comma before the next element is soooo nice for adding and removing elements over time. I wish more languages used that style.
- canhascodez 8y agoI appreciate having the pull requests linked. I did read through a couple of the discussions on those.
- simpsond 8y agoI recently ported a fairly simple ruby project to crystal, and am happy with the result. I'm now writing another smallish project in crystal, and finding it quite productive. I like the syntax and language features of ruby, but I prefer static typing... so it's a nice addition. I'm glad to see crystal has momentum.
- lbotos 8y agoDid a quick search but I wasn't able to find anything on the site: - Goals of Crystal over say Ruby? Speed? Safety? - What drew you to try it?
- bhaak 8y agoOn https://crystal-lang.org/ https://crystal-lang.org/ "Fast as C, slick as Ruby". There's a list on https://crystal-lang.org/docs/ https://crystal-lang.org/docs/ that is less tongue in cheek.
- aerovistae 8y agoIs it actually as fast as C? That seems like quite a claim.
- 3rdAccount 8y agoIt uses LLVM like Swift, Rust, & Julia. I'm not sure if it can beat highly optimized C code, but generally is in the neighborhood of C, while letting you code like a rubyist. This is similar to how Nim lets you write code similar to Python and it then transpiles to C or C++ code to be compiled by gcc or Js to be run in the browser.
- coldtea 8y agoAny statically typed language that doesn't do anything really stupid will be as fast as C when using the same backend (LLVM here) and the same type of coding (e.g. not taking into advantage high level libs that abstract everything, but doing regular stuff like loops, bit mangling, string processing, etc). Pascal, Rust, ADA, and lots of others all are (or can be, when programmed properly with comparable constructs) "as fast as C" (and in some cases, e.g. when avoiding aliasing issues) faster.
- devmunchies 8y agoAwesome to see #dig merged in. I did the original PR 2 years ago but didn’t follow through. Glad someone else picked it up. This makes unmapped JSON much more sane.
- sam0x17 8y agoMajor props to the Crystal team for this release and for addressing our concerns about running in Google Cloud Functions. This has enabled gcf.cr (https://github.com/sam0x17/gcf.cr https://github.com/sam0x17/gcf.cr) to work more consistently and has paved the way for doing crystal compilation in a cloud function, which until now has been impossible. FYI for the curious, running crystal in a google cloud function is now as simple as: https://gist.github.com/sam0x17/5b26ffa0ae663f3137fdf6c982567993 https://gist.github.com/sam0x17/5b26ffa0ae663f3137fdf6c98256...
- IshKebab 8y ago> &+, &-, &. They will perform additions, subtraction and multiplication with wrapping It's definitely good that languages are adding this but it's a shame they didn't go for %+, %- and %. Some other language (I forget which) uses those and they are a lot more obvious in my opinion (because % means modulo pretty much everywhere and it is essentially a modulo operation).
- cytzol 8y agoI haven’t used Crystal, but wouldn’t that cause some parsing ambiguities? `a %- b` would clash with `a % -b`.
- svnpenn 8y agoWindows support is... not good. http://github.com/crystal-lang/crystal/issues/26 http://github.com/crystal-lang/crystal/issues/26
- askaboutit 8y agoJust choose elixir, golang or C# with .net. Crystal has been “almost ready” since 2016.
- carlivar 8y agoWhere does your "almost ready" quote come from?
- proyb2 8y agoWe don't get where "almost ready" message since I have been coding Crystal. You knew each languages solve different problems in AI or space age.
- sam0x17 8y agoimo it is ready. We've been using it in production for a little over a year now and the breaking changes that have occurred have been trivial to deal with.
- NetOpWibby 8y agoI've always found Crystal interesting whenever I came across it and finally installed it and got a simple local server running. Are there any notable applications written in Crystal, for reference?
- deleted 8y ago[deleted]
- jamescrypto 8y agoCrystal has both speed and expressiveness because it doesn't need ridiculous parentheses, curly brackets, semicolons, lots of line of code like you get in most languages. I favour writing as productive and testing spec as I can and minimal the code smell and don't need colours highlighting in my code. Beside, having the ability to write pure or system calls in C within Crystal is a big wins.
- singularity2001 8y agoIt will be my language of choice once they compile to wasm