HNHacker News
TopNewBestAskShowJobs

dikaiosune

4,199 karma · joined December 10, 2014

http://blog.adamperry.me
submissionscomments
dikaiosune··on Joseph Campbell’s daily routine for “the most important period of my study”
I think you could approximate this for movies using a social graph - I had a hobby project when I got back into programming a few years ago which attempted to generate recommendations based on the director's and actors' "creator" social graphs. It worked surprisingly well for such a hack.
dikaiosune··on Node.js 8 Moves into Long-Term Support, Node.js 9 Becomes Current Release Line
I've recommended yarn for projects of mine that were broken by npm5, but it has some of its own issues. It's also not bundled by default which is really important for JavaScript tools that are used by beginners.
dikaiosune··on Node.js 8 Moves into Long-Term Support, Node.js 9 Becomes Current Release Line
There are a bunch of linked issues at https://github.com/nodejs/node/issues/13815 and https://github.com/npm/npm/issues/16991, such as https://github.com/facebookincubator/create-react-app/issues....
dikaiosune··on Node.js 8 Moves into Long-Term Support, Node.js 9 Becomes Current Release Line
I'm definitely curious to see if the update to npm 5.5.1 resolves most of the issues people have seen on the 5.x releases. Otherwise having an LTS release with a rough release of npm might be pretty painful for a lot of the ecosystem.
dikaiosune··on What is Nix and why you should try it
I’d just like to interject for a moment. What you’re refering to as Guix, is in fact, Nix/Guile, or as I’ve recently taken to calling it, Nix plus Guile.
dikaiosune··on Why many developers still prefer Objective-C to Swift
From one perspective, this just means that the market for software quality is not very tight and that our industry is not empirical in assessing it.
dikaiosune··on Chrome OS KVM - A component written in Rust
Cool! Accomplishes many of the same goals that doing it in Rust would, arguably. I would be curious to hear about what sort of latency-management techniques they've used to build an FS in a GC'd environment.
dikaiosune··on Chrome OS KVM - A component written in Rust
Oh no worries, I might have come off a bit defensive there.

I think one of the clearest examples would be drivers -- they might be properly sandboxed by a good microkernel, but they are notoriously buggy/crashy/incorrect. If I remember correctly one of the Fuchsia team members told me that they were going to support drivers written in Rust, but I could be completely wrong.

Filesystems, the network stack, whatever horrifying systemd equivalent Fuchsia grows, etc. are all examples of things I would advocate for writing in Rust before focusing on the kernel. All of these things are still security/reliability sensitive, all still terrible by Rustacean safety standards in most OSes, and conveniently don't have to be built directly as part of the kernel when you're doing a microkernel.

Just spitballing, of course.

dikaiosune··on Chrome OS KVM - A component written in Rust
I don't think this is quite the template reply (and if you check my HN comment history, I think you might see that I'm quite familiar with receiving the template replies!), what I meant to say is that it'd be much higher leverage to rewrite other parts of Fuchsia in Rust than to rewrite Zircon.
dikaiosune··on Chrome OS KVM - A component written in Rust
I'm normally quite happy to advocate for Rust everywhere, but one of the benefits of the microkernel architecture is that you have a very small trusted computing base for your system. Yes, Rust could help, but there are lots of techniques for building highly reliable C/C++ codebases, and one of the main reasons they don't get used more in large codebases is that they don't scale super well. But, in a microkernel it's much easier to apply those methods. See for example the sel4 microkernel, which is small enough to have a well-verified model for a bunch of different hardware.

Uh, this is rambling a bit. My point is that building zircon as a microkernel makes it much easier to write correct code, Rust or not. And that maybe the overhead of a rewrite wouldn't be as beneficial for the microkernel as it would be for other parts of the operating system.

dikaiosune··on What should follow the web?
(I work on Expo)

We just use this protocol/schema to make sure that development URL links are tappable on your phone. Checking a URL domain works for lots of deep links, but not when you have IP addresses or dynamically generated ngrok URLs (like when loading an app from XDE).

You might ask, why do this when you can just scan or screenshot the QR code? Fun bit of tech debt: the current QR-scanning system was added to support the offline-only create-react-native-app setup, and the "send a link by SMS" flow predates that. If you've received an SMS with your development URL, it's pretty useful to have it tappable.

Related, this detail of the XDE <-> client app connection isn't really what people use for production, it's just for development and sharing with coworkers in most cases. To ship a "production" Expo app, users typically build an IPA or APK for uploading to the App Store and/or Play Store, where this URL is hidden from them.

