Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 9y ago · link · parent

Have you tried doing string manipulation in C? ;)

comment 9y ago · link · parent

> a new library that does the same things

Most languages already have HTTP client libraries. (In particular, Rust has Hyper. Ruby/Python/Node/Go have HTTP clients built-in in the stdlib, Haskell has http-client, etc.) Who uses libcurl really? (Spoiler alert… PHP.)

Of course libcurl does FTP and Gopher and all the things, but these aren't commonly required, most applications just need HTTPS.

comment 9y ago · link · parent

Incidentally, https://hackage.haskell.org/package/tardis-0.4.1.0/docs/Cont...

comment 9y ago · link · parent

I just want it to show up in the OS as MTD so e.g. I could use it with JFFS2 like OpenWrt does on routers. But on a desktop PC.

comment 9y ago · link · parent

This is really cool:

> Securely erasing saved keys is just as important as generating them. It’s especially challenging to do so on flash storage, where wear-leveling might mean multiple copies of data need to be erased. To address this issue, iOS devices include a feature dedicated to secure data erasure called Effaceable Storage. This feature accesses the underlying storage technology (for example, NAND) to directly address and erase a small number of blocks at a very low level.

I guess that means separate storage, as the main storage in recent iPhones is an NVMe SSD and not raw NAND attached to the processor.

BTW, is there a good / easy way to connect raw NAND to a normal desktop PC?

comment 9y ago · link · parent

(neo)vim, emacs and IDEA certainly do. Sublime is not natively ported, only under the linux compat layer.

comment 9y ago · link · parent

What's the indexing story? Do it yourself? "Any JSON store implementation will contain a half-specified bug-ridden implementation of half of Postgres's GIN/GiST for jsonb"? :D

comment 9y ago · link · parent

RAM and VRAM these days are huge, and SATA is definitely fast enough to stream assets from. Heck, I load most of my games from an old 2.5" spinning HDD that I pulled from a dead laptop.

I think more improvement is needed on the VRAM side than on the disk side, so HBM2 hype > Optane hype :)

comment 9y ago · link · parent

Meanwhile, the Raspberry Pi is using a garbage microSD controller that corrupts cards… the divide between cheap and high end stuff is just mindblowing these days.

Also, normal (NAND) NVMe M.2 SSDs are still TWICE as expensive as good old SATA ones, at least in my country… And they want to push Optane into the consumer space later this year… who even needs that much performance at home?

comment 9y ago · link · parent

Well that's not syntax…

comment 9y ago · link · parent

Yeah, it's just that Linux doesn't even define SIGINFO

comment 9y ago · link · parent

Exactly. I accidentally wrote "attributes" instead of "properties" :D

comment 9y ago · link · parent

Of course jails are the underlying mechanism of that Docker port on FreeBSD that someone did once… But I'm not sure they're using that. Linuxulator is not perfect, and they announced "Docker support" not "imperfect Docker support" :D I bet they're using something like boot2docker in a bhyve VM.

comment 9y ago · link · parent

Yep, the criticisms are just bad. "Attributes are strings", seriously? Uh, DOM elements in the browser have these things called JavaScript attributes…

> Shadow DOM makes it hard to theme your app.

Polymer uses CSS custom properties for this and it's not even hard, it's pretty cool, it's like you're making a CSS API for theming <your-element>.

comment 9y ago · link · parent

They're not even "its polyfills", the polyfills are a completely standalone project that Polymer depends on.

comment 9y ago · link · parent

Yeah, of course you can do these things. I really meant to say, "there now exists server-side state for this" — I'm bothered by how existence of that state defeats the statelessness benefits of signature-based schemes, not the fact that I have to query a remote database.

Oh, and also: "only store a blacklist" does not work if you want to provide the "revoke this app you gave access to a while ago and now it's spamming" functionality like in most social networks.

comment 9y ago · link · parent

For node: https://github.com/kimmobrunfeldt/chokidar-cli

comment 9y ago · link · parent

"Just use cookies over HTTPS [instead of JWT]" is weird advice. I mean, JWT goes… inside… things like cookies. (or the Authorization header in APIs, of course)

comment 9y ago · link · parent

Yeah, and that's kinda sad because now you have to check a signature AND query a database!

comment 9y ago · link · parent

Most of Billionaire Wealth is Unearned. In Other News, Water Is Wet.

comment 9y ago · link · parent

ZFS is self-healing. It can automatically restore from mirror/RAID drives. And if you only have one drive, you can set a parity option so that information will be written several times, like a mirror but on one disk. (Obviously doesn't protect against a whole drive failure :D)

comment 9y ago · link · parent

> working like a appliance and needs not much tweaking

Uh, excuse me? They literally rewrote the whole sendfile system call to make it faster (and to make it possible to add in-kernel TLS for, well, sending files over TLS). I'm sure they would welcome, say, driver improvements for the Intel 10/40Gb Ethernet cards.

comment 9y ago · link · parent

Maybe the cost is not completely prohibitively expensive but they do consider it a premium feature. Have to earn money :D

comment 9y ago · link · parent

It does not magically split one connections into many. One domain == one connection. Sure it won't undo your "domain sharding" hacks and merge your CDNs, yeah :)

comment 9y ago · link · parent

HotSpot JVM uses compressed pointers by default on 64-bit anyway…

comment 9y ago · link · parent

"the numbers we deal with fit in 32 bit"

Except when they don't. Everyone already forgot tweet number 2147483648? :) https://techcrunch.com/2009/06/12/all-hell-may-break-loose-o...

comment 9y ago · link · parent

Don't reinvent collectd :)

comment 9y ago · link · parent

Yeah — the image buffers (screen resolutions) are bigger, we run more apps, more advanced desktop environments… also in the old days (before OS X, Compiz (fun with desktop cubes!) and Vista Aero) people used to run without compositing, which meant one common image for all apps to draw into.

Just booted my laptop (FreeBSD -current amd64, 1366x768 display) and started X: only 204M "Active" memory. Of the 204M: 60M is syncthing, 39M compton, 31M Xorg, 11M i3bar, 11M polkitd, 10M i3, 9M dunst, 5M wpa-supplicant… Not counting syncthing that's 144 megabytes. I think that looks reasonable. You can go lower and optimize for low memory (no polkit, no compton — 94M) or go higher and optimize for usability and fancy UI features (install gnome :D)

comment 9y ago · link · parent

Pretty much anything that compiles to good native code can be 100 times faster than "frameworks written in PHP, Ruby and Python". At least if we're talking MRI/CRuby and CPython, and especially without running multiple workers in those languages.

comment 9y ago · link · parent

Wow, the design is so "inspired" by GitHub… the language percentage thing especially
1
828384
97