Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andreasgonewild
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
Forth, meet Unix
(github.com)
5 points
by
andreasgonewild
9y ago
|
1 comments
32.
▲
by
andreasgonewild
9y ago
How about taking Obama's away while you're at it? Or is that different somehow? Different standards maybe?
33.
▲
by
andreasgonewild
9y ago
I don't doubt that they are effective, I've seen them being used. What I'm questioning is the states right to treat its citizens like that, no matter how convenient. And they're obviously not as safe as claimed. What it
34.
▲
by
andreasgonewild
9y ago
Tasers need to go, it's bad enough to treat animals like that. At least before they shoot someone they think twice, and getting into a baton fight means risking getting hurt; this is not a bad thing in itself; the goal should be to de-
35.
▲
by
andreasgonewild
9y ago
The thing about side projects is that you're free to go wherever you want, no one is watching over your shoulder any more. It's a damned shame when they get lost in tar pits trying to live up to someone else's standards. Side
36.
▲
by
andreasgonewild
9y ago
It's definitely getting easier, but I still wouldn't even consider C++ without valgrind or similar watching over my back; and I've been writing C++ since 1995. Accessing a variant value as the wrong type, dereferencing empty
37.
▲
by
andreasgonewild
9y ago
"...would have probably worked for Neanderthals" Speculation in other words, not science; imagination, not facts; which is fine unless it's being framed as truth.
38.
▲
by
andreasgonewild
9y ago
It was a random blog post praising the simplicity of Forth; couldn't find it again if my life depended on it. Thankfully it didn't go too much into Forth dogmatics; what it did instead was to cut the ideas down to their core, whic
39.
▲
by
andreasgonewild
9y ago
I came into Forth with 32 years of mixed experience from Lisp, Smalltalk, Haskell, C++, C, Java, Perl, Python, Clojure, Scala and more; it's difficult for me to judge anything from that perspective. I've never written a standard F
40.
▲
by
andreasgonewild
9y ago
Using Forth as a substrate lets you focus on the more interesting aspects to an even higher degree than Lisp. The last thing you want is detailed instructions; unless you're just building another whatever, which never really made sense
41.
▲
by
andreasgonewild
9y ago
So you're looking at up to four times as many chars per code point to take into account, but you still claim it's mostly the same thing. Good luck with the lobbying then, I think we're going to have to agree to disagree on th
42.
▲
by
andreasgonewild
9y ago
But processing UTF8 is still without a doubt more complex; you're not going to weasel your way out of that fact, no matter how many cases you can think of where they are comparable. Why can't several alternatives be allowed to coe
43.
▲
by
andreasgonewild
9y ago
Not to the same extent as UTF8. It's not like UTF8 invalidated all other encodings; they still fill a purpose and UTF16 seems to still be a popular choice for internal processing, despite the misguided push to use UTF8 for everything.
44.
▲
by
andreasgonewild
9y ago
As much as I enjoy making fun of JavaScript, it seems more likely to me that the reason JavaScript uses UTF16 internally is the same as for most other languages that support Unicode; it's more efficient and convenient to process. UTF8
45.
▲
by
andreasgonewild
9y ago
Or take that even further and allocate a slab that's big enough to last the entire runtime and send malloc on vacation. It's worth repeating, with todays focus on web-frameworks, cloud-providers and dogmatics these ideas are slipp
46.
▲
by
andreasgonewild
9y ago
Adding a condition-variable per select and keeping a list of pointers in each channel that are pinged when data arrives is the easiest approach I can think of. Haven't tried that one though, I have honestly never run into a use case wh
47.
▲
Forth, meet Unix
(github.com)
2 points
by
andreasgonewild
9y ago
|
0 comments
48.
▲
by
andreasgonewild
9y ago
Are you saying they are allocating a separate file-descriptor for each channel just to be able to select? I guess you could do that if you wanted to but it's far from the first thing I would try. I remember reading an article on golang
49.
▲
by
andreasgonewild
9y ago
What is even more fundamental and useful than select is non-blocking reads (which the implementation I posted supports), once you have that you can write your own select. It's not magic, select has to traverse the list of channels just
50.
▲
by
andreasgonewild
9y ago
I was thinking about mostly about atomics, which aren't covered by pthreads; and I can't remember shared mutexes being supported either.
51.
▲
by
andreasgonewild
9y ago
There is no need to use raw pthreads in modern C++, it comes equipped with a much more convenient and capable standard library module. I prefer working with channels, which are still missing from the library; but they are trivial to add: h
52.
▲
by
andreasgonewild
9y ago
Don't feel bad, tutorials are for when you don't know how to start. If you have a clue how to approach the next step, having a go based on intuition is a superior strategy. Maybe you'll do something stupid, maybe not; either
53.
▲
by
andreasgonewild
9y ago
How about decrypting antifa instead? Replace Fascist with Communist and it's like entering a time machine, only the name of the bogeyman and the faces of the ignorant haters change. Truth is, we're all in this together; the real e
54.
▲
by
andreasgonewild
9y ago
Eating them whole is even better. But calling pressed fruit the same thing as the poisonous crap they would rather have us drink isn't helping anyone. It's clearly not the same thing.
55.
▲
by
andreasgonewild
9y ago
I am fully aware that this is business as usual these days, but that doesn't make it any less destructive to society or any less a scam. What you're saying is basically that as long as people fall for it and you don't go to j
56.
▲
by
andreasgonewild
9y ago
Did you just call pressed veggies and fruits sugary drinks? As in more or less the same as Pepsi? The problem with Juicero is that it was a scam, pure and simple. Overpriced bullshit and awesome profits, at least that was the plan. Thank go
57.
▲
by
andreasgonewild
9y ago
Totally get your point, but not being all that you are out of fear for consequences will never work out. Whiners and trolls are way overrepresented, it's a way of life for them. But for every confused individual there's someone wh
58.
▲
by
andreasgonewild
9y ago
Do what you love and the right teachers will knock on your door when you need them; you might not recognize them as such but everything you need is already provided, should you choose the narrow road. Outside of following your own passion a
59.
▲
by
andreasgonewild
9y ago
Finally :) I've been arguing for fibers, coroutines and generators with non-blocking IO as an alternative to bending everything backwards to fit in event loops for a long time. And begging for salvation from ever dumber and clumsier pr
60.
▲
by
andreasgonewild
9y ago
Word. The Book of Life, never heard of it; but we could use some emotional intelligence in this mess. Comparing the kind of code I write when I'm free to follow passion and intuition to the kind of software I used to be paid to write t
More ›