dikaiosune··on Bringing the web up to speed with WebAssembly
This is of course assuming that the WASM GC proposal doesn't require a specific object model to get host GC interop.
dikaiosune··on Introducing Atom-IDE
Is this a nicely packaged version of nuclide?
dikaiosune··on A startup founder and ex-Facebook engineer’s story of the BSD + Patents license
The react devtools extensions for Chrome usually shows me when a page is using react.
dikaiosune··on OxiPNG: PNG optimizer written in Rust
With significantly smaller file sizes, it could be more challenging to see timing differences. Also, this image is one that someone used the last time OxiPNG was discussed, which seemed relevant to me.
dikaiosune··on OxiPNG: PNG optimizer written in Rust
It would probably be more useful, yes. But that would require remembering what my ls alias without `-h` is, and also would maybe give more confidence in the results of the quick 'n' dirty analysis than is justified.
dikaiosune··on OxiPNG: PNG optimizer written in Rust
There are CLI options for supporting zopfli, not sure whether it's from zopflipng.
dikaiosune··on OxiPNG: PNG optimizer written in Rust
For the curious, I replicated some benchmarks from ~1yr ago (https://www.reddit.com/r/rust/comments/48vkjy/oxipng_a_multi...).

Note in that thread that the author implies that the optimization levels between the two tools are not necessarily equivalent or stable.

    $ optipng --version
    OptiPNG version 0.7.6
    $ oxipng --version
    oxipng 0.16.3
Ran on a 2016 MBP, i7.

Time:

    opt-level    oxipng    optipng
    2            148.63s   30.80s
    3            9.56s     45.99s
    4            23.82s    90.57s
Size of resulting image:

    opt-level
      original      12M

                 oxipng    optipng
      2          12M       12M
      3          12M       "already optimized"
      4          12M       "already optimized"

TBH I don't really know how to interpret these results. But with the strange exception of `oxipng -o 2`, it does seem like the naive parallelism offers some real performance wins. Disclaimer: this is an incredibly amateur attempt to benchmark, I really don't have enough knowledge to produce something authoritative.
dikaiosune··on Some Were Meant for C: The Endurance of an Unmanageable Language [pdf]
If you click directly on the time of a comment, it's a link to a direct reply page.
dikaiosune··on How I failed to replicate an $86M project in 1 line of code
It seems to me that govt agencies could still pay contractors to build these things, just with the requirement to make them openly available as part of the contract.

If others step in to offer support contracts as well, great! Competitive environments for that would probably be good.

dikaiosune··on Rapid release at massive scale
> Its not hard to measure actual useful things like features or bug.

Presumably your consulting business has really taken off now that you have such unique insight into a historically unempirical area of our field?

dikaiosune··on Hardening the Kernel in Android Oreo
Glad to see improvements are coming! Articles like this make me more and more curious whether Fuchsia is an alternative bid to resolve relevant kernel vulnerabilities in a more centralized, architecturally driven fashion, not just a way to get out from under the GPL.
dikaiosune··on Show HN: Pest – Fast parser generator written in Rust
There's actually a parser for rust called syn, and it's very useful for procedural macros, as the current API exposes a stream of tokens, not a full AST.
dikaiosune··on Breaking into 1Password, KeePass, LastPass and Dashlane
From this article, it sounds like they have a very specialized GPU-accelerated brute force mechanism for local database backups?

Assuming they have something like rainbow tables for short passwords on all of these managers, it still seems like it would take a very long time to correctly guess longer master passwords (say 20+ characters). No?

dikaiosune··on Announcing the `http` crate
This particular announcement is about defining shared API types between libraries for which (I think) the things you've listed would be a concern. It's not a full HTTP implementation AFICT.
dikaiosune··on Technical recruiting platform Triplebyte opens for business in New York
FWIW this is not the impression I've gotten from them. Of course, I'm not entirely sure what you mean, but I'm very bullish on their model and the people that I've met there are wonderful.
dikaiosune··on Technical recruiting platform Triplebyte opens for business in New York
I found a job through them - they were very valuable. Putting me in touch with companies I hadn't heard of, wrangling interview schedules, etc. All great. Prior to working with them, it was challenging to even get phone screens scheduled.

I've interviewed candidates from them - they're also really great for this.

dikaiosune··on Why you should, actually, rewrite some of it in Rust
uhhhhhh, multiple links in this block on the post:

"That’s because I have been working on this subject for a long time now:

* I did multiple talks on it * I even co-wrote a paper * I did it both as client and personal work"

dikaiosune··on Why you should, actually, rewrite some of it in Rust
Most distributions require that packages in the repositories are built with tools from the distribution.
dikaiosune··on How to build a JavaScript package manager
First impression: fantastic section titles.
← PreviousPage 2 of 22Next →