nathan7
Re:Static files in Go
on Tuesday August 09, 2016 @09:22PM (#12258872)
Awesome! The one thing that turns me off a little is `ModTime`. I generally avoid incorporating modification times into my build (generally I force them to 1970), but a hash for the ETag would be very welcome.
Re:Copy and paste-friendly Go crypto
on Saturday July 16, 2016 @06:59PM (#12108200)
https://golang.org/x/crypto/nacl for the Gophers among us (it provides only box/secret_box, though)
Re:Qpm: A package manager for Qt
on Monday April 11, 2016 @01:18AM (#11469773)
https://medium.com/@sdboyer/so-you-want-to-write-a-package-m... would be a good start
Re:Things you can do with ZFS [video]
on Thursday October 08, 2015 @07:52AM (#10352066)
I'm assuming you mean vdevs — you can resize zvols (virtual block devices) just fine.
(and you can even grow disk-type vdevs, though they'll be somewhat unbalanced)
Re:Our First Certificate Is Now Live
on Tuesday September 15, 2015 @02:00AM (#10219180)
SSLmate (https://sslmate.com/) actually makes things similarly simple — I've been using them for a few months now.
Re:How do we know if a crypto function is correctly implemented?
on Wednesday August 19, 2015 @08:15AM (#10084929)
You can't prove the hash function is correct, no.
But you can prove the hash function is implemented equivalently to its definition.
That's what the article is about.
Re:Announcing Rust 1.2
on Friday August 07, 2015 @07:33PM (#10025639)
MaidSafe (http://maidsafe.net) and Skylight (https://skylight.io) are both written in Rust, Maidsafe having recently moved to it from C++.
Re:Mitigations to the “Memory Sinkhole”
on Friday August 07, 2015 @04:20PM (#10024761)
It's worth noting that KVM doesn't allow remapping the APIC base address at all: https://github.com/torvalds/linux/blob/49d7c6559bf2ab4f1d56b...
Re:It Ought to Be Called Vice Cream
on Thursday July 23, 2015 @02:44PM (#9937689)
I haven't been back home (Amsterdam) for most of this year, but I find that surprising — I usually have trouble coming up with more than three ice cream parlours off the top of my head. Where's all this great ice cream I've been missing out on?
Re:What to know before debating type systems (2010)
on Thursday June 25, 2015 @06:45PM (#9781396)
This article wasn't written by Steve Klabnik — merely "reprinted".
> Recently, it was brought up on Proggit that Chris Smith's "What to Know Before Debating Type Systems" was no longer online. This is a really great article, and in an effort to make sure it survives, I've grabbed the archive.org cache and am 'reprinting' it here. If you're into programming languages, read this and level up!
Re:Popular JavaScript Package Manager Npm Raises $8M, Launches Private...
on Tuesday April 14, 2015 @03:51PM (#9376819)
By all means not an official statement, but Isaac is quite committed to making sure that the long-term safety of the npm registry doesn't rely on the future benevolence of npm Inc.
Re:Show HN: Exa, a replacement for ls written in Rust
on Sunday February 22, 2015 @01:50AM (#9088543)
I'd argue that they all derive from, and are quite similar to Portage's USE flags.
Re:Show HN: Gun v0.1.0 – The Easiest Database Ever
on Friday February 20, 2015 @04:40AM (#9079700)
Awesome to finally see Gun on here, Mark! What still worries me is the reliance on external storage services, although a good local storage service could be built for Gun. Other than that, I'm glad to finally see docs!
Re:DMCA Copyright Complaint to Google
on Tuesday January 06, 2015 @09:50PM (#8848598)
Re:Show HN: Initial release of H2O, and why HTTPD performance will mat...
on Thursday December 25, 2014 @08:10PM (#8797658)
I'm writing an HTTP reverse proxy in Rust, and my main gripe so far is that I have to roll my own async I/O. Binding node's HTTP parsers over is going well, but also takes a bunch of effort. Safe-by-design and close to the metal are proving very enjoyable to work with for this, however.
Re:The long tail of MD5
on Friday December 05, 2014 @04:34AM (#8703603)
These days, I find using MD5 absolutely inexcusable.
SHA-1 is available pretty much everywhere, SHA-2 algorithms are quite readily available too.
BLAKE2 (https://blake2.net) is slightly faster than MD5, and significantly more secure. It's based on the SHA-3 finalist BLAKE. Additionally, there are versions of the algorithm that parallelise using SIMD, and there are both 32-bit and 64-bit optimised versions too.
It also gives you the possibility of customising your hash, using it as an HMAC at no extra cost, salting it, or adding a personalisation key to effectively have different hash functions for different purposes.
As a nice extra, it also uses a third less RAM than SHA-2 or SHA-3.
If output length is a concern, truncating the output (with a corresponding increase in the likeliness of collisions) is perfectly fine with any good hash function.
Re:Object Oriented Programming is Inherently Harmful
on Sunday November 30, 2014 @11:48AM (#8677216)
I think you'd be quite happy in Rust, if you substitute trait methods for multimethods too.
Re:Functional Programming Patterns
on Sunday November 30, 2014 @10:36AM (#8677013)
Most of these slides are about patterns that are provided for as functions by the language, or are otherwise obsoleted by the more powerful abstraction features of FP languages.
The writers of this presentation are very much aware of the smell that is patterns.
Re:Ezra Zygmuntowicz has died
on Sunday November 30, 2014 @09:54AM (#8676924)
I'll miss Ezra and his outgoing spirit. Goodbye, old friend.
Re:Zeroing buffers is insufficient
on Saturday September 06, 2014 @05:55PM (#8279609)
I'm guessing that mitigating this at the Rust level isn't doable, because its memory model has the same properties with regards to zeroing. To change that, LLVM support would be needed.
This does make me wonder — how do you integrate this into a type system?
Rust has already done a pretty awesome job at integrating memory-safety into the type system, but memory-secure type systems seem fairly unexplored.
Re:Zeroing buffers is insufficient
on Saturday September 06, 2014 @05:45PM (#8279587)
The key can be generated on the smartcard, and it's not possible to transfer it out of the smartcard by design.
(anything that calls itself a smartcard but allows this isn't a smartcard)
Re:Zeroing buffers is insufficient
on Saturday September 06, 2014 @04:11PM (#8279333)
What you're describing is called a smartcard, and readily available on the market. I keep my PGP key on one.
Re:Actors, Green Threads and CSP on the JVM
on Wednesday September 03, 2014 @11:08AM (#8263343)
I'd say that many of the issues surrounding accidentally using mutable state are fairly moot in Clojure.
Blocking still remains an issue, though there's core.async/thread for go blocks that block so that they're executed on a thread of their own.
Re:Bitcoin: the Stripe perspective
on Tuesday July 22, 2014 @10:56PM (#8072694)
The flawed assumption is "and therefore 21 million Bitcoin addresses". Generate an RSA keypair, and give out the hash of the public key (encoded in a Bitcoin-specific way). Anyone can send you Bitcoins there now.
Re:Bitcoin: the Stripe perspective
on Tuesday July 22, 2014 @09:11PM (#8072427)
Hawala has fascinated me to no end, as essentially an anarchistic peer-to-peer web-of-trust banking system. It has existed for a long time, and keeps functioning even where traditional banking systems have broken down. As cool as Bitcoin is, I have more hope for a system akin to Hawala than some proof-of-work based system. Guerilla banking that depends on having more (computational) power than your enemies isn't too realistic. PGP'd remittances are much more cryptographically robust, and depend just on the one factor that any real monetary system relies on anyway: human trust.
Re:Race Conditions == Random Number Generation
on Friday June 27, 2014 @12:44AM (#7952763)
The visualisation means next to nothing for proving it's good. But the visualisation seems to show patterns, which says plenty.
Re:Ask HN: Reasons behind renaissance of functional programming languages
on Monday April 28, 2014 @08:15AM (#7659402)
Accepted, but they seem to be on either side of a dividing line — I'm doing my best to straddle it, but I'm still held back by a wall of language that is too often entirely impenetrable to me.
I'm a very functionally-minded programmer, and I'm rapidly adapting to Clojure now (coming from rather functional JS, and having spent a rainy week on Haskell, which taught me basic type theory and such) — but I still often hit the wall of impenetrably abstract things too :(
Re:Ask HN: Reasons behind renaissance of functional programming languages
on Monday April 28, 2014 @06:44AM (#7659133)
The best guess I've come up with is that anyone who is sufficiently mathematically inclined becomes a mathematician.
I'm curious if anyone has any points/counterpoints in that direction.
Re:Help Scale NPM
on Tuesday November 26, 2013 @04:20PM (#6804296)
There's no node involved in the registry itself. This is purely CouchDB.
Re:Help Scale NPM
on Tuesday November 26, 2013 @01:15PM (#6803031)
npm is pretty much the prime use-case for CouchDB.
REST API out of the box, replication is a core feature and not just a scaling feature (multi-master, MVCC) and the validation/access control is pretty much made for it.
The npm registry is implemented as a CouchApp for a reason.