News for hackers. Stuff that matters.
Re:Marten, a Crystal web framework that makes building web a... by nerdponx on Sunday October 30, 2022 @05:06PM (#33398703)
I enjoyed poking around at Crystal, but its library ecosystem seems heavily oriented towards web development (understandably, because its creators are a web dev consultancy), and I don't do much web development for my hobby programming.

Also, I found that its static analysis tooling (eg LSP server) was really slow. Compiling small programs was also rather slow, and it generated large binaries.

I also had some difficulty understanding the documentation related to importing and including modules and classes; it seemed written from a perspective assuming that the reader already knows Ruby, which I do not.

At the time, I was also curious about Common Lisp and Nim, so I spent a bunch of time learning the former, and have lately been writing small personal scripts/tools using the latter.

My experience using Python for backend web development has been mixed. If I had to do work like that professionally in the future, I would be happy to do it in a language like Crystal. It seems a lot more comfortable to me than Go, less intimidating than a JVM language (Kotlin?), and less "weird" than Common Lisp or a functional language like OCaml.

It doesn't seem like a bad choice for a company willing to invest in engineers while they learn the language, and maybe invest in writing some of their own libraries while the ecosystem is still young. I felt like I was able to get productive fairly quickly.

I think an interesting project would be to write a fairly simple web server (maybe some basic REST CRUD thing using idiomatic code) in several languages and frameworks, and compare their performance, ease of getting started, and complexity of the code. I had started working on this myself at one point, and it seems like it could be worthwhile to pick up again, especially now that all of the language ecosystems I had in mind have matured a little bit.

Re:Marten, a Crystal web framework that makes building web a... by mhenders on Sunday October 30, 2022 @05:50PM (#33399148)
Regarding different languages and frameworks, I found this informative: https://www.youtube.com/watch?v=FQPlEnKav48
Re:Marten, a Crystal web framework that makes building web a... by nerdponx on Sunday October 30, 2022 @07:45PM (#33400275)
This is great. It's a shame that so much good programming content is locked away in videos on proprietary platforms.
Re:Marten, a Crystal web framework that makes building web a... by socialdemocrat on Sunday October 30, 2022 @11:24PM (#33401732)
I used to be a huge Ruby fan but I got to say Julia had proven to be a much nicer language than Python or Ruby ever was. It gives stronger typing so it feels a bit more like a statically typed language in terms of safeguarding you, but without getting in the way. Lot of the power of LISP without the odd syntax.

Problem is the community is not web focused so you may not find enough choice in web libraries to your taste.

Re:Marten, a Crystal web framework that makes building web a... by nerdponx on Monday October 31, 2022 @12:14AM (#33401982)
I am a data scientist, so I've always been interested in Julia and have had fun messing around with it, even if I can never find an excuse to use it at work.

Have you been using Julia for a "general purpose" programming? It seemed very domain specific to me, more like an upgrade from R and Matlab then something you would write a web server with.

Re:Marten, a Crystal web framework that makes building web a... by hipster_robot on Monday October 31, 2022 @02:55PM (#33410840)
> static analysis tooling (eg LSP server) was really slow. Compiling small programs was also rather slow, and it generated large binaries.

Compile times have taken a nose dive in the last couple versions, but I’m not sure about the binary size. I’ve never looked honestly.