News for hackers. Stuff that matters.

notzorbo2

Re:Node.js running in the new Airbus A350 inflight servers on Saturday November 28, 2015 @08:13AM (#10640972)
You keep quoting this article, but ..

The sources are dubious (wired and telegraph). Experts quoted in the article claim its impossible, including the lead engineer of the boeing thrust management system:

> Whether it’s possible to create this condition by issuing a command from a passenger seat is a different matter, however. Soucie and others who WIRED spoke to agree with Boeing that this isn’t possible. But unlike Boeing, they provided clearer details explaining why. > >Peter Lemme, who was a lead engineer on Boeing’s thrust-management system for eight years until 1989, says the system provides the auto-throttle function that actually controls the engine thrust, and doesn’t allow the throttles for the engines to operate independently of one another.

You claim it's been "proven not to be the case". Extraordinary claims require extraordinary evidence. So far I've seen nothing from this Roberts guy. Sounds like he's just full of shit.

Re:Math.random in V8 is broken on Saturday November 21, 2015 @03:23AM (#10606167)
You seem to be getting a lot of flack from people with 20-20 hindsight. For what it's worth, I have made the exact same assumptions you have when generating internal unique IDs in a distributed system purely for tracking purposes. The only difference was that mine was in Python and I got lucky that its random implementation uses a mersenne twister.
Re:Python's Hidden Regular Expression Gems on Friday November 20, 2015 @09:43AM (#10601344)
This happens pretty often in the Python world. There's a bit of an unwritten rule to leave implementation details public that would be private in other languages. Many libraries simply don't bother with prefixing privates with '_' and just leave things undocumented that you probably shouldn't touch/use.

One notable example is importing libraries in your code automatically exposes them to the caller.

    $ cat lib.py
    import re
    
    def somefunc():
        pass

    $ python
    >>> import lib
    >>> lib.re
    <module 're' from '/usr/lib/python2.7/re.pyc'>
Many packages also do `import *` from files which polutes the package namespace with all kinds of stuff you really don't want in there. For example, the popular Requests package:

    >>> import requests
    >>> requests.logging
    <module 'logging' from '/usr/lib/python2.7/logging/__init__.pyc'>
The logging module is not a public part of requests' API. It's just there because requests uses it internally.

So to answer your question, I'd say it's just common practice. If it's undocumented in Python, you should pretend it doesn't exist.

Re:Show HN: Caret – Better Markdown Editor for the Desktop on Wednesday November 18, 2015 @10:26AM (#10588175)
> Any Markdown editor worth its salt should have a permanent live preview

Perhaps devd¹ with livereload is a good option here?

¹) http://corte.si/posts/devd/intro/

Re:Kilroy Is Still Here on Friday November 13, 2015 @03:26AM (#10558627)

  You’re the one who
  must decide who’s
  to live and who’s to die.
  You’re the one who gives his
  body as a weapon of the
  war—and without you all
  this killing can’t go on.
That's from the Donovan song "Universal Soldier" (original by Buffy Sainte-Marie). Looks like some historian published it as a “mystery poem” in the Smithsonian magazine[1], not realizing it was just quoting song lyrics.

¹ http://buffysainte-marie.com/?p=809