Better HN
topnewbestaskshowjobs
Log inSign up

killercup

940 karma · joined May 12, 2012 (14y ago) · 212 submissions

I'm @killercup on twitter.
Submissions

comment 10y ago · link · parent

I too wrote a PR a few days ago to not switch to visual mode when selecting text in insert mode (which breaks snippets and wrapping text in braces).

I'm pretty busy right now, though, and will probably not get to finish it in the next week. If anyone wants to pick it up, I'd be really happy: https://github.com/VSCodeVim/Vim/pull/544

comment 10y ago · link · parent

Some discussion about this on /r/rust: https://www.reddit.com/r/rust/comments/4vzomj/announcing_tok...

comment 10y ago · link · parent

There'a crate for that ;) https://github.com/pnkfelix/tango

comment 10y ago · link · parent

Interesting.

> Carp borrows its looks from Clojure but the runtime semantics are much closer to those of ML or Rust.

> – https://github.com/eriksvedang/Carp/blob/c762e9ff07544b40c8d...

comment 10y ago · link · parent

http://homu.io goes a bit further (it actually triggers CI builds of the merge results to check they are okay), but it seems it is currently unmaintained.

BTW, I would gladly pay money for this! Even more in combination with features from Facebook's mention-bot/Rust's highfive.

comment 10y ago · link · parent

This reminds me: About a year ago I wrote down [1] some ideas I had about a static site generator that defines its structures in JSON schema (or something alike). It then uses this type information to validate the correct usage in all templates and inputs, as well as to generate a UI for editing. I'm pretty sure this idea is still a few steps ahead of any product/OSS I've seen in this space. Sadly, I've only ever implemented a simple prototype.

So, if anyone wants to give that a go, I'd be happy to see this implemented!

[1]: https://pascalhertleif.de/artikel/silicon-zucchini/

comment 10y ago · link · parent

Iron, apparently: https://github.com/dirk/metrics_distributor/blob/d29c897d156...

comment 10y ago · link · parent

I can live with that! Be sure to make it LZ4!

comment 10y ago · link · parent

I think they'll only call this 'stable' once they enable it on new iPhones by default. Which might be 2017, 2018, …

comment 10y ago · link · parent

> Current Limitations […] Case Sensitivity: Filenames are currently case-sensitive only.

comment 10y ago · link · parent

> Flash / SSD Optimization

I.e., a "unique copy-on-write design"

> Space Sharing

Basically, ZFS datasets.

> Snapshots

If those can be sent: Finally Time Machine done right.

> The AFP protocol is deprecated and cannot be used to share APFS formatted volumes.

Interesting.

> An open source implementation is not available at this time. Apple plans to document and publish the APFS volume format when Apple File System is released in 2017.

Yay!

Limitations: https://developer.apple.com/library/prerelease/content/docum...

Edit:

> encryption models for each volume in a container: no encryption, single-key encryption, or multi-key encryption with per-file keys for file data and a separate key for sensitive metadata

Nice. I hope they also include checksums for each block.

Famously missing, but not the hardest thing to add considering all the features above: Compression (which HFS+ supports!)

comment 10y ago · link · parent

