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 would love to see prove for that, and possibly a good benchmark suite so we changes in performance between releases.

comment 10y ago · link · parent

Some people have worked on a Rust REPL, but it wasn't really useable last time I checked. Part of the motivation to develop this was the possibility to use LLVM as a JIT, which is pretty nice.

Personally, I would love to see this as part of an IDE that can execute _parts_ of a Rust file with various inputs to quickly see if a function behaves as expected (this could also be easily converted into test cases.)

comment 10y ago · link · parent

That's how I like to work as well.

For libraries/open source, homu is quite a nice gatekeeper to pushing to master (you basically tell the bot to integrate a PR into master, and it runs the tests on CI for you before pushing).

[1]: http://homu.io

comment 10y ago · link · parent

You can set unicode ranges for custom fonts [1], to e.g. only load the basic range initially.

[1]: https://developer.mozilla.org/de/docs/Web/CSS/@font-face/uni...

comment 10y ago · link · parent

You are probably right, assuming input programs are correct. Rust (and Haskell) is not easy to _type-check_ though.

comment 10y ago · link · parent

If a compiler could proof that creating the channels/go routines/what-have-you does not influence the arithmetics (e.g. because only associative operations are used and the order doesn't matter), it could constant-fold the loops and just output 499999500000 directly.

I don't know any compiler (and language implementation) that can do that, though.

comment 10y ago · link · parent

Cool. I've wanted to try GitCop (which seems to do something similar) for a while, but didn't get around to it yet.

> Magically enforce your GitHub contribution guidelines.

Looks pretty non-magical and quite straightforward to me. I even get to set explicit rules. Why the 'magic' branding?

comment 10y ago · link · parent

You can find a few pointers (heh) here: https://github.com/nrc/r4cppp

(I'm not sure how active that is worked on, though, I think I've seen basically the same version back in September.)

comment 10y ago · link · parent

There is some technical discussion about this on /r/rust: https://www.reddit.com/r/rust/comments/43ajja/kirk_a_highlyf...

comment 10y ago · link · parent

Rust's std::slice has a `get` method that does exactly that: http://doc.rust-lang.org/std/primitive.slice.html#method.get

comment 10y ago · link · parent

Please note that this was written in 2012.

comment 10y ago · link · parent

IIRC bsdtar (e.g. on OS X) includes xz.

comment 11y ago · link · parent

A good opportunity to check how https://github.com/PistonDevelopers/image-png is doing (a PNG decoder written in Rust). Looks like it includes bindings to use miniz.c for DEFLATE decoding as well as "inflate" (which seems to be DEFLATE in Rust). Also, it seems to have a fuzzing driver (png-afl). Good times!

comment 11y ago · link · parent

JSX worked quite well last time I tried it: https://github.com/killercup/cycle-webpack-starter

comment 11y ago · link · parent

Pretty interesting. You can find a 'comparison' to Cycle.js (also based on Rx and virtual-dom) in issue 4: https://github.com/yolkjs/yolk/issues/4

comment 11y ago · link · parent

The (adapted) code from that article was used as a stress test for rustfmt in September: https://github.com/nrc/rustfmt/issues/296

comment 11y ago · link · parent

> make clippy an optional feature

Yeah, that's what I'm doing but that is also the reason why nightly is an allowed failure on Travis…

I have high hopes for compiler plugins after the current internal refactorings (HIR, MIR), though :)

comment 11y ago · link · parent

I don't know about Go, but I've recently seen this on the Rust side(/site): https://www.rust-lang.org/ides.html

comment 11y ago · link · parent

> I like things that are automatic. That way, I don't forget about them.

Yes! And that way I don't have to _trust anyone_ (including myself) to remember them.

I can't wait for the day where I can safely run clippy on stable and fail my tests when code is formatted incorrectly (according to rustfmt) :)

comment 11y ago · link · parent

> USA has already been excluded from using Treefinder in February 2015.

comment 11y ago · link · parent

rustc supports 'plugins' (like compile-time regex), but the interface is not declared stable.

142.

Using Rust with Ruby, a Deep Dive with Yehuda Katz(youtube.com ↗)

3 points · by killercup · 11y ago · 1 comment

comment 11y ago · link · parent

> Can this be implemented in rust itself, as part of the compilation ?

I'm not sure what you mean by 'in rust itself'. Do you mean as part of the rust compiler? It works fine as library. If I understand this [0] correctly, you add lalrpop to your build process and it then pre-compiles your `.lalrpop` files to rust code every time you build your project. So, it is part of the compilation even though it's not part of `rustc` itself.

[0]: https://github.com/nikomatsakis/lalrpop/blob/master/doc/tuto...

comment 11y ago · link · parent

Preventing force-push is only one small part of a good solution.

good solution:

1. create pull request which is automatically being tested by CI

2. instead of hitting 'merge', tell build bot to take pull request and merge it into temporary copy of master

3. if tests pass on build bot, it applies pull request to master (by pushing temporary branch)

4. never ever push to master yourself

This is also basically what http://homu.io/ does.

comment 11y ago · link · parent

(The title currently just says '2,99 per month'. This should probably be changed "2.99€" instead, since a lot of people would expect HN to default to USD. Even I (living in Germany) was surprised it was in Euro.)

comment 11y ago · link · parent

Interesting! I just read [1] this morning, which describes an optimizing BF compiler (written in Rust) that compiles to LLVM IR. The article also gives a good overview of optimization techniques used.

[1]: http://www.wilfred.me.uk/blog/2015/08/29/an-optimising-bf-co...

Edit: Just saw this was also discussed on HN: https://news.ycombinator.com/item?id=10141604

comment 11y ago · link · parent

Indeed! Here's the 465MB SD version! http://llvm.org/devmtg/2015-04/Videos/SD/day%202/Ivan_1.mp4

comment 11y ago · link · parent

You can use Webpack's profiling information with http://webpack.github.io/analyse/ to get a similar graph.

comment 11y ago · link · parent

Those gifs are less than 1kB each. Just include them in the CSS as base64. Or don't, doesn't matter for a site with such simple code anyway.

150.

Redesigning Chrome Android. Part 2 of 2(medium.com ↗)

2 points · by killercup · 11y ago · discuss

1
45678