3,876 karma · joined Mar 28, 2019 (7y ago) · 2,562 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
Compared to the rest, C99 contains a lot of useful improvements.
comment 6y ago · link · parent
comment 6y ago · link · parent
My native language is Swedish. I've studied English since I was 8 (and I'm 42 now), German for 3 years in school and lived there for 4, two years of Italian and two years of Chinese. It seems the more languages I learn, the more interesting and worthwhile it gets to compare similarities/differences and the easier it is to learn new ones.
Learning a completely different language, such as Chinese coming from English, has similar benefits to learning Lisp coming from Java. It stretches the brain in exotic ways.
comment 6y ago · link · parent
More important in my mind is that open source software is strictly higher quality from a technical perspective. Because it's not prostitution most of the time, it's passion and wider perspectives such as sharing knowledge. And a higher quality foundation means better software, because whatever commercial cruft someone adds on top it will still work better.
I recently reinstalled a laptop that was running Windows 10 with Kubuntu for a non-technical friend, which is not an excellent example but still applies since Canonical is semi-commercial. And it's a total win, because Windows is simply crap from the bottom up.
Android is another example, as is macOS.
comment 6y ago · link · parent
This applies to everything I've worked on, from personal projects up to 10KLOC to 3MLOC commercial systems. It's just never a good idea from my experience.
The code [0] I write these days tends to be pretty raw, but every single line fills a fundamental purpose.
2317.
Show HN: libceque, a pool allocated C11 deque with value semantics(github.com ↗)
2 points · by codr7 · 6y ago · discuss
2318.
Show HN: Moment of Truth(github.com ↗)
2 points · by codr7 · 7y ago · discuss
comment 7y ago · link · parent
I then went on to use subversion for a long time in different settings. Up until the day I finally tried git. This is not about centralized vs. distributed, it's simply superior software, period. Nothing else I've tried even comes close.
comment 7y ago · link · parent
And what's an 'implicit'?
I would trade real macros for almost any other language feature, as having them means being able to patch over whatever is missing.
The more powerful a language is, the less popular it will be. Couldn't be any other way, since only people with enough experience appreciate and feel comfortable dealing with them.
comment 7y ago · link · parent
It's the same story wherever you look, true Haskell believers make exactly the same claims. You just need to get used to it. And I'm sure I could, it worked for a little while in Haskell.
But as soon as I'm back using practical minded, general purpose tools; it comes back to me and I swear to never ever accept anything that doesn't make sense to me again.
This is not about being different, if you think that's the case you probably didn't take a very close look at forthy2. If it walks and quacks like a religious cult, that's what it is.
comment 7y ago · link · parent
I'm only half joking.
I'm glad you find pleasure in Joy, really am, programming should be more enjoyable. And having only read about it, I feel like they're related in spirit.
But this looks like madness to me. There's just too much stuff in there that has nothing to do with the algorithm. It feels like stacking monads in Haskell. Sure, it's cool and all, I mean that it works. And beautiful on one level. But still madness, as far as solving problems go.
comment 7y ago · link · parent
So no, I didn't do anything :) It's all C++, all the way.
I suspect most standard Forths don't give a crap about the CPU, they like to implement everything themselves.
comment 7y ago · link · parent
I too find dogmatic Forth a struggle to reason about, which is why we're here I guess. A type system in combination with generic methods help a lot, since most mistakes are caught in dispatch and give reasonable error messages.
comment 7y ago · link · parent
I get the feeling that PostScript is close in spirit, they were also into pimping Forth using Lisp as inspiration. I think some of the HP-calculators also had similar languages, but never used them myself.
For me, generic methods (or words in Forth lingo) is the biggest deal. Followed by scopes and compound literals such as stacks and scopes.
comment 7y ago · link · parent
I'm still undecided on the stack ops. There is one case in forthy2 where a reference is left on the stack, and that is splicing values into forms [0], where it's more likely you want to keep working with the same form. More likely is not a very good heuristic for designing API's though, so I might just go with the behavior you expected.
comment 7y ago · link · parent
At one point I had wrappers around Python's IMAP/SMTP implementations that I excuted from Go, since at least Python had 20 years to make theirs work properly.
Any other implementation I tried failed somewhere along the way, especially as soon as you start moving messages around in folders or anything else beyond simply fetching messages.
SMTP is simpler from my experience, but then so is the work it performs.
I even played around with the idea of cooking my own to get out of this loop, but reading the specifications soon killed that idea. It would take a life time, probably be deprecated by the time, and still wouldn't work properly.
The new JSON-stuff honestly doesn't look much better from what I've seen. It seems to still be doing IMAP, only using JSON instead, which wasn't the problem. I'm not holding my breath about it becoming standard enough to depend on.
It's a mess, so much that I'm thinking it would probably be better to start over entirely.
2338.
Show HN: forthy2 – a higher level Forth-remix in C++(github.com ↗)
65 points · by codr7 · 7y ago · 28 comments
comment 7y ago · link · parent
I once did some Java EE in Eclipse. They both look mostly the same to me. A mountain of crufty crap covered with as much lip stick as it took to make it sort of flop along.
I'm sorry if I'm stepping on toes here, this is just my experience. May I ask what you're using component frameworks for these days? I spent 13 years professionally writing reservation and accounting client/server apps in Delphi but never even came close.