HNHacker News
TopNewBestAskShowJobs

nanofortnight

454 karma · joined March 3, 2013

submissionscomments
nanofortnight··on Email Encryption Software Relies on One Guy, Who Is Going Broke
So… enough pay for about 20 developers?
nanofortnight··on Show HN: Smart pointers for the C programming language
You don't get RAII in standard C. This code uses the GCC-specific cleanup attribute to emulate RAII.
nanofortnight··on Scroll Slow. Have Fun
I found it works better on my machine if I adjust .bars height to be 15.5px with a margin-bottom of 1px.
nanofortnight··on Windows 10 Technical Preview Source Tree
http://longbets.org/
nanofortnight··on Rust, an Anti-Sloppy Programming Language
It's a microkernel: it is intentionally minimal. Microkernel operating system design is from the 1980s is different from the monolithic, bulky and older operating systems designs you are used to (famously including Linux, see the Tanenbaum-Torvalds debate). It has all the features that it would likely ever need already.

Instead of having all the services required for an operating system in the kernel, the kernel just implements the bare minimum including fast IPC. Things that traditionally are implemented in the kernel (filesystems, device drivers, other modules, etc) are all implemented as services living in userland and are assigned the minimum necessary additional permissions for them to perform their task.

You can build a *nix like system on top of seL4. You can even run Linux itself on top of seL4, with L4 acting as a hypervisor.

An operating system doesn't consist of just the kernel.

nanofortnight··on “Invalid username or password” is a useless security measure
Your code has precisely the timing attack he tried to describe in it. You're returning early when a user doesn't exist.
nanofortnight··on Mediapig – A brand new cloud VPS provider
There is little information about what you are offering on your website, and certainly not enough to come to a purchasing decision. If it's behind the registration wall: While I might be interested in a new VPS provider, nothing on your main page compels me to register.
nanofortnight··on Hand Crank Media: Gadgets powered, operated, or loaded by hand crank
My favorite portable hand-crank powered device is the Curta, a mechanical calculator.

http://en.wikipedia.org/wiki/Curta

nanofortnight··on Station Crew Docks Dragon Capsule to ISS
The US is behind on this unfortunately.
nanofortnight··on The C++14 Standard: What You Need to Know
Inferrence isn't magic and has sensible limits.

To quote:

> Of course, this requires the function body to be visible.

https://isocpp.org/wiki/faq/cpp14-language#generalized-retur...

nanofortnight··on I’m tired. So I’m selling my game that just went viral
Suggestion:

Ignore it for a week, don't think about it.

I would hardly call that going viral, plus it's only been two days. You're too optimistic, thinking too big.

If this is anything average you'll find that most of the traffic will die off after a month.

nanofortnight··on Gravity Simulator
The simplest numerical approximation method is Euler's method. It also tends to be unstable.

Personally I prefer to just throw a fourth order Runge–Kutta (RK4) at things and normally that's more than good enough.

List of reading:

http://gafferongames.com/game-physics/integration-basics/

http://en.wikipedia.org/wiki/Euler_method

http://en.wikipedia.org/wiki/List_of_Runge%E2%80%93Kutta_met...

http://mathworld.wolfram.com/Runge-KuttaMethod.html

http://en.wikipedia.org/wiki/Linear_multistep_method

http://en.wikipedia.org/wiki/Bulirsch%E2%80%93Stoer_algorith...

nanofortnight··on How to choose?
Well, you are incorrect. The simple use of modulo does result in a bias. See for instance, modulo 7:

    0 % 7 = 0
    1 % 7 = 1
    2 % 7 = 2
    .
    .
    .
    56 % 7 = 0
    57 % 7 = 1
    58 % 7 = 2
    59 % 7 = 3
From this, you can clearly see that:

    0 appears nine times.
    1 appears nine times.
    2 appears nine times.
    3 appears nine times.
    4 appears *eight* times.
    5 appears *eight* times.
    6 appears *eight* times.
This is not fair, and is an actual problem in real life: Two examples off the top of my head is when drawing cards in electronic poker games (where slight biases in the PRNG can be exploited by those who notice them) and in cryptography.
nanofortnight··on Questions about Nasa's space drive answered
Not requiring energy is a mistake from Wired.

A superconducting version of the drive would be able to provide much higher Q, and thus much higher static thrust to power ratio.

It would also have much better performance at higher waveguide velocities.

http://www.emdrive.com/theorypaper9-4.pdf#page=9

nanofortnight··on Remy – Computer-generated TCP congestion algorithm
150+ isn't terribly much since each is basically an `if` statment. All 150 rules can be reduced to a single table lookup if necessary for performance. (Memory requirement for the table on the order of tens of kilobytes, though.)
nanofortnight··on Macroscopic quantum objects cannot exist if P ≠ NP?
> P=NP is a mathematical problem. It has nothing to do with Physics.

There are some who would disagree with you. It is quite arrogant to assert that computer science has little to do with physical reality when our constraints on computational capabilities are very much embedded in reality.

Take a look at this survey article, for instance: http://www.scottaaronson.com/papers/npcomplete.pdf

nanofortnight··on How to Make a Complete Map of Every Thought You Think (2003)
I once sent Kimbro an e-mail (in 2012) about whether he was continuing with this system, and he replied:

> No, I use a new system that I've been using for I think 3 years now. Much simpler and less time consuming. Google around for it- it is also described in book "Mind Performance Hacks 2". The key ideas are open spaces, numbered pages, and tags-like indexes.

nanofortnight··on Compiling with Continuations, Continued (2007) [pdf]
CPS is formally equivalent to SSA, is it not? What are advantages of using CPS over SSA?
nanofortnight··on No leap second will be added tonight
It is standard practice to post such notices six months in advance. That's what the IERS normally does at least.
nanofortnight··on Why Go Is Not Good
The only point of confusion I can see out of using [] is:

    type Foo[T] T
versus

    type Foo []int
for example.

    type Array[T] []T
nanofortnight··on Utau – a Japanese singing synthesizer application
The engine isn't as polished as Vocaloid's is.
nanofortnight··on Ask HN: Why isn't there a single universal syntax for all programming languages?
Javascript actually feels more like it's Scheme-inspired. The object system is clearly from Self though. And the syntax is from C.
nanofortnight··on The Several Million Dollar Bug
I think he meant "IDS" as in "Intrusion Detection System"
nanofortnight··on Change.org Petition: Tell media not to use 'Hacker' when they mean 'Cracker'
> Hackers from this subculture tend to emphatically differentiate themselves from what they pejoratively call "crackers".

This has been going on for tens of years. Hackers feel like the media has wrongly appropriated the word, but nothing has changed in the meantime.

http://en.wikipedia.org/wiki/Hacker_%28programmer_subculture...

nanofortnight··on Poll: Unban TempleOS?
He is supposedly schizophrenic.
nanofortnight··on Biases in grocery shopping
re: the last "wisdom of crowds" bit

Assuming a random sampling of customers, would you not get the same "highly accurate" result if you assigned 1 to those who bought the item and 0 to those who didn't and averaged the results?

---

Though I suppose one thing you could say about it is that the positive and negative bias just about cancel each other out.

nanofortnight··on Is Recycling Worth It?
Bug report:

Graph does not work in Firefox.

Fix:

Change lines 93-94 to

             td.insertBefore(div, null);
             this.parentNode.insertBefore(td, null);
Rationale:

`insertBefore` requires two parameters in the spec: http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core...

Chrome and IE do not follow spec: https://bugzilla.mozilla.org/show_bug.cgi?id=964212

nanofortnight··on D-Wave: Is $15m machine a glimpse of future computing?
Extrapolating a bit there?
nanofortnight··on Soylent 1.0 arrives at Ars: We mix it up and slurp it down
> You should NEVER supplement with iron (probably the same for copper)

One should also never take zero iron. While the high doses of iron that one gets when one takes supplementary iron as well as dietary iron are undesirable, in this case, this is the sole source of iron in the diet.

---

I do agree somewhat with the (very common, they've heard it all before) "missing substance" argument.

Personally I'm excited as to the results of this uncontrolled large scale experiment -- this is a unique opportunity with willing participants which has the opportunity to change our understanding of things the body needs.

I'll stick with my DIY whole foods variant, thank you very much.

nanofortnight··on Control-R, my favorite Unix shell command
Or ssh host shortnames! http://davidwinter.me/articles/2010/08/22/setting-up-ssh-hos...
← PreviousPage 4 of 6Next →