Better HN
topnewbestaskshowjobs
Log inSign up

killercup

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

I'm @killercup on twitter.
Submissions

comment 11y ago · link · parent

I'm constantly amazed by people who consider the ability to use Grunt, Gulp, Webpack, Browserify, etc. a "skill". I'm sorry, but to me, that's like being proud of having learnt to use that new washing machine.

More on topic:

> With Webpack you can declare a simple config file to define your build process.

Your Webpack config file is actually a Node module that happens to export a valid configuration object. It even allows your config to depend on a preprocessor (like Babel or CoffeeScript, see [1]).

By the way, if you want to have a "dev" and "production" config which are both based on a "common" config, have a look at [2] (it's nothing fancy, just deep object merge that concats arrays, basically).

[1]: https://www.npmjs.com/package/interpret [2]: https://www.npmjs.com/package/webpack-merge

comment 11y ago · link · parent

Have a look at http://media.ccc.de/browse/congress/2011/

comment 11y ago · link · parent

tl;dr They take the original JXcore binary and append your compressed source code (as base64 in a JSON structure).

I had at least hoped that (a) they didn't need the base64 overhead and (b) used uglify to minify/obfuscate the code.

tl;dr^2 It's nice for deploying JS apps, the 'Protected JavaScript Source' claim is bullshit.

comment 11y ago · link · parent

Can you do part time? I've been doing half a week of work and half a week of studying at university for the last 5 years. It's hard to manage sometimes, but it was totally worth it. Since I've also been upfront with everyone, they all knew that I just couldn't make some meetings or lectures and were okay with it.

comment 11y ago · link · parent

Now if only Semantic Versioning had a Changelog…

comment 11y ago · link · parent

Sure, that's what I made this version for! <del>You might want to wait a bit, though. I'm just about to publish a new revision.</del> Update is here.

(The book is, just like the Rust compiler, licensed as MIT/Apache2 if you were wondering.)

comment 11y ago · link · parent

I only tested it in iBooks and Calibre. On Kindle, it works as well.

There are some code snippets that are not highlighted, though. It'll be fixed in the next version.

comment 11y ago · link · parent

Unofficial (but mostly up-to-date) ebook versions (PDF, EPUB, MOBI, HTML): http://killercup.github.io/trpl-ebook/

comment 11y ago · link · parent

> (1 byte smaller than in Rust)

Nice achievement! The article is quite the journey through various build parameters, switching gcc for clang and glibc for musl along the way. In the end, the secret sauce is syscalls and custom linking, though (as always with this kind of thing).

comment 11y ago · link · parent

tl;dr "[...] Windows 10 leverages an efficient compression algorithm to compress system files. [...] removed the requirement for a separate recovery image."

comment 11y ago · link · parent

> if the reader is familiar with other C-like languages

I like to think that Rust wants you to be familiar with C and ML syntax and philosophies before getting comfortable :)

The array type syntax you quoted is a bit like Haskell's `[Char]` syntax with a fixed-length property bolted on. You are right, though, that semicolon looks a bit weird. I guess using commas was not an option because the same syntax on the right hand side of the `=` means `[0, 0]`, i.e. two elements which are 0.

comment 11y ago · link · parent

This looks pretty cool. It's nice to see there are working GTK3 bindings for Rust.

It'll be interesting to see how many IDE features will be implemented. Currently it seems like a distribution of NeoVim + directory tree + Racer (Rust Autocompletion).

comment 11y ago · link · parent

A new feature in 3.0 is that lodash now supports lazy evaluation using the chaining API from 2.x.

comment 11y ago · link · parent

While others mentioned http://crates.io/ you might also be interested in http://rust-ci.org/ (has categories, includes build status and quite often hosted documentation).

comment 11y ago · link · parent

There is a part 2: http://www.frankmcsherry.org/columnarization/serialization/r...

comment 11y ago · link · parent

Why are Flashlight plugins written in Python? (I'm asking out of curiosity; I like it.)

JS and Ruby are bundled with OS X as well and Apple started offering some JavaScript APIs in 10.10 for stuff that could previously only be done with AppleScript.

comment 12y ago · link · parent

This looks interesting. It reminds me of http://prose.io/ which is basically a general-purpose Github-based web editor and that I used some time ago to edit my markdown files.

comment 12y ago · link · parent

I generally like the look and feel of Material, but I'm not sure how well it works with mouse and keyboard.

comment 12y ago · link · parent

rustup.sh installs both.

For other install methods see: https://github.com/rust-lang/rust/issues/16456

comment 12y ago · link · parent

Interesting. Just today I [read][1] some discussion about on which platforms and under which circumstances Rust should use jemalloc instead of libc's malloc.

[1]: http://smallcultfollowing.com/babysteps/blog/2014/11/14/allo...

comment 12y ago · link · parent

An important factor may also be: It's smaller in download size (15kB vs. 38kB for .min.gz).

comment 12y ago · link · parent

Linting CoffeeScript is a good idea, too (using coffeelint).

comment 12y ago · link · parent

I'm not done reading but it seems like a very nice introduction to people not familiar with the function style of programming.

This is also one of the few document that can be converted from html to epub without much pain. It looks quite good with

    pandoc ClojureDistilled.html -o ClojureDistilled.epub --indented-code-classes=clojure

comment 12y ago · link · parent

I believe that's exactly what I was planning to do for my next project based on React. I'm very interested in your implementation.

comment 12y ago · link · parent

Looks like `[x]/2 == [/]`.

comment 12y ago · link · parent

Funny, I just recently saw this method as a proposal for an example of Rust's built-in `rand` library: https://github.com/rust-lang/rust/pull/16362

comment 12y ago · link · parent

Title should probably be "V8 Optimization Killers".

comment 12y ago · link · parent

Indeed it is. And quite funny, as:

Faster than speed of light <=> faster than c

comment 12y ago · link · parent

I like that as well. Except, I'm seeing the content in German and this button reads "Jetzt registrieren OR Anmelden". Well, I guess "ODER" would have been too wide anyway.
1
45678