Better HN
topnewbestaskshowjobs
Log inSign up

phyrex

904 karma · joined May 2, 2012 (14y ago) · 392 submissions

Submissions

comment 4y ago · link · parent

Give babashka a try. It’s a (very batteries-included) clojure dialect that has the specific goal of replacing shell scripts like that: https://babashka.org/

comment 4y ago · link · parent

Works for me, also in Canada

comment 4y ago · link · parent

Id actually love to hear what made you move on, if you have a few minutes to spare!

comment 4y ago · link · parent

I loved Coast and wrote at least one production app with it (and very quickly and pleasantly at that), but it needs to be said that swlkr is the only developer, and he seems to have mostly moved on to Janet (https://janet-lang.org/). Case in point, the last real updates to Coast were 2 years ago, and - unlike other Clojure libraries - not because this project was /finished/.

comment 4y ago · link · parent

If I remember correctly it was in fact written in Common Lisp; the output was originally that file but it may have been modified since. You can probably google the truth with those breadcrumbs :)

comment 4y ago · link · parent

I don’t know about that; clojure was specifically created with persistent data structures in mind, and it’s definitely as much a lisp as racket is

comment 4y ago · link · parent

“Aber mein Vater kam hier oft”?

comment 4y ago · link · parent

Could you explain why you say that it was a mistake to separate the editor frontend from the backend?

comment 4y ago · link · parent

IIRC macOS’ GUI is using PDF (or postscript?) as it’s top layer

comment 4y ago · link · parent

Common Lisp lets you do that, but Clojure doesn't - I don't know about Ruby, but I expect not. That said, you have the wrong mental model. You don't run the whole program and set breakpoints. Instead you directly interact with your program-space. Imagine you have a function that retrieves something from an API. So you execute that function and see what it returns. You change that data around a little to fit your usecase, and then hand it off to the function that acts on the API result. That will produce more data; maybe this data is wrong, so you change the function, recompile it and load it into the program space, and try again with the same data you just changed (which is still right there in the variable you defined). Does that make it clearer?

comment 4y ago · link · parent

That’s a specific relationship with its own dedicated name in Chinese

comment 4y ago · link · parent

And what an amazing read it is! Www.hpmor.com

comment 4y ago · link · parent

If it supports Lua you could always use Fennel, which looks close enough

comment 5y ago · link · parent

It really comes down to how often you have to use it with a mask on these days.

comment 5y ago · link · parent

There’s a lot of that kind of thing in JS, isn’t there? :(

comment 5y ago · link · parent

“No true Scotsman…”

comment 5y ago · link · parent

There’s an implicit “arguments” function argument through which you can access the extra parameters. It’s JSs way of function overloading

comment 5y ago · link · parent

so is every other database that uses lucene as it’s full text indexer.

comment 5y ago · link · parent

AFAIK it supports SVG rendering. Is that not enough or what did you have in mind?

comment 5y ago · link · parent

Thank you!

comment 5y ago · link · parent

There are plenty of lisps that offer these benefits that aren’t image based, clojure for example or emacs lisp

comment 5y ago · link · parent

You can’t even go into a namespace and change functions there

comment 5y ago · link · parent

How are the two not exactly the same in that respect?

comment 5y ago · link · parent

It really isn’t and I suggest you give clojure an honest try to see why. It’s really hard to explain.

comment 5y ago · link · parent

https://www.gnu.org/software/emacs/manual/html_node/eintr/in...

comment 5y ago · link · parent

I’ve only read the first couple of pages but this looked really neat: https://famicom.party/book

comment 5y ago · link · parent

You imply that a political anti corruption campaign is equivalent to “calling your boss a dumbass”?

comment 5y ago · link · parent

If you're using pure functions then you'd likely profit from clojure's data structures, as they're much cheaper to copy and modify than javascript's native structures. Of course you could use something like ImmutableJS or Immer, but then you're putting yourself at odds with the rest of the JS ecosystem and built-in functions and you have to transform values back and forth. This gets a lot easier with Clojure(script) (even though there's obviously still some casting back and forth when you're going outside the CLJs ecosystem)

comment 5y ago · link · parent

Yeah because that totally happens in China all the time..

comment 5y ago · link · parent

Then I don’t understand why you’d be outright opposed to running a production system with it. It’s not as shallow as just not liking the syntax, is it?
1
91011
14