DEV Community

Discussion on: Don’t be arrogantly ignorant: don’t flame

 
stojakovic99 profile image
Nikola Stojaković

It has evolved but it's nowhere near the Haskell's level. That's a fact. I'm not saying it should be though - they are made for different purposes. Both serve their needs.

Thread Thread
 
wesen profile image
Manuel Odendahl

100%. In many ways, Haskell's strength is to be a playground of evolution, while PHP benefits from keeping its roots, as ugly as they might be.

A big strength of PHP is the existing ecosystem around it and its widespread adoption, partly because a lot of messy legacy systems are still around and run "fine" (fine as in, they work well enough that nobody has replaced them with something else).

I love experimenting and prototyping in Haskell, writing what I thought would be a simple API server with servant really did my head in.

There are many concepts I experiment with in Haskell that I can easily transpose to PHP.

Thread Thread
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

I have a feeling you might enjoy Lua 😅

Thread Thread
 
wesen profile image
Manuel Odendahl

I had some good times with pico8! Made a couple of games with it. Quite a few of my buddies are into it, I haven't fully had the need for it so far, but it is quite enticing indeed. I was planning on building some with fennel-lang.org this summer on my sabbatical, but of course many other things were interesting too.

Thread Thread
 
wesen profile image
Manuel Odendahl

The problem with gamedev is that your code turns to garbage super quickly. And sadly coroutines are quite expensive on pico8, if i remember correctly:

github.com/wesen/carts/tree/master...

It felt very "javascript"-y, in the sense that the prototypal inheritance and the coroutines allow you to experiment with a lot of different programming styles/patterns without feeling friction.

I heard great things about the JIT but never looked closely into it.

Thread Thread
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Yep, it shares a lot of features with JavaScript, but between coroutines, TCE and the more powerful tables compared to JS objects make it better suited, in my opinion, for just playing around with some cool FP concepts.

The landscape of languages that compile to Lua is also quite interesting; there's at least two lisp dialects (urn and fennel), a coffee-script-like with two different dialects (moonscript and yuescript) and even an ML-like (amulet)

Thread Thread
 
wesen profile image
Manuel Odendahl

My current "language I want to make some money with so I can call myself a pro" is rust, which I finally picked up after being turned off of it for a while. It's really a solid improvement over C++ in the bare-metal / embedded space. After that, Lua is high on the list (or retirement, hopefully :). Any resources you particularly enjoy?