HNHacker News
TopNewBestAskShowJobs

nanofortnight

454 karma · joined March 3, 2013

submissionscomments
nanofortnight··on How We Beat C++ STL Binary Search
I think the fact this violates the standard would be the greatest difficulty.
nanofortnight··on Tesla burns cash, loses more than $4,000 for every car sold
Keyword is loan. The loan in question was repaid this year.
nanofortnight··on One Way to Fight California's Drought: Desalt the Ocean
There are [multiple desalination methods](https://en.wikipedia.org/wiki/Desalination). My favourite is [reverse osmosis](https://en.wikipedia.org/wiki/Reverse_osmosis), though it does cost about $1.2 per cubic meter of water.

To answer your question, ion exchangers do what you ask, using sulfuric acid and sodium hydroxide, and produce a ton of sodium sulfate in the resulting desalinated water.

nanofortnight··on Vim's 400 line function to wait for keyboard input
This is not a bug in vim. This is because Esc was historically used as a Meta key in lieu of the modern use of Alt.

For example, if you use tmux, add the following to .tmux.conf:

    set -s escape-time 0
Other terminal multiplexors and emulators have different commands for this.

Edit: There are a few other possible issues you are having: http://www.johnhawthorn.com/2012/09/vi-escape-delays/

nanofortnight··on Starting Forth
I can imagine implementing a direct threaded Forth, but instead of code addresses being memory locations, code addresses are a virtual address; DOCOL and NEXT swap in the appropriate segment of code into memory where necessary.

This could possibly be optimised in a subroutine threaded Forth so code within each "page" wouldn't have to verify loaded segments.

Implementing a dictionary insertion/optimization routine that packs related routines together to minimise swapping would be an interesting problem, and would probably most easily not be done live but ahead-of-time instead.

In short: Yes, Forth can support the paging you desire if implemented that way.

nanofortnight··on SpaceX – Launch Vehicle Failure
Yes it was close to meco.
nanofortnight··on Ask HN: What's the best programming language to learn for security?
You very much have to be flexible. Most valuable would be C and assembly knowledge (and knowledge of the low level details of both is pretty much required).

As for tool writing, any high level language (perferably what your employer uses). For example, if MetaSploit is used knowledge of Perl/Ruby would be required.

Picking up multiple imperative languages is easy, though. Fortunately most languages in the field are imperative.

Depending on the software in question, knowledge of how virtual machines operate can also be useful.

nanofortnight··on Researchers Find Missing Link Between the Brain and Immune System
> If there really does exist a direct linkage between the brain and the immune system

The interaction of the CNS and the immune system has been more recently studied over the past 10 years. This field is known as neuroimmunology. The most recent and obvious clinical application of neuroimmunology are vagal nerve implants, where stimulation of the vagus nerve can help improve vagal tone and reduce inflammation. Meditation is another well known method of improving vagal tone; however, we live in a society of quick fixes.

nanofortnight··on Researchers Find Missing Link Between the Brain and Immune System
Indeed! Though mouse anatomy doesn't entirely transfer over to human anatomy. I interpreted your comment to refer to experimentation in humans, I apologise if I misunderstood.

You seem to be surprised that our current knowledge of basic human anatomy is not yet exhaustive. Two recent notable discoveries are:

* Anterolateral ligament (Ligament of the knee, discovered 2013 after macroscopic examination of cadavers)

* Dua's layer (Newly discovered layer of the cornea, discovered in 2013 using electron microscopy)

You may also be surprised about the amount of variation in anatomy found between people. Some structures (commonly muscles) do not exist in some people, or may exist on only one side of the body. Similarly vessels and nerves can sometimes also take alternative or strange courses. This has clinical implications, especially wrt surgery.

nanofortnight··on Researchers Find Missing Link Between the Brain and Immune System
Lymphatic tracing is generally more often done with dyes in the case of removal of sentinal nodes due to e.g. cancers.

However, there been work in injecting radioimmunoagent tracers into lymphatics especially in the case of melanomas. The likely reason why these haven't before detected these meningeal lymphatic vessels is likely because: (1) We don't bother imaging the brain because "the brain doesn't have lymphatics" and (2) tracers generally flow with the direction of fluid and the direction of lympth from the CNS is likely efferent rather than afferent.

Furthermore it is difficult these days to do such experiments especially on live subjects "just because".

Hindsight is 20/20.

nanofortnight··on New C++ experimental feature: The tadpole operators
Sometimes I can't tell if people are being serious about their objections to this or if they are willingly oblivious.
nanofortnight··on Show HN: This page exists only if someone is looking at it
For time travellers:

https://github.com/losvedir/ephemeral2/wiki/This-page-exists...

nanofortnight··on Show HN: This page exists only if someone is looking at it
Yes, git does use hashes, but git similarly doesn't work in that manner for the same reason. Git commits can only point to commits in the past and not future commits. It is not possible to update old commits like you suggest.

The HEAD of a repository is like a pointer to the hash of a commit. You may think of HEAD like a repointable alias. `cat .git/refs/heads/master` in any of your git repositories to see what I mean.

nanofortnight··on Show HN: This page exists only if someone is looking at it
ID is a hash of the content so that's not possible unless you find a hash collision (highly unlikely with sha256).
nanofortnight··on Apple Could Make Money by Bailing Out Greece
Inflation is meant to serve that goal.
nanofortnight··on SpaceX Plans to Land Next Falcon 9 on Solid Ground
The SuperDraco offers deep throttling down to 20% so it's feasible with SpaceX's current technology (though I'm not quite so sure about throttling the Dracos currently on the F9), though I'm not sure about payload sizes.
nanofortnight··on Squirrel – A high-level, light-weight scripting language
It's primary purpose is to be embeded, so it has a similar interop interface to other embeddable languages: http://squirrel-lang.org/doc/squirrel3.html#d0e4060
nanofortnight··on Squirrel – A high-level, light-weight scripting language
It's primary advantage over Lua is definitely it's better realtime guarantees.
nanofortnight··on Squirrel – A high-level, light-weight scripting language
It's been around since <2003, so it's hardly new. It's primary purpose was a high performance scripting language for game engines.

That being said I agree with you wrt new semantics and I would love to see a practical programming language that has dependent types.

nanofortnight··on Probabilistic programming does in 50 lines of code what used to take thousands
Generally it's anything that you can express using a probabilistic graphical model. It's mainly useful in engineering (real engineering), control systems, robotics, inference, machine learning and artifical intelligence circles.
nanofortnight··on Probabilistic programming does in 50 lines of code what used to take thousands
If you want to know about the history of similar language paradigms, look at logic programming. Similar to probabilistic programming, it is declarative, utilises an engine at run time, the user builds a model of the word then queries it, and it uses fewer lines of code to express for problems within a limited domain.

Hardly "distruptive". You should really think of them as DSLs that people actually use.

If you're intrested in such things, perhaps you should take a look at PRISM, which embeds a probabilistic framework within B-Prolog. http://rjida.meijo-u.ac.jp/prism/

nanofortnight··on How to close a running process's socket
That requires traffic on the socket to exist.
nanofortnight··on I Will File Bugs for You (2014)
The phrase "copious free time" is itself sarcastic, but it usually just implies "please be patient" rather than "I won't do it".
nanofortnight··on Why did plague.io change to plag**
I quote:

> Some time ago we received a polite request from the creators of another app to stop using the word "plague" in our name because we were both using it. We prefer to spend our time and money on perfecting user experience and developing new features instead of legal disputes. From now on, we are Plag.

nanofortnight··on The Recreated Sinclair ZX Spectrum
What is it? Is it a fancy keyboard? Does it have a 6502 except with additional fanciness for I/O?
nanofortnight··on Aaron Swartz's Thoughts on djb (2009)
I found his postmortem of qmail interesting reading: http://cr.yp.to/qmail/qmailsec-20071101.pdf
nanofortnight··on A Story About ‘Magic' (1994)
One of my favourite stories growing up.
nanofortnight··on Ask HN: Remove and reinsert the SSD in Thinkpad T500, continues to run
Your SATA controller must be AHCI compatible for this to work (i.e.: your SATA controller tells the OS whenever a drive is connected or disconnected).

Look up SATA hotswapping.

nanofortnight··on Kernel panic in latest OS X in 10 lines of C
This is probably silly of me, but if you had an understanding of the mach subsystem this is pretty straightforward to understand, no comments necessary.
nanofortnight··on The Country of Vietnam Resolves to Localhost
Not poster, but: http://www.ahbl.org/content/ahbl-policy-blocking-hosts-rdns-...
← PreviousPage 3 of 6Next →