Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure why Java gets so much hate. I think it's some PTSD from bad corporate jobs.

It's quite good that we have a rather performant, cross-platform, GCed language.

I also didn't feel any epiphany while learning Clojure. I think Haskell is a much nicer language for some tasks, but going full-Haskell seems near impossible without a PhD in some obscure academic niche.

My perfect programming language would be a Jupyter Notebook-like thing where I can just add sections in whatever makes sense. Write some imperative Java, put a small Haskell block for a function that recurses nicely, put a Minizinc block to solve a constraint... Of course, nobody except the original author would feel comfortable with those exact choices... which explains why companies must standardise on something.



This sounds like a UNIX where you could write snippets in different languages, have enough wrapper to let those snippets eat stdin and write on stdout, and plumb it all with pipes, organized in a shell script. That was the original dream anyway. Too bad the weak performance of "programs as functions" makes it all barely usable unless you programs are long-running


It kinda sounds like using UNIX pipes but you would also need a context of global variables and running threads / processes. In my vision the blocks would share memory / variables.


That is what the shell script is for: managing the lifetime of said processes, and storing any globals you might need.

The real issu with this approach in my opinion is that a stream of bytes is just too generic, and the necessary (de)serialization is going to eat a lot of CPU for not useful task


I've seen Haskellers "learn" Clojure, often nested ifs everywhere and an imperative mess, just expecting the language to make their poor thinking into a great program

Clojure wants to be data oriented, I recommend watching a lot of Rich Hickey talks first to "get" Clojure




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: