Better HN
topnewbestaskshowjobs
Log inSign up

phyrex

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

Submissions

comment 7y ago · link · parent

A lot of us still feel that way. The trade off is still there, and in many situation I still don’t find types to be worth the trouble.

comment 7y ago · link · parent

> Sadly the language has nothing to help me

Except that is the whole point of spec. Yes, it’s not available for all libraries, but can always add it when you need it, and you don’t need it that often.

comment 7y ago · link · parent

You can do that yourself if you care (https://m.youtube.com/watch?v=zp0OEDcAro0) but I get what you mean. On the other hand, on a server application a REPL on exception wouldn’t help me.

comment 7y ago · link · parent

“Certain edge cases” being everything that doesn’t include startup time? It makes sense to me that a kit would be able to optimize better than an aot compiler. If you claim otherwise I’d like to see some sources.

comment 7y ago · link · parent

If that’s your use case you might want to check out https://fennel-lang.org

comment 8y ago · link · parent

OTOH clojure script is completely written in clojurescript

comment 8y ago · link · parent

I fail to see how this would work. An object is a combination of state and methods acting on the state, and purely functional meaning no state.

comment 8y ago · link · parent

I just sent a screenshot of this page to my friends as an example on how awful modern websites are. There is one gigantic banner about their black friday sale that covers the top, a cookie notice that covers the lower left, a floating "can I help you?" window that covers the a third of the screen on the right on my 12" screen, and a blocking "Black Friday Deal is ON" banner that blocks all of the middle. I don't see a single character of content.

comment 8y ago · link · parent

Yes, map returns a lazy sequence. Lazy sequences get realized in batches of 32, so calling `first` would realize the 32 first values and then return the first one of that.

comment 8y ago · link · parent

Yep, completely unusable on mobile

comment 8y ago · link · parent

This article could do with a look at the old lisp machines in this context. And Emacs, come to think of it!

comment 8y ago · link · parent

I'm really upset about this. I HATE large screens and not for the lack of trying!

comment 8y ago · link · parent

Because you can just turn it off? https://www.cliki.net/Case%20sensitivity

comment 8y ago · link · parent

Do you know of Transit? https://github.com/cognitect/transit-format

comment 8y ago · link · parent

It blew my mind when I first realized that in Clojure projects the programming language is a dependency of the project itself. Of course, there is still the JVM, but I personally have never run into JVM version problems.

comment 8y ago · link · parent

Quite a lot of companies use Clojure professionally though. And you’re in luck, it plays great with Java!

comment 8y ago · link · parent

This is great! Any chance you can open source this?

comment 8y ago · link · parent

Have you looked at Clojure’s core.async? It’s a port of Go’s concurrency model to Clojure.

comment 9y ago · link · parent

This is incredible!

comment 9y ago · link · parent

Why hello there, neighbour!

comment 9y ago · link · parent

Expound recently made my life a lot better by cutting through one of those ridiculous spec errors and telling me exactly what was wrong! I was really impressed.

comment 9y ago · link · parent

It's actually Mexico. I've been vegetarian for 16 years and have been all over the place and it's really been the hardest in Mexico.

comment 9y ago · link · parent

It's terrible to script, you cannot make use of the billion unix command line utilities (and there is no equivalent eco system either), you need to use the mouse too much, and it's awful to program with in any but a small number of sanctioned programming languages.

comment 9y ago · link · parent

Usually your editor is hooked up to the REPL, so once you've found the perfect value, you just leave it as it is

comment 9y ago · link · parent

Whenever Rich Hickey says something, I listen!

comment 10y ago · link · parent

And god dammit they were right back then!

comment 10y ago · link · parent

There's a whole bunch of more modern lisps than Common Lisp, such as Racket and Clojure

comment 10y ago · link · parent

Can't it? This seems to work just fine: (cons :a (cons '[x] (cons {:foo :bar} #{:x :y}))) and cljs.user=> (rest (cons :a (cons '[x] (cons {:foo :bar} #{:x :y})))) ;=> ([x] {:foo :bar} :x :y)

Maybe I don't understand what you mean. I also don't see why a uniform cell structure would be preferable?

comment 10y ago · link · parent

I don't see why you can't make those out of the data structures provided - or even the Clojure conses?

comment 10y ago · link · parent

why?
1
1011121314