7 ms·
Crystal 1.11.0 Is Released
- mratsim 3y agoIt's been a while since I heard about Crystal. What's the state of Windows support. How did the compiler speed drama unfold?
- diggan 3y ago> What's the state of Windows support. https://github.com/crystal-lang/crystal/issues/5430 https://github.com/crystal-lang/crystal/issues/5430 > UPDATE 2023-04-24: > All the main platform features for Windows are finished! > There are still some smaller stories pending. Project board: https://github.com/orgs/crystal-lang/projects/11/views/5 https://github.com/orgs/crystal-lang/projects/11/views/5 > You can support the ongoing development financially: Windows suppport (https://opencollective.com/crystal-lang/projects/windows-support https://opencollective.com/crystal-lang/projects/windows-sup...) project on Open Collective.
- hamandcheese 3y agoIs it just me, or does Crystal have a disproportionate amount of Windows demand? I feel like every time Crystal comes up, someone asks (or complains) about Windows support.
- dimgl 3y agoAnecdotal, but I think this is just the case with all projects of this nature. People on Windows don't like not being able to use stuff. The same thing was happening with Bun, and yet I've met lots of Windows developers who hate JavaScript.
- dbalatero 3y agoI've noticed a lot more developers on Windows across the board, as more folks learn programming.
- mratsim 3y agoI asked because Crystal was notorious for not having it.
- dleslie 3y agoIf a language doesn't have Windows support then it's inappropriate for commercial native application development.
- ukd1 3y agoI sponsored a bunch of work on this years back; I wanted it so I didn't have to use Go for cross-platform binaries for a CLI client. I ended up having to use Go, but I hope one day it ships so I can avoid it a little more (I don't hate it, but prefer crystal).
- voidfunc 3y agoWindows isn't popular on HN, but it's a major platform with a lot of devs. You gotta get out of the HN bubble.
- arcanemachiner 3y agoIt took me 2 decades to get out of the Windows bubble. I'll enjoy my time here when I can get it.
- deleted 3y ago[deleted]
- straight-shoota 3y agoCrystal Core developer speaking. I don't think it's disproportionate. Windows is a huge platform with lots of developers. Also you don't hear anyone asking for other OS support because all other major operating systems are supported. So there's no real comparison.
- npn 3y agoCrystal is a nice language to write utilities with. Usually with utilities you want to distribute it to other people, many of them can't just install the whole toolchain to run the code. So naturally we want a fully portable windows exe file that can be run independently.
- 38 3y agoas long as Visual Studio is required with Windows, no thank you: https://crystal-lang.org/install/on_windows https://crystal-lang.org/install/on_windows
- quincepie 3y agoIt only requires vs build tools which is likely for the linker. Other languages like rust does the same.
- pjmlp 3y agoAs language nerd it is interesting to see the Crystal improvements, congratulations on keeping it going.
- mg 3y agoI like the first code example on https://crystal-lang.org https://crystal-lang.org # A very basic HTTP server require "http/server" server = HTTP::Server.new do |context| context.response.content_type = "text/plain" context.response.print "Hello world, got #{context.request.path}!" end puts "Listening on http://127.0.0.1:8080" server.listen(8080) Nicely concise! This would be the Python equivalent: # A very basic HTTP server from http.server import BaseHTTPRequestHandler, HTTPServer class RequestHandler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write(bytes(f"Hello world, got {self.path}!", 'utf8')) httpd = HTTPServer(('', 8080), RequestHandler) print("Listening on http://127.0.0.1:8080") httpd.serve_forever() Would like to see it in more languages.
- alwaysbeconsing 3y agoWould not Ruby be the comparison to do? In which case it I think is nearly identical to the Crystal.
- doublerabbit 3y agoTCL: proc webServer {chan addr port} { while {[gets $chan] ne ""} {} puts $chan "HTTP/1.1 200 OK\n Connection: close\nContent-Type: text/plain\n" puts $chan "Hello World!" close $chan } socket -server webServer 8080 vwait forever
- mg 3y agoThat lacks a few things: 1: The comment 2: Printing the status message ("Listening on ...") 3: Outputting "Hello world, got {request.path}!" Aka http request parsing and string extrapolation.
- ReleaseCandidat 3y agoHaskell with WAI (more or less, guess there is some conversion from `Bytestring` needed when using `rawPathInfo`) {-# LANGUAGE OverloadedStrings #-} import Network.HTTP.Types import Network.Wai import Network.Wai.Handler.Warp (run) app :: Application app request respond = do respond $ responseLBS status200 [("Content-Type", "text/plain")] ("Hello world, got" <> rawPathInfo request <> "!") main :: IO () main = do putStrLn "Listening on http://127.0.0.1:8080" run 8080 app
- colesantiago 3y agoIt looks like Crystal is gaining traction. Which companies use Crystal in anger / production in front of real users?
- DASD 3y agoI believe Kagi is a heavy user of the language.
- SushiHippie 3y ago~70k LOC Crystal Mentioned in the crystal conf talk held by a Kagi Developer https://youtube.com/r7t9xPajjTM https://youtube.com/r7t9xPajjTM
- freediver 3y agoCorrect link https://www.youtube.com/watch?v=r7t9xPajjTM https://www.youtube.com/watch?v=r7t9xPajjTM
- ukd1 3y agoMy last company (Rainforest QA) used it in quite a few places when ruby wasn't fast enough, though a lot of Go too.
- compumike 3y agoAt Heii On-Call, we use Crystal to power the API server https://api.heiioncall.com/ https://api.heiioncall.com/ as well as other internal components.
- asadawadia 3y agodo you use kemal?
- juju213 3y agoHopefully they use Grip, a much better framework with encapsulation
- fransje26 3y agoFrom the landing page (and trying a few tutorials): https://crystal-lang.org/reference/1.11/index.html https://crystal-lang.org/reference/1.11/index.html I couldn't quite determine the reason of being of the Crystal language. Could someone with experience with the language explain what is its appeal, and why it would be worth trying/learning? Thanks!
- helen___keller 3y agoCrystal is basically taking Ruby and adding compilation and a strong static type system. I enjoy writing it but don’t think there’s any particular reason to try/learn it, unless you happen to also be a ruby dev who prefers compiled, strongly typed languages.
- WJW 3y agoWhy would a language need a specific reason to exist? It's a nice language with Ruby-ish syntax, strict typing, a go-like runtime and it compiles down to something quite fast if you take a little bit of care.
- aeturnum 3y agoTo me, it kind of sits between Golang and Rust in terms of intent. I think the goal is to deliver reliable runtime characteristics at the speed of a compiled language, while generally only demanding as much specificity as higher-level interpreted languages (i.e. Ruby). For me I reach for it when I want something that's fast (like go or Rust) but which I can write quickly (like Python or Ruby).
- bks 3y agoI have been running https://mailflowmonitoring.com https://mailflowmonitoring.com for the past 6 years on Amber (A Crystal framework) it flawlessly manages the sending and tracking of round trip emails for tens of thousands of pings a day.
- mkeedlinger 3y agoIs parallelism used very much in the wild? They mention it's experimental and there's a blog post from 2019, but I'd like to know how mature it is. https://crystal-lang.org/reference/1.11/guides/concurrency.html https://crystal-lang.org/reference/1.11/guides/concurrency.h... https://crystal-lang.org/2019/09/06/parallelism-in-crystal/ https://crystal-lang.org/2019/09/06/parallelism-in-crystal/