Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mathw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
87 ms
·
511.
▲
by
mathw
10y ago
No, it means that they're using Blink. User agents are confusing things now. Everyone says they're Mozilla, and have done since pretty much the dawn of the web (Netscape, IE, everyone). WebKit claims to be Gecko. Etc. Why? Because
512.
▲
by
mathw
10y ago
It's a real shame they didn't have a UX professional on the team to tell them not to include backspace as a shortcut for back in the first place. Although I believe that was Microsoft's fault, but Google shouldn't have c
513.
▲
by
mathw
10y ago
Is that "Macros 2.0", or something beyond that?
514.
▲
by
mathw
10y ago
> http://rust-lang.github.io/book/ch07-00-modules.html is the second edition of the book's chapter on it, I think it's much better. It is better, yes, although I think it takes a while getting to the point
515.
▲
by
mathw
10y ago
Sadly some companies still have to support IE8 for the sake of some of their... umm... ...less technologically enthusiastic customers.
516.
▲
by
mathw
10y ago
I think it's the documentation. It took me a few tries to get everything I needed out of the Book to use my own modules, but then it was easy. Although I still don't quite get how macro importing works. It feels like when you #[ma
517.
▲
by
mathw
10y ago
The way I think of it is that a crate is a bundle of modules. Crates are quite free to make multiple modules public to be used by anything which is importing that crate.
518.
▲
by
mathw
10y ago
I'm hoping at some point rustfmt will order my use statements for me...
519.
▲
by
mathw
10y ago
Well, you can't get a 15" model with real function keys, and the model with real function keys doesn't have as many USB-C ports. Which are the only ports (other than the headphone socket), so quite important.
520.
▲
by
mathw
10y ago
Honestly in JavaScript there's very little call for it because the language is so flexible, and you can't really build anything that's unmockable. C# is a very, very different matter, and that's the perspective I was ini
521.
▲
by
mathw
10y ago
Firefox should be the poster child for this, with the Oxidation project now in full swing. I'm hoping to see similar work appearing elsewhere though. There's no reason why any large C or C++ project couldn't decide to write s
522.
▲
by
mathw
10y ago
Definitely! And Rust is capable of that kind of thing (producing a drop-in replacement for a C library) so there'd be no excuses either.
523.
▲
by
mathw
10y ago
It really depends on the library. Sometimes you look at the API of a library and you just want to wrap it because you know you're going to have to do a lot of work to get the data in and out of it in the right shape, or the lifecycle m
524.
▲
by
mathw
10y ago
Absolutely, and Elm bakes the React+Redux model into the language itself and makes it all a lot smoother and cleaner to do - but it doesn't play nice with a lot of JS libraries which you could use fairly easily with React/Redux. A
525.
▲
by
mathw
10y ago
Yes. Definitely. I have benefited enormously from doing this in C# for a few years now. Certainly the wins in testability can be significant, but it also isolates the third-party dependency's behaviour and lets you wrap it with somethi
526.
▲
by
mathw
10y ago
Well... yes. That's basically my point. Comparing speed to node.js is pretty much useless because if you really care about speed you're not using node in the first place.
527.
▲
by
mathw
10y ago
Not that I'm saying I'm capable of it, but basically I'd want to move into doing my hobbies for a living. I'm an aikido instructor already, but making a living from it is not very easy (and incredibly poorly paid compare
528.
▲
by
mathw
10y ago
I concur. Aikido is one of the things that keeps me sane after a day fighting a JavaScript runtime.
529.
▲
by
mathw
10y ago
Mmm, "faster than node.js" isn't a great benchmark out in the wide world. Although node.js being as fast as it is remains an astonishing thing.
530.
▲
by
mathw
10y ago
Well said. Changing it is easy, actually making it better is rather tricky.
531.
▲
by
mathw
10y ago
Windows doesn't really have a uniform look and feel. It has a sort of ideal at any one time, often led by whatever Microsoft are doing with the next version of Office, but the result is a giant mishmash of things written at different t
532.
▲
by
mathw
10y ago
Good point! A whole other set of things also need to be hoisted to make this work.
533.
▲
by
mathw
10y ago
I believe one of the biggest obstacles to a general monad system in Rust is that the type system can't actually handle it at the moment - it requires higher-kinded types, which may or may not ever actually be added to the language.
534.
▲
by
mathw
10y ago
Yes, you do. There is no idea of a 'default' type here, because each variant of the enum is treated exactly the same. Your C# example assumes an inheritance relationship between T1 and T2 (i.e. T2 inherits from T1, so you can pass
535.
▲
by
mathw
10y ago
Yeah it just looks like... a car. Headlining a review with "it's ugly" just seems like a bad idea. Tastes change, and not everyone thinks the same things are ugly anyway. Focus on what it does, how it drives etc. and let peop
536.
▲
by
mathw
10y ago
Well also don't forget that a Prius still burns fossil fuels to run. The Teslas aren't just shinier versions of hybrids.
537.
▲
by
mathw
10y ago
That struck me, too. I've found the Rust community generally very helpful, but this is really superb feedback and discussion.
538.
▲
by
mathw
10y ago
You've unleashed a flood of horrible memories of reading XLS and XLSX files with dates in. Thanks a bunch. You'd think when Microsoft came up with their new shiny file formats they'd actually make them new and shiny and good.
539.
▲
by
mathw
10y ago
I have no trouble believing that your mental state can influence your physical health. It's happened to me repeatedly. Prolonged stress (usually at work) seems to result in my immune system becoming less effective, and I start getting
540.
▲
by
mathw
10y ago
Oh gosh yes. Companies love their CSV exports! I think the reason is that it lets them make glue - they can take data from something, play with it, analyse it, produce graphs, using tools they understand (almost invariably Excel), and somet
More ›