Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bjz_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
481.
▲
by
bjz_
12y ago
The official docs are much better - they are under tests and you can't make a change to the compiler/libraries without updating them. http://doc.rust-lang.org/guide.html
482.
▲
by
bjz_
12y ago
> Are naming guidelines and predictable, coherent choices just not hip enough in 2014? It has been rather ad-hoc for some time now, but we have some great things that are currently landing that will clean tons of this stuff up. Mozilla e
483.
▲
by
bjz_
12y ago
I've been using my own `rustup` script, but this is much nicer!
484.
▲
by
bjz_
12y ago
Yeah, we highly recommend blog post authors to put their `rustc -v` at the top of the page, at least until 1.0 (which is not far off).
485.
▲
by
bjz_
12y ago
> There are also some issues such as closures having a different syntax than top-level functions: he wants to be able to move functions easily between scopes. But closures have different semantics to functions, both in representation an
486.
▲
by
bjz_
12y ago
We used to do this in Rust, but have found RAII much better for this. Dealing with multiple resources open at once can quickly become painful. See http://blog.skylight.io/rust-means-never-having-to-close-a-s...
487.
▲
by
bjz_
12y ago
He does actually mention Go as the inspiration. Anyway, I still much prefer RAII for this - not only for guarding against your own forgetfulness, but also to make sure a rogue refactor or patch doesn't break anything.
488.
▲
by
bjz_
12y ago
I'm super excited too. It's been great to see how much the language has been simplified, and how much more powerful it has become. And how despite a very democratic approach to development the language still seems very considered
489.
▲
by
bjz_
12y ago
Before I start, I will say that I love Rust, and more often than not find it a pleasure to work with. Pretty much all my GitHub repositories[0] are in Rust, and have contributed a reasonable amount to the Rust repository itself[1]. Despite
490.
▲
by
bjz_
12y ago
> alloc/free safety is provided by the linear types, like with Rust lifetimes Rust's move/ownership semantics are based on linear types, where as its lifetimes are based on regions. ATS has linear types, but not regions.
491.
▲
by
bjz_
12y ago
From my experience interning at their San Francisco office, Mozilla has an ridiculously high concentration of nice, humble, yet world class people who want to change the world.
492.
▲
by
bjz_
12y ago
ilovetypography.com is targeted at those who know a bit more about typography than the general user. Not everything can be a tutorial starting from square one.
493.
▲
by
bjz_
12y ago
Yeah. I hate this 'holier than thou' attitude that some folks on this thread are displaying. We are all human, and we all do stupid things based on our psychology. The best we can do is create systems to help guard against our own
494.
▲
by
bjz_
12y ago
Agreed. He might have been silly for being out in public right after having come back from Africa, but I'm sure he did more good over there in preventing the spread of the disease (which helps us), than he might have done when coming h
495.
▲
by
bjz_
12y ago
That's certainly a pretty exciting presentation! Looks like a huge effort though... how much progress has there been since?
496.
▲
by
bjz_
12y ago
I found disabling the cursor lock on FF helped
497.
▲
by
bjz_
12y ago
Took around half an hour to download for me a couple of hours ago. (I'm in Australia, and one of the few blessed with a 'decent' internet connection)
498.
▲
by
bjz_
12y ago
Oh - I thought it was a variant on HM, extended for region inference?
499.
▲
by
bjz_
12y ago
Indeed. I feel like learning Rust has helped me grok C and Java much more, because the different forms of allocation is much are visible.
500.
▲
by
bjz_
12y ago
At least you can now do: foo[].some_slice_method()
501.
▲
by
bjz_
12y ago
Rust was first conceived by an avid Ocamler, and it was originally implemented in Ocaml too. Although the pot has been stirred quite a bit since those early days, the influence still remains, including the expression heavy programming style
502.
▲
by
bjz_
12y ago
The OS and its ecosystem inspires folks to create beautiful stuff with a great attention to detail.
503.
▲
by
bjz_
12y ago
The folks at the Viewpoints Research Institute created a DSL to describe the TCP/IP stack using an ASCII diagram: http://www.moserware.com/2008/04/towards-moores-law-software... Befunge is also a sort of cont
504.
▲
by
bjz_
12y ago
We have a syntax extension that uses kronos' xml registry ( https://www.opengl.org/registry/#specfiles ) to generate symbol a loader (somewhat like GLEW) at compile time. https://github.com/bjz/
505.
▲
by
bjz_
12y ago
Yeah - naming things is hard. I agree that `immutable` is clearer than `invariant`. I would suggest `imm`, but that is damn ugly and more opaque. :(
506.
▲
by
bjz_
12y ago
> The rust compiler is amazing. The error messages it provides are clear and helpful I'm sure that Clang inspired the great error messages - it sets a very high bar for new compilers (and old - GCC is still catching up). > Being
507.
▲
by
bjz_
12y ago
It is unfortunate that the length of the `immutable` seems to ergonomically discourage its use. I know it's really hard to go back on language design decisions, but have there been any thoughts about providing a shorter alternative?
508.
▲
by
bjz_
12y ago
Rust's type system enforces a great deal more invariants in terms of lifetimes, ownership and mutability than C, which enforces virtually nothing. This should therefore give the compiler far more room make optimizations without the fea
509.
▲
by
bjz_
12y ago
> I think soon should be a time to look at performance. Performance should be close to or better than C++ on average. The language has been designed from the ground up to compete on this level. Also note that Rust potentially has far gre
510.
▲
by
bjz_
12y ago
> Large scale power plants (coal, nuclear, even gas to some extent) run at a very steady output I wonder if we could do the same with legacy power plants as they do with solar thermal - shove some of the excess heat into molten salt heat
More ›