Am I the only one who was really disappointed when the were talking about 'getting back disk space' and by the meant 'move stuff to the cloud' and not 'LZ4 in HFS+'? (I've given up on ZFS on OS X by default.)

Edit: Oh, wow! Apple File System! (see https://news.ycombinator.com/item?id=11896785 for discussion)

comment 10y ago · link · parent

I love that they even introduced convenient ways of pronouncing the ASCII symbols Hoon uses. Last time I saw it, I created this gist: https://gist.github.com/killercup/be14570af13cbddb5dbc

(Haven't checked if anything changed since then.)

comment 10y ago · link · parent

It's good to see new web-focused projects in Rust, I think it can be a really great language for this kind of thing. But to be honest, I'm looking forward to seeing what will be considered the go-to approach for Rust web applications _in a year_ or so.

There is much experimentation going on right now, with cool little innovations here and there, but I have yet to see an approach that looks really new and Rust-y to me.

For example: Rust's type system certainly has some nice properties to track dependencies between middlewares[^1] but I'm not convinced middlewares are even the best approach possible here. Also, it will be interesting how a framework based on async IO will look and what tricks/syntactic sugar/macros will be employed to keep boilerplate code down.

This is a pretty big order, of course: While I enjoy using small libraries, a well designed web framework requires a lot of organisational effort for all the small pieces to fit together nicely. I think most of the 'small pieces' are already there or at least well under way, by the way. For example: The async (mio) branch of hyper looks pretty solid for HTTP1/2, the Diesel ORM is fantastic (and will, according to creator Sean Griffin, soon hit 1.0), and handling JSON will only get better with future versions of serde.

[^1]: As recently discussed in https://chrismorgan.info/blog/tween.html and some other posts concerning the use of sessions types in Rust.

105.

Unsafe Abstractions in Rust(smallcultfollowing.com ↗)

10 points · by killercup · 10y ago · discuss

comment 10y ago · link · parent

There was a very nice comparison between the type systems of Rust and Haskell a few days back on reddit: https://www.reddit.com/r/rust/comments/4jh8hv/question_about...

comment 10y ago · link · parent

So, rust is ready? There are multiple database drivers and there is at least one crate for connection pools (r2d2) that also works with diesel (query builder).

108.

Non-Lexical Lifetimes: Adding the Outlives Relation(smallcultfollowing.com ↗)

24 points · by killercup · 10y ago · discuss

comment 10y ago · link · parent

If you want something like this but a little bit shorter that easily fits on 3 printed pages: https://learnxinyminutes.com/docs/rust/

comment 10y ago · link · parent

Because it's a hobby and I don't have to compromise on this? :)

Also, I want to backup my system the same way I backup the rest -- with ZFS snapshots and send/receive. (Also, I really want to try using docker with ZFS on this machine.)

comment 10y ago · link · parent

After the announcement that Ubuntu 16.04 would _support_ (not just contain) ZFS, I was quite happy. I have a FreeNAS server at home and while FreeBSD is awesome for basically all server-y parts of the server, FreeNAS is still based on FreeBSD 9 and I would love to replace with a Linux-based system so I can also use at as a build server and run some Linux-speicific tools.

But getting Ubuntu _installed_ on a ZFS partition turned out to be much more painful than expected -- you can't easily do it by booting the server ISO from a USB drive. Maybe I'll have some more time soon and try this again.

comment 10y ago · link · parent

Just yesterday an overhaul of the style of the error messages landed (should be in the next nightly). It doesn't change the actual messages, but should make thinks like scopes clearer. You can find a few screenshots in the PR: https://github.com/rust-lang/rust/pull/32756#issuecomment-20...

comment 10y ago · link · parent

The introductory post [1] was also discussed here [2].

[1]: http://smallcultfollowing.com/babysteps/blog/2016/04/27/non-... [2]: https://news.ycombinator.com/item?id=11611436

114.

Non-Lexical Lifetimes Based on Liveness in Rust(smallcultfollowing.com ↗)

109 points · by killercup · 10y ago · 25 comments

comment 10y ago · link · parent

Yes, several of the optimizations of the dynamic regexes aren't available in the compile-time version. (It doesn't even have a DFA, IIRC.)

There is [a lint][1] which checks that your regular expressions are valid (at compile time), though.

[1]: https://github.com/Manishearth/rust-clippy/wiki#invalid_rege...

comment 10y ago · link · parent

This is beautiful: https://github.com/rust-lang-nursery/regex/blob/master/src/d...

117.

Go bindings to Rust's Regex engine(github.com ↗)

8 points · by killercup · 10y ago · discuss

comment 10y ago · link · parent

> The reason that this could be really cool is that you could hypothetically hash these MIRs and store these hashes in a public database of open-source code.

Sounds similar to what Joe Armstrong described at the end of "The Mess We're In" (StrangeLoop 2014): https://www.youtube.com/watch?v=lKXe3HUG2l4

comment 10y ago · link · parent

Thanks for the offer, shykes! I'm currently using Docker to emulate and test a server setup (multiple web servers talking to multiple databases) locally and I plan on using it to check cross-compiled linux binaries (using Rust and MUSL).

My Docker ID is 'killercup'.

12345
8