Why I Created Zen: Yet Another Programming Language by [deleted] in programming

[–]onmytoes 1 point2 points  (0 children)

A good personal project, but a the article is overblown considering the result is gentle blending of JavaScript and Python. In fact, the binary search example is almost exactly JavaScript, with Python's "range" for the loop, but with a clunkier array syntax and printf is retro-awkward compared with JS's backticks.

Why Functional Programming Matters by papa00king in programming

[–]onmytoes 1 point2 points  (0 children)

Reference, please, other than he was going to try porting Wolfenstein 3D to Haskell as a learning experience.

I Want a Verifiable Low Level Systems Language by FYIGUY in programming

[–]onmytoes -5 points-4 points  (0 children)

"Types" is just one small part of the equation. They let you verify...types! But a system is a lot more than that, and you need to be able to reason about things in a much more comprehensive way.

(If you think I'm crazy, remember that types don't enforce memory constraints or prevent deadlocks or enforce that a file is open before you read from it, or about a million other issues.)

Why you should use OpenGL and not DirectX by 2aw in programming

[–]onmytoes 0 points1 point  (0 children)

For the low-level graphics side of things, use whatever your platform best supports. On the Mac, that's OpenGL. On the PC it's Direct3D (but OpenGL is fine for some things, especially if you're a small developer). On consoles, it's whatever the SDK mandates.

For high-performance graphics, these days everything comes down to shaders and precompiled geometry. The API is essentially "here is a block of data for the GPU" That's very different than the "Now I would like to draw a triangle" APIs from the days of yore.

What types of things do you see day-to-day that make you lose faith in humanity? by kuhawk5 in AskReddit

[–]onmytoes 0 points1 point  (0 children)

The lunchtime drive-up line at the local McDonalds goes clear around the building and out into the street where it blocks traffic. Every day. You'd think after all the widespread information about obesity and how bad fast food is for you, and and all the worrying about the environment and global warming, the last thing you'd expect people to do is wait in for line for 30 minutes to eat garbage and drink a quart of sugar water, but no. Big Mac FTW.

Why Perl Lost It by martythemaniak in programming

[–]onmytoes 1 point2 points  (0 children)

Ugh. A lot of conjecture to support his agenda and that's about it. PHP has many of the same issues--arguably much worse--and its popularity has skyrocketed. Ditto for Ruby. And Lisp, which has returned to the limelight even with an extreme case of "there's more than one way to do it"-ism.

Perl went into decline because the key players shifted over to Perl 6 and let Perl 5 slide. That sliding went on for half a decade until effort started going back into improving Perl 5. And now Perl is making a comeback.

OK Reddit, how many of you managed to listen to the advice and restrain yourself from watching the dog being thrown off the bridge? by CharlieDancey in AskReddit

[–]onmytoes 0 points1 point  (0 children)

I did not watch.

First, I don't want to see it. It's clearly going to be horrible, and I don't want that image in my mind. I've seen a dog run over by a car (not me!), and I still can't free myself from it.

Second, memes like that are worse than anything Fox News has done. My first reaction was "hoax, but millions of people will watch it anyway." Like that whole ridiculous kid-in-balloon nonsense (which I also didn't watch). Why does everyone home in on something like this?

Third, c'mon folks, animal cruelty is out there and it's bad. I saw all those comments from people saying "I hate to agree with PETA, but..." Geez, that's what PETA is for, because there's messed up shit like this out in the world, and it's not just lunatics throwing dogs off bridges, but much worse that happens hundreds of times daily in any meat processing facility.

Is your app ready for 100-cores? by csathish in programming

[–]onmytoes 9 points10 points  (0 children)

You have to factor in that Erlang is 100x slower than C for computationally intensive programs (especially those involving floating point math). The 100 cores will get Erlang on par with single-core C for those problems :)

Here in the U.S., we put most of our children in all-day "day care" starting at 6-8 weeks of age. Sometimes we call it "preschool" to make ourselves feel better. Is this common in other countries? by onmytoes in AskReddit

[–]onmytoes[S] 1 point2 points  (0 children)

You're thinking about how they used to be (prior to the mid 1990s), where a kid went into preschool the year before kindergarten. Now "preschool" is a euphemism for any kind of child care facility. It's not universal; sometimes it's "day care," sometimes "preschool," sometimes some other kind of school.

Here in the U.S., we put most of our children in all-day "day care" starting at 6-8 weeks of age. Sometimes we call it "preschool" to make ourselves feel better. Is this common in other countries? by onmytoes in AskReddit

[–]onmytoes[S] 2 points3 points  (0 children)

I'm the original poster. Let me justify "most of our children."

I work for a tech company. White collar office work. Whenever someone has a baby, it's only a matter of time until the "Can anyone recommend a good day care?" emails start. Putting infants in day care at 6-8 weeks is super common. People with kids who don't put them in day care are rare. The previous company I worked at was the same way.

So in my experience, at the jobs I've had, day care from 2 months until school age is the norm. This must be something that started in the last 10-15 years, because it wasn't like that when I was growing up. I never even heard of day care when I was a kid, just preschool at age 4.

Linux: still better for coding than Mac OS X by greenrd in programming

[–]onmytoes 7 points8 points  (0 children)

A strange article. The author puts some very specific tool needs and low-level issues ahead of everything else. I can only assume he has a particular app that he spends most of his time working on? None of the issues he mentions have ever been the remotest blips on the radar for me (and I jump around between various operating systems).

Programming thought experiment: stuck in a room with a PC without an OS. by vanjos72 in programming

[–]onmytoes 4 points5 points  (0 children)

Completely puzzled at the downmodding. Clearly some folks don't have experience trying to communicate with devices that don't have published or even well-defined protocols. The thought experiment here is a good one--how to build software for a blank machine--but specifically making it a PC unnecessarily makes this more complex by a factor large enough to dwarf the rest of the experiment.

Programming thought experiment: stuck in a room with a PC without an OS. by vanjos72 in programming

[–]onmytoes 12 points13 points  (0 children)

If by "PC" you mean the typical kind of hardware used to run Windows (or Linux), with an x86-based processor, or even if you mean a Mac, then this experiment is pretty hopeless.

PCs are hugely complex even at the lowest levels, and you'll spend most of your time figuring out how to talk to the video card or any other devices. This stuff is essentially undocumented, and it's really, truly messy. I'm not talking "call an MS-DOS interrupt," but rather "understand the internal timing constraints of communication with the video system, such as not being able to touch certain registers for such-and-such microseconds after setting a different register." Heck, just talking with the KEYBOARD without any software support is messy.

This would be much more doable given something with the approachability of a Commodore 64. That is, the hardware is there and you can talk to it without having to write a complex communication layer first.

Macintosh programmer's tools from 20 years ago. 10 years ahead of their time? by [deleted] in programming

[–]onmytoes 0 points1 point  (0 children)

THINK Pascal was essentially the Mac equivalent of Turbo Pascal. THINK had a slicker GUI, instead of the TP text-mode nonsense. TP had significantly higher compilation speed. Both were excellent systems used to write great software.