HNHacker News
TopNewBestAskShowJobs

swlkr

935 karma · joined September 21, 2009

https://swlkr.com
submissionscomments
swlkr··on Clojure isn’t for me (2020)
I did gloss over a few things there, the goal was to say, yes I understand that C-land hasn't always been as free and open source as it is now
swlkr··on Clojure isn’t for me (2020)
That is true, getting back to the same state in other languages is usually done with unit/integration tests, definitely not as nice as the repl.

Although it is nice to have them written down and more explicit

swlkr··on Clojure isn’t for me (2020)
The downsides of clojure on the jvm which I had kind of forgotten about until today like long stack traces and using a lot of memory kind of outweigh the upside of the repl
swlkr··on Clojure isn’t for me (2020)
Fair enough.

This might also come down to editors and things that I didn’t cover in the post too.

There’s probably a happy path for clojure/jvm via an IDE that I didn’t try (I use neovim) or something else I might have missed in my clojure years.

swlkr··on Clojure isn’t for me (2020)
Wow that’s crazy, I love learning new tidbits about how older tech like cobol or mainframes or something are still around and plugging along
swlkr··on Clojure isn’t for me (2020)
Yes the repl was one of clojure’s strong points, definitely, but I would argue that a fast restart + logging + irb gets you most of the way there
swlkr··on Clojure isn’t for me (2020)
Yes, the newer clojure runtimes like planck or native-image, or babashka definitely take away some of the jvm pain
swlkr··on Clojure isn’t for me (2020)
These days I care less about how the language looks and more about the development/deployment experience, and how much memory it’s going to take on a VPS, since that’s the primary thing driving VPS costs.

Ruby (and rails) for web applications is very hard to beat ergonomically.

Go also feels this way to me, the development experience is very simple, deployment is even easier than ruby/rack (assuming no docker), and you get the added bonus of using a lot less memory on the server.

swlkr··on Clojure isn’t for me (2020)
I will say as far my limited understanding of the JVM goes, it seems like container tech can take care of any system dependencies that you might need for a complex c++ build.

It also seems that the JVMs original purpose of running the same code across operating systems/architectures has also been superseded by containers, better cross compilation (llvm) and possibly wasm as well.

Maybe at some point in the future, the JVM will mostly be relegated to legacy systems and most new software (assuming AI isn’t writing all future software) will target wasm or require some container runtime.

swlkr··on Clojure isn’t for me (2020)
This is exactly what I experienced too, the tidy clojure ecosystem can come undone pretty quickly
swlkr··on Clojure isn’t for me (2020)
I should have gone into more detail for sure.

The problems with the JVM are more cultural or political and not necessarily technical, although at the time clojure on the jvm did require quite a bit of memory and the cold startup times weren’t great for a simple, “watch this file in development and restart the server” workflow.

swlkr··on Clojure isn’t for me (2020)
clojure on the jvm has much better performance than ruby, but for my small side projects, that doesn’t matter.

I guess I was trying to describe the frustration of switching languages and ecosystems while also trying to ship, thought I could do it, but I couldn’t.

I suppose I would have had a much better time and stayed in C-land (and gotten much better performance) if I had tried golang instead of clojure.

swlkr··on Clojure isn’t for me (2020)
I'm not sure if it's about clojure's weak points or my own weak points haha
swlkr··on Clojure isn’t for me (2020)
Yes, this is pretty much it. It's funny the presentation specifically mentions clojure for the "new and shiny."

Today it would be something else, like rust or zig or something.

But yeah it's difficult for me to build my tools and ship finished web applications at the same time, it's compounded by learning a new language.

This is something I've struggled with for a long time. I still struggle with this, the urge to create a new web framework when I would have shipped much faster if I had just used some boring old one for example.

swlkr··on Clojure isn’t for me (2020)
Fair enough, I usually start with the title and try to let the rest flow from there, but it's definitely the JVM that was getting me down, not clojure specifically.
swlkr··on Clojure isn’t for me (2020)
I'm not quite sure why my stuff keeps hitting the front page, but I'm here for it.

I've since abandoned janet for web app side projects and gone back to ruby entirely but yeah, I still love lisp but it makes more sense to align my work programming language with my side projects that way I can ship my side projects faster, at least that's the thought now.

swlkr··on Ruby 3.2 preview 1 with support for WASM compilation
One notable thing is the ruby apps in a single .wasm file. This may make ruby CLI apps easier, as well as eventually replacing things like docker or shipping your ruby code to a server.
swlkr··on Ask HN: Share your personal site
https://swlkr.com

Just a vanilla hugo static site hosted on github pages. I’m writing my own dynamic blog hosting backend thing for no reason in particular and plan on moving it over there once it’s ready.

swlkr··on Coast on Clojure
there is joker https://github.com/candid82/joker but you may as well use the small clojure interpreter instead
swlkr··on Coast on Clojure
I’ve tried graal and native-image, both are awesome.

clojure still relies on the jvm though, for repl things.

sci and babashka were interesting, but at that point I had already moved on to janet

swlkr··on Coast on Clojure
Yeah that’s the long and short of it.

I spent a lot of time in jvm land though, a few years of nights and weekends, but I finally learned that it wasn’t for me.

I’m a C (or rust or llvm or what have you, wasm?) person, not a jvm person.

swlkr··on Coast on Clojure
This is mostly ring / hiccup, just a layer on top to make it easier for beginners.

I would say if you’re not new to clojure, roll your own.

swlkr··on Coast on Clojure
So much fun working on that project!

Turns out it's really hard to beat the productivity of rails

swlkr··on Coast on Clojure
Yeah, I did move on, but if someone were to pick up the torch, I would help out any way I can!
swlkr··on Coast on Clojure
Always nice when one of my projects makes it to the front page!

I haven’t worked on this one much lately, but I’m happy to answer any questions!

swlkr··on Postgres wire compatible SQLite proxy
This is great!

Thanks for this, it never occurred to me that I could improve on ssh + sqlite3 on the cli, but here it is.

Great for those times when I want to check some data but don’t want to ssh in

swlkr··on Ask HN: Single-person creations that have stood the test of time?
pinboard
swlkr··on Google Search Is Dying
I'm also a staunch site:reddit.com google user

I was skeptical at first, but it really does seem to work for most queries, especially queries about products. I tried standing desks, streaming setup stuff, keyboards, linux desktop configurations, it's all there, all mostly ad free, definitely SEO free.

swlkr··on Use of Google Analytics declared illegal by French data protection authority
The EU privacy regulations seem to have a side effect of creating a de facto EU internet, where EU competitors can become dominant because they pay closer attention to changes in law vs north american or chinese counterparts.

It’s almost like a more subtle version of china or russia’s firewall

swlkr··on Show HN: My New Personal Website
It looks good on mobile, readable, loaded fairly quickly
← PreviousPage 3 of 13Next →