HNHacker News
TopNewBestAskShowJobs

ekr

730 karma · joined January 27, 2013

h2ofarmer@proton.me
submissionscomments
ekr··on Start your small operating system in Assembly
This is in no way an operating system. An operating system (by most definitions) is supposed to abstract the hardware, to provide things such as processes, a scheduler, a file system, a framework for device drivers.
ekr··on “What happens when you type Google.com into your browser and press enter?”
This would make a great subject for a book, along the lines of NAND2Tetris, starting at the transistor level or below.
ekr··on How long is your commute?
12 minutes by bike, 40 min by bus at rush hour (yeah that's a case of terribly inefficient public transportation, an tge reason why 99% of the time i cycle).
ekr··on Those making $1,000+/month on side projects – what did you make?
Actually the fact the the users don't pay for it is not relevant. You're still making a transaction with the user, providing them with a service, in exchange for them putting up with your ads. But in reality the service you say you're providing is false.
ekr··on Intel Compute Stick
This has already been done by some Chinese manufacturers, http://www.szapec.com/default.asp?id=1793, and the Meegopad (http://www.cnx-software.com/2014/10/15/meego-t01-hdmi-tv-sti...).

And given that the Intel's Linux version will only have 1GB of RAM, and maybe a slower CPU than a Windows version, these Chinese alternative could get quite a bit more attractive, given that their price will go down in time as well.

ekr··on Why Rosyna Can't Take a Movie Screenshot
> Though I've never had this particular problem even with "DRM'd" media on Linux

The intel video driver on Linux is open-source. I am sure there would be forks disabling this functionality in case it would be implemented. I find it outrageous that there's software that disables a functionality like screenshot taking, that's malware to me. I own that framebuffer, not intel.

ekr··on Beginners' Guide to Linkers
I think C (and Unix) was the original context in which the static keyword appeared, and as such, changing its meaning would be a terrible idea. A C programmer has to deal with things a lot more complex than the syntax (which IMHO is much clearer than any more modern language, in the context in which it is most commonly used, i.e. system programming).

So if someone is 'confused' by the fact that a keyword has two different (albeit related meanings) in the language, and is too bothered to check a manual, or the internet for an explanation, how is that person supposed to write a driver or an operating system, or use low level ipc/communication mechanisms, or debug an elusive deadlock? C is not JavaScript, get over it.

ekr··on Ask HN: Amount of time needed to become a competent programmer?
>You can read hundred different programming books but none of the theory books will teach you more than just the syntax of the language/ programming paradigm.

Huh? That's not true. I wouldn't call a book that teaches you a programming language a programming book. Art of Computer Programming is a programming book, and I guarantee that you'll learn more than just a programming language from it. Or Introduction to Algorithms. Or books about operating systems, or computer graphics. These are all programming books.

ekr··on How to Design Programs, Second Edition
Does any know what software was used to generate the book? I assume, because of the CC license, the source might be in some github repo, but I was unable to find it.

LE: Thanks.

ekr··on A Meditation on the Art of Not Trying
First ran into this concept (not exactly the same concept) here http://lesswrong.com/lw/uh/trying_to_try/

I still have a lot of struggle in my life, slowly I'm getting there.

ekr··on Ask HN: What is the most important NP-complete problem?
The knapsack Problem (the classic 0-1 version) is solvable through Dynamic Programming in O(n^2) time

The problem you described is the Multiple Knapsack Problem, which is indeed NP-complete.

ekr··on Ask HN: What is your experience with working remotely?
Literate programming is a method introduced by Donald Knuth (http://en.wikipedia.org/wiki/Literate_programming). I've stumbled upon it whilst reading Physically Based Rendering, and then LCC: Retargetable C Compiler.

There are some programs that can turn the "documentation" into code : http://en.wikipedia.org/wiki/WEB , but most of them are quite old AFAIK.

ekr··on ODROID-C1 – Quad Core ARM Linux computer
With lots of 64bit ARM chips coming to the market in the near future, I would wait just a little bit more.
ekr··on The Teensy Files: Creating teensy ELF executables for Linux
For anyone looking for more ASM related information, http://asm.sourceforge.net/resources.html#docs.

That's where I've first seen this site.

ekr··on Can I really do it?
> there is no way to write algorithms in C#

Sorry, but that's just bullshit. I'm a C programmer by trade (I program device drivers), and love Linux/BSD/Unix and despise Microsoft, you can write any algorithm you want in C#, or Java, and I'm not talking about Turing completeness. (just recently as part of a school course, I had to implement red-black trees in C# and Java, I could show you the source if you still don't believe me).

C# and Java references work just as well as pointers when defining a tree node for example.

ekr··on Stack Free Recursion (1995)
Haven't read all of it, but the author assumes the availability of a return stack, which somehow makes this approach not really stack-free. Most modern calling conventions (x86) use a register(eax/rax) for returning values.

But his approach does in fact conserve stack space.

ekr··on A Culture of Envy
> I believe that if there is one thing humanity needs to do to get through the next few centuries, is to reject envy and stop taking finite games seriously.

That cannot happen as long as you want humanity to exist. Reproduction is the driving force, shaping everything from our behavior, including the search for status, which is an important mechanism in mating. If people didn't signal [http://wiki.lesswrong.com/wiki/Signaling], evolution would be a lot slower (or maybe could exist at all?).

Now, status doesn't necessarily need to be related to wealth, however for the past centuries, that was a reliable indicator.

This is really basic evolutionary psychology, and I encourage the author the check it out.

ekr··on BeeFree email editor
As a sidenote: BeeFree is a well-known Win9x malware : http://vxheavens.com/29a/29a-6/29a-6.402 .
ekr··on Ask HN: Why did you choose a particular “flavor” of Linux?
Arch as well. I like to keep things simple (as in the Unix philosophy).
ekr··on OpenGL in 2014
>The API is still pretty rough and could see some improvements. I know this myself, I also played around with OpenGL at some point. There is a lot of boilerplate code that needs to be written before you can start yourself with the real game.

OpenGL is a graphics library (and a rather low-level one too), so it has very little to do with games. It's only a specification for the wrapper above the gpu hardware.

ekr··on Doing something completely new with my life, need some advice
I'd also be interested in that.
ekr··on Woman of 24 found to have no cerebellum in her brain
I'm not very invested in this field, however, this "processing power" metaphor sound like those ideas "where people only use 10% of their brain". The brain doesn't work like that, it's not a general purpose computer. It's made up of several independent mechanisms, that have little to do with each other, and that have emerged at different points in evolution, driven by different forces. So their creation is rather chaotic.
ekr··on A hilariously sad tale of gender bias
>"woman who wrote the #2 Computer Science book on Amazon, about coding and technical interview skills"

Computer Science has absolutely nothing to do with either coding or interviews, it's a subfield of mathematics.

ekr··on I/O Stack Optimization for Smartphones (2013) [pdf]
It would have been interesting to see the impact of these improvements on battery usage.
ekr··on It Is Not About the Money, Silly, It Is All About the Time
"When I look around me I see people making endless purchases of stuff they don’t actually need [...] I don’t understand any of it."

Oh really, you don't? Then you should do some reading on signaling[http://wiki.lesswrong.com/wiki/Signaling] and evolutionary psychology.

Humanity is driven by sexual pressure, and a big factor in that is social status. Most of the time people don't make purchases with their neocortex, but rather with their "reptilian", so analysis about their lives are out of the question.

ekr··on KDE Plasma 5
No you're not, I've been running Openbox on desktop and XFCE on laptop for a few years now.
ekr··on The Knapsack Problem
That's the greedy(and obvious) solution, which is optimal for the fractional version of the problem, not in the case of the 0/1 problem, mentioned in the article.

If you want a really challenging problem, look into the multiple knapsack problem.

ekr··on Ask HN: How to tell what's true from false or right or wrong?
What you need to do is to read the Less Wrong sequences. (http://wiki.lesswrong.com/wiki/Sequences)

That will help with clearing some things up.

ekr··on Ask HN: What do you do to blow off steam?
That's what forests and mountains are for, you don't need to ride on roads. Get a mountain bike!
ekr··on X64_dbg: An open-source x64/x86 debugger for Windows
How does this compare to WinDBG, which already seems fairly mature? Why would I switch to this? (if you ask me, the problem of FOSS doesn't come into play here, since Windows itself is a closed platform).

And indeed, a similar GUI-based debugger for Linux would be awesome as well.

← PreviousPage 8 of 10Next →