Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,861 karma · joined Feb 27, 2013 (13y ago) · 3,469 submissions

Submissions

comment 4y ago · link · parent

The hardware is also not C style imperative. C/Haskell/Clojure/… are all abstractions that gets mapped to a very complicated extremely parallel hardware state machine. None of the main stream programming languages maps to real hardware. Which is a good thing! We want to use an abstraction that helps us getting the job done faster/better. It does not matter how much the abstraction you use maps to real hardware. As long as it gets the job done who cares?

comment 4y ago · link · parent

I used to be in your shoes. What helped me was learning Haskell and watching all YouTube videos by the Clojure creator (what’s his name again?) It was hard for me to get it (old dog learning new tricks). But I persisted and suddenly the light bulb went off and it all became super simple and easy. It was a hard journey but worth it. I am a much better programmer today, in any language, because of it.

comment 4y ago · link · parent

In Haskell you can you Lenses to easily manipulate sub-trees, individual values, or a selection of values in tree like data structures. It is very powerful.

comment 4y ago · link · parent

I am also in the compiler/interpreter business. Can you tell me more about what you are working on? It sounds interesting.

comment 4y ago · link · parent

Not my experience at all. It leads to joy and happiness when things go better than I expected. Also, I never stop working on improving things. There is always a chance that things are actually better than I expect.

comment 4y ago · link · parent

Yep exactly my experience. That combined with solid tests => I spend almost 100% of my time adding new features instead of staring at code and fixing bugs.

comment 4y ago · link · parent

I like your approach. Having a clear understanding that all software is just state machines is a great way to solve hard problems.

comment 4y ago · link · parent

Just do it. Don’t ask for permission. You will end up more productive not less.

comment 4y ago · link · parent

The size of a code file doesn’t matter. What matters is the amount of state the code in the file manipulates. For example, a 100k line code file with 500 pure functions not using any global state is fine. It is simple. However a 100k line code file with 500 functions that all manipulate 1000+ global variables is extremely complex and hard to maintain because of the undocumented global state invariants and hidden side effects.

comment 4y ago · link · parent

The world runs on software like that. Hard to maintain “crappy” code that makes $ beats clean pure “perfect” code that makes zero $ every time.

comment 4y ago · link · parent

It might sometimes be hard but I have never seen a case where it was impossible (25+ years of experience dealing with undocumented legacy code more often than not).

comment 4y ago · link · parent

My experience as well. Also the main recommendation from the most excellent “Working with legacy code” book.

comment 4y ago · link · parent

It’s actually quite easy: simply lower your expectations until your life is better than you expected. Sounds like a joke. But is it really?

comment 4y ago · link · parent

The world runs on C/C++ code. There are more than 5 million C++ developers out there and that number is increasing. So it doesn’t look as if C++ will go away any time soon.

comment 4y ago · link · parent

I have worked with a few developers who went on to work for FAANG companies. They were OK but not the best I have worked with. They did however have an inflated opinion of their own skills. Perhaps that helps when interviewing?

comment 4y ago · link · parent

If it isn’t falsifiable it isn’t science. I read enough of the book to realise that it isn’t what it claims to be.

comment 4y ago · link · parent

There is a reason why Wolfram gets routinely dismissed: he repeatedly makes bold self-promoting claims backed by algorithms that are in reality pseudo-random number generators. I must admit that I feel sorry for him. His insatiable need for recognition overpowers his otherwise impressive intellect.

comment 4y ago · link · parent

Thanks for an EXCELLENT answer.

comment 4y ago · link · parent

My company has very few meetings. I might attend a meeting once or twice a year. One of the reasons why I am still working there. In my experience the more meetings a company has, the less effective/productive a company is. And I like getting things done.

comment 4y ago · link · parent

One of my favourite computer engineering books. Highly recommended.

comment 4y ago · link · parent

It’s great that there is commercially successful software written in Lisp. However a lot more needs to be written in Lisp to compete with the hundreds of thousands of commercially successful applications written in other languages. I don’t think that will ever happen. But that’s fine of course. Pick the language that makes you happy and work with that. It doesn’t have to be a popular language to make you happy.

comment 4y ago · link · parent

Not at all. I have experienced co-workers getting upset over things like that. Leading to heated arguments and bad feelings. My point is that what you happens to think is offensive and what isn’t does not match what others find offensive. So trying to ban everything that might offend somebody somewhere will lead to everything being banned. It won’t just be your particular pet ban list.

comment 4y ago · link · parent

I agree. Nothing stops Lisp fans from using Lisp for their own projects. The fact that Lisp isn’t popular, and probably never will be, really shouldn’t matter.

comment 4y ago · link · parent

> For the record, I made (and make) no claims about "non-Lisp developers not being smart enough".

I am glad to hear that.

comment 4y ago · link · parent

“I like cheese” will be offensive and perhaps upsetting to some vegans. So better not talk about food at work. The same with pretty much any subject you can think of. Making the work environment or any other environment non-upsetting to everybody at all time is impossible. Somebody gets promoted instead of you: now you are upset. So let’s ban promoting people. The CEO makes 1000x more money than you while golfing every day? That upsets a lot of people. So let’s ban that. Some people are better dresses than you at work. How upsetting. Let’s all wear identical clothes. I could go on. But that might upset somebody somewhere.

comment 4y ago · link · parent

A number of Lisp fans seems to care. That’s why we regularly see articles on HN trying to convince other developers to use Lisp. It has been going on for years. Article after article written by frustrated Lisp fans, not understanding why the language they love is not mainstream. Often making bizarre claims about non-Lisp developers not being smart enough to “get” Lisp or whatever. Not having a clue that most developers care about a lot more than just the programming language. The best way to show the “power” of Lisp is to develop commercially successful software using it. That will do way more to convince smart developers to try out Lisp than writing yet another Lisp article trying to “sell” Lisp.

comment 4y ago · link · parent

Absolutely! The same way that Lisp is a poor substitute for C and C++. All languages/systems/libraries/frameworks have things they are good at and things they are bad at. Which is why we don’t all use one language/library/framework/… for everything.

comment 4y ago · link · parent

Let me give you an example: Let’s say (for arguments sake) that I got upset reading your comment. Following your logic it is now your fault that I am upset. So you need to change your behaviour until I am no longer upset. Can you see how impractical/impossible that is? Any opinion you have might upset somebody. So the only way to not upset anybody is to stay silent.

comment 4y ago · link · parent

Why the downvote? Are you (for example) saying that religion should be banned because there might be somebody out there who gets upset when religious people try to force society to conform to their values? Or that right leaning people should be banned from expressing their opining because left leaning people get upset listening to their arguments? Really?
1
626364
116