HNHacker News
TopNewBestAskShowJobs

ekr

730 karma · joined January 27, 2013

h2ofarmer@proton.me
submissionscomments
ekr··on Why people still go to grad school
Whether it is minuscule or meaningless is isomorphically equivalent to the question of whether reproduction itself is meaningless. I'd say the meaning in this case is in the eye of the beholder.

The physical reality is one and only.

ekr··on Ask HN: Is any of Dave Cutler's code open source?
It's not the first time I'm mentioning this around here, but the WRK 1.2 is quite easy to find online. Surely, there are some license issues with that, but with a simple google query you run into something like this : http://gate.upm.ro/os/LABs/Windows_OS_Internals_Curriculum_R... .

Here you've got most of the kernel code of the Windows Server 2003. It's clear that Dave Cutler had a great influence on it.

ekr··on Windows Kernel-Mode Drivers Written in Rust
I think the most significant are the SAL version 2 annotations. This is a nice introduction : https://www.cs.cmu.edu/~fp/courses/15122-f10/lectures/25-sal....

Basically, there's an additional step after compilation, called code analysis, which runs this static verification. I think it's implemented on top of the Z3 theorem prover.

ekr··on Comparing the CPU of the iPad Pro 9.7 to My MacBook, Surface and 6S
I'm not at all familiar with the Apple development ecosystem, but since Swift has been open-source, why not run the swift version on all platforms? There are vast differences in the implementations of C++ and Swift, even if both are compiled to native machine code.

That aside, given the hype behind Apple devices, I'm sure there have been loads of benchmarks published already. What I would personally be more interested in, would be to see how the A9X fares against Intel's Core M's, which have a similar power envelope.

ekr··on Good affordable laptops I can run linux on without compatibility problems?
I got a Lenovo L520 with a sandy bridge i5-2410m, 4GB RAM about 1 year ago refurbished from Germany. I paid 97 Euros for it, great value for money I would say.

It's been rocking Arch Linux with i3wm ever since, and never had any problems with it. I used it mainly for programming.

ekr··on What was your best passive income in 2015?
After going through your timeblock app, I still don't know what exactly it is for, or why people would pay for that. I get that it is a sort of calendar with time tracking features. What makes it different from the thousands of other similar apps?
ekr··on Frama-C: Function Contracts and Static Analysis for the C Language
I wonder how it stacks up against Microsoft's SAL annotations. So far I've only used SAL annotation, with the compiler's /Analyze flag, but the amount of checking done is limited, and the system itself is far from perfect, sometimes pointing to logical errors that are clearly not there. However it is still very useful.

Maybe Frama-C is better?

ekr··on Ask HN: Do you consider yourself to be evil?
http://mindingourway.com/there-are-no/ http://lesswrong.com/lw/i0/are_your_enemies_innately_evil/

As others in this thread, I don't assign a goodness index to people around me, my model of them is much more complex than that, based on evolutionary psychology, mainly.

As for myself, I try to maintain a love for the self, in a way, trying to reassure myself that my system 2 thinking will be there for system 1, irrespective of whatever failures I may be experiencing. That's not really compatible with my definition of evil.

ekr··on Ask HN: Books that altered your view of reality
The Moral Animal: Why We Are, the Way We Are: The New Science of Evolutionary Psychology - Robert Wright.

After reading this, you will understand (and be able to predict) a lot of patterns of human behavior.

ekr··on Citi's Chief Economist Recommends a Universal Basic Income
Why do you say that? I think the technological progress will continue to grow exponentially. There are more researchers now than at any point in human history. The economic incentives are still at least as big (relatively speaking).

At the moment there are many industries with great potential for applying machine learning and various other automation techniques.

And considering that many leading AI scientists are expecting smarter-than-human AI within this century (or the start of the next one), I certainly fail to see your point.

Anyway, there is still a lot of room for exponential growth of human knowledge, in a lot of fields.

ekr··on What is wrong with NULL
I also don't think a C preprocessor is at all confusing, it's quite a simple program, both to write and to program. Including less used features such as concatenation or stringification.
ekr··on Ask HN: How many hours do you work?
That's exactly my problem, I can't work for more than 5-6 hours because of exhaustion. But in my case, I'm still in school and work full time, so that may be part of the problem.
ekr··on A Western Kid Living in Communist Poland (2014)
Jacques, may I ask what brought you to Romania (are you still there)?
ekr··on Ask HN: What's your best C/C++ profiling tool, hints and best practice?
Any tips on profiling windows device drivers? I've tried xperf, but it doesn't allow you (or I haven't seen how) to change the frequency of the sampling, and can only do a system-wide profile.

I've also tried vtune, but it doesn't support stack-tracing (or things like lbr) for system-wide profiling, and it doesn't have a specific option for sampling drivers. You can attach to the System process, but then you're missing a lot of the your driver code, that runs in other contexts.

I kept thinking about implementing my own sampling profiler (using LBR for stack-tracing, and hardware performance events, like linux's oprofile/ freebsd's hwpmc), but I can't see how I could only profile my driver, and not the whole system, without hooking the Windows scheduler. I guess I will just profile the whole system and check if the program counter is inside my module.

ekr··on Purism – Privacy-Respecting Laptops
I don't know about this Purism ideology thing. Having watched the video, they keep saying things about people losing privacy through the use of various websites, that's the main point of the video. You can't solve that with better hardware, if you provide data about yourself to a third party.

And the hardware they do provide is not significantly more secure/libre than any run-of-the-mill laptop. I mean Intel, with Intel Management Engine? Surely, you're joking.

Providing a linux distro-spin-off as an OS?

To me, these guys sound like crooks, because they make a lot of claims, and they are nowhere near delivering on those promises. And they use a bullshit language with terms like ideology, but again with no real substance to back this up.

I'd much rather buy a Novena, if I was really concerned about this kind of things. Just my 2 cents.

ekr··on Golang data structures
Has anyone used Ctries in any real scenario (has anyone implemented them in a language like C)? How do they fare as opposed to other data structures? Is the latency of CAS instructions insignificant?

I'm thinking of using it in our codebase, in theory it should speed things up quite a bit.

ekr··on LLVM merges SafeStack
If you're interested in learning about exploit writing, you might want to check this page : https://www.corelan.be/index.php/articles/ .
ekr··on LLVM merges SafeStack
Does this mean that it will no longer be possible to do things like return-oriented programming?

LE: indeed, it's quite clear from the mentioned article (http://dslab.epfl.ch/pubs/cpi.pdf). So this provides great exploit protection.

ekr··on Ask HN: Best developer notebook in 2015?
I'm still using a 2009 HP 6910p (Core 2 Duo T7300 CPU) bought used for 120E in 2012 or thereabouts. I use it for C (mostly, but also py, haskell etc) programming, Arch Linux + i3 WM, it has a great keyboard, everything works out of the box.

There are very few things a modern laptop would bring me that this one doesn't.

At home I have a much more capable development desktop, and at work an even better (i7 4790) computer. But the thing is, apart from the lower power consumption (from 20W-30W regular usage down to 10-20W, depending on the configuration), there's no point in upgrading for me.

I'm still a student, so I'm still playing occasionally with things like OpenGl shaders, game programming, machine learning, and other orthogonal areas of computer science, for that I use my desktop. I don't think a laptop is that great for working (sub-optimal posture).

But sure, there are people who need bigger screens/ more horsepower (high-performance computing/ those coding in memory hogging environments).

But for Linux, and low-level programming, a slightly older machine definitely suffices.

Granted, I live in a part of the world where one can live reasonably for a few months-up to a whole year for the price of a rMbp, and I value financial independence, freedom, more than the status signaling ability a Mbp could bring, but I do see why others might value it more.

ekr··on Beej's Guide to Network Programming (2012)
Well, maybe it's about taste. But I personally can't stand these kind of books. Take this paragraph for example:

> What's this? There are two types of Internet sockets? Yes. Well, no. I'm lying. There are more, but I didn't want to scare you. I'm only going to talk about two types here. Except for this sentence, where I'm going to tell you that "Raw Sockets" are also very powerful and you should look them up.

There are quite a few books written like this, including most online tutorials, and other resources.

What I don't like about it is that more than 50% of the content is filled with the author's anecdotes (some of them have better sense of humor than others), while the actual content being discussed is barely touched.

You'll never see this kind of content on advanced mathematics, or field that require intense concentration, advanced thinking, because it's difficult to switch the context of your thinking from the author's silly jokes to the actual thing you're trying to learn.

In this case, it's simply touching the very simple bsd socket api, so of course it's very easy to follow. But imagine that you removed all the unnecessary jokes and anecdotes, you'd end up with 50% of the text and 100% of the useful information. I'm pretty sure information density is a good quality to have for any piece of writing.

ekr··on Data is at the heart of search, but who has access to it?
So that's why Google created the Chrome browser.
ekr··on Ask HN: Anxiety is limiting my enjoyment of a wonderful career. Can you relate?
I've been (still am to a degree) in a very similar position. I also self-diagnosed myself with generalized anxiety.

I've starting working at a job about a year ago, a job that theoretically would be very close to what I would be doing in my spare time. And yet, I have the same problem, something is inhibiting my ability to focus, concentrate on problem solving, to provide solutions, and I'm fairly sure that thing is anxiety. I constantly feel very tired.

I don't really know what I could do, I've noticed that the problem tends to fade after exercising thoroughly (century mountain-bike ride or similar endeavors), but I'm still struggling with it on a day-to-day basis, and constantly think of quitting.

It certainly doesn't help that I'm also attending CS university, which doesn't leave me with enough time to fix my problems.

So you're definitely not alone in this.

ekr··on How Silicon Valley is trying to cure ageing
Obviously, the market value of such a result is in the order of billions, if not trillions.
ekr··on In Praise of Idleness by Bertrand Russell (1932) [pdf]
At this point in time, the technology required for autonomously producing food has already been available for some time.

At the moment, there are still a significant portion of the population employed in architecture, but by applying the technology developed for self-driving cars for e.g., that number can be reduced signficantly.

ekr··on Windows 10 for Raspberry Pi 2
No, Microsoft has this Windows Research Kernel they offer to universities and other organizations under a certain strict agreement. This particular site probably has no idea of what access control, or directory access rights mean, so it's easily accessible for anyone.
ekr··on Windows 10 for Raspberry Pi 2
Now, while legally, you are perfectly right, Windows is as close as ever, it's not actually that hard to look under the hood.

I work as a Windows device driver developer, and sometimes I need to reverse engineer some of the internals, and the source code from WRK is easily available on the internet : (http://gate.upm.ro/os/LABs/Windows_OS_Internals_Curriculum_R...). These are sources from 2005-2006 timeframe, but they are tremendously helpful when debugging. If you compare the disassembled version of an exported function from the Win 8.1 ntoskrnl, in most cases it's almost identical to the sources in those links. Of course, there are a few parts of the system which suffered changes, but nonetheless, it can still be very useful.

I would also recommend it for studying operating systems, but obviously, along side something else. Let's say after starting with XV6, or Pintos, Minix, then moving on to NetBSD, Linux, only after that having a look under the hood of Windows, to see a slightly different approach.

There is also the 'Windows Internals' book, but I never found it too useful. Describing concepts without any source code, and without a view to the implementation is not very helpful for me.

But I completely agree with you, personally, I would never use Windows if I wanted to play with it, I only use linux and bsd at home.

ekr··on Get your loved ones off Facebook
I seriously doubt that 'millions of dollars a month to run' price-tag. There are alternative, even superior open source software solutions.

The only cost are the servers, but certainly, even with facebook's traffic, a well built stack could run on not more than a dozen. So I'd imagine facebook could be run on a few thousands of dollars a month, certainly the costs shouldn't be that much higher than wikipedia's.

The only thing that's valuable in facebook, and hard to replace, is the user-base, which was won through heavy marketing, and having a more attractive product at a critical stage (more attractive =/= technically superior).

ekr··on The Nebra sky disk
Same thing happened to me, despite living a few hours' drive away from this Nebra archaeological site.
ekr··on 2015: The Year of the OpenBSD Desktop
I don't understand programmers who say that Linux has so and so unsolvable problem.

A certain program running on Linux has a problem on your particular hardware? You wanted a Unix environment, so surely you've investigated the market for compatibility with Linux, when you purchased your hardware.

Second, I've been running arch linux with standard packages on several random laptops and desktops and never had any problem whatsover. It's been my main OS for years. Actually my only OS.

Third, a certain program crashes/ has a bug on your hardware? Then switch that program with something else. If what you care about is a Unix environment for programming, and Gnome is having some problem with your hardware, than switch to Xfce, or Xmonad, or i3 ... That the rational thing to do.

If you still want that particular program that's having problems with your hardware, because, maybe you really like the UI, then by all means fix that bug. It shouldn't take you more than a few minutes, at most a couple of hours in 90% of the times. This assuming you're a C programmer, of course, and maybe some experience with device drivers.

If you're not a hacker, don't like playing with the internals of various userland programs or OS components, then don't compare Linux with Mac or other commercial crap. Set up a bounty for fixing your problem, or donate to the Linux foundation, or the software you would want improved.

----------------

This being said, I'm currently in the process of switching to FreeBSD (later maybe some other BSDs), because of the cleaner, lighter code-base.

----------------

LE: apparently, as seen by recent down-voting patterns on some of my latest comments, there aren't a lot of hackers on this site. I don't see why a reply that expresses an opinion that is not hurtful to anyone would warrant downvotes, but who cares.

ekr··on Start your small operating system in Assembly
This doesn't change the fact that the title is misleading.
← PreviousPage 7 of 10Next →