Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
FreeFull
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
601.
▲
by
FreeFull
11y ago
I would say Rust's type system has a lot more in common with Haskell/Ocaml than with C++, at least, although it's not quite as flexible as what Haskell offers (a lack of HKT is painful sometimes).
602.
▲
by
FreeFull
11y ago
I think the argument is more that devices shouldn't have a standby state in the first place.
603.
▲
by
FreeFull
11y ago
I imagine depending on the assumptions, the same could happen in Rust, given Rust allows overriding equality too.
604.
▲
by
FreeFull
11y ago
Although the bounds check can also be elided if the compiler knows i < len
605.
▲
by
FreeFull
11y ago
I imagine one could have something like a pez dispenser, but that dispenses tiles instead. Randomisation would still be an issue though.
606.
▲
by
FreeFull
11y ago
Or they turn out not to even be a thief. A lot of the time, vigilante justice ends up not being true justice at all.
607.
▲
by
FreeFull
11y ago
Before you arm the thing you also have to make sure it's tilted just right, because of the tilt switch, which I imagine is rather tricky.
608.
▲
by
FreeFull
11y ago
I have a feeling that USB's complexity is there for good reasons. As far as xmpp and css/js go, there definitely is a lot of complexity that could have been avoided with a different initial design, although hindsight is 20/20
609.
▲
by
FreeFull
11y ago
The Firefox nightlies can run in Wayland without any form of X11 server present.
610.
▲
by
FreeFull
11y ago
Yes, I do use it as my main editor (I have "vim" aliased to start kakoune instead). Knowledge on how to use kakoune doesn't seem to interfere when I need to use vim for some reason (such as ssh-ing into some machine that does
611.
▲
by
FreeFull
11y ago
The author of kakoune initially intended to rewrite vim from scratch, so there is definitely a similarity. A big difference is that kakoune operates in terms of selections rather than motions, with built-in support for things like multiple
612.
▲
by
FreeFull
11y ago
An another alternative to the vim plugins, here's a vim-like text editor that concentrates on selections and multiple cursors: https://github.com/mawww/kakoune
613.
▲
by
FreeFull
11y ago
I've switched from vim to kakoune some time ago. vim does have the advantage of a bigger ecosystem, but I do believe it is possible to have an editor better than it.
614.
▲
by
FreeFull
11y ago
And then we have found the acceleration of the universe is accelerating, and the cosmological constant starts looking relevant again. What Einstein called his biggest blunder might not be a blunder at all.
615.
▲
by
FreeFull
11y ago
Never been a problem for me either.
616.
▲
by
FreeFull
11y ago
Yes, that exact code would work, except with some extra semicolons.
617.
▲
by
FreeFull
11y ago
We haven't put GPS satellites around Mars quite yet. I'm guessing that won't happen until it gets terraformed.
618.
▲
by
FreeFull
11y ago
It is possible to write a Linux device driver in C++, although most will be written in C (and I think all the ones that actually come with the kernel are in C).
619.
▲
by
FreeFull
11y ago
http://retroforth.org/docs/The_Ngaro_Virtual_Machine.html This virtual machine has been implemented many times in various programming languages. The retro forth download includes most of the implementations.
620.
▲
by
FreeFull
11y ago
In Rust, move semantics are assumed by default, and it's up to the caller to make a copy using .clone() if they want to keep ownership of the value (unless they know Copy is implemented and it's unnecessary, for example for intege
621.
▲
by
FreeFull
11y ago
Well, if you have let u = v.clone(); then you are absolutely certain that u is a copy of v too (And it works on more types than just simple copying would).
622.
▲
by
FreeFull
11y ago
Note that while C++ zeroes on move, in Rust the compiler statically prevents you from using v after the move. The only way to use v afterwards is to move something new into it (which can only be done if v is mutable). Semantically, a move i
623.
▲
by
FreeFull
11y ago
Yeah, I dried the money out before I used it to buy anything.
624.
▲
by
FreeFull
11y ago
I once found a banknote floating in the river, it wasn't damaged in any way.
625.
▲
by
FreeFull
11y ago
I imagine the existing users were both Digg and Reddit users, and started using Reddit more when they stopped using Digg.
626.
▲
by
FreeFull
11y ago
I have experimented with printf("%d\n", a); using gcc. When compiled for 32-bit x86, it displays the lower 32 bits of the double (which for 12.5 happen to be all 0). On x86-64, it displays a random value each time, which actually
627.
▲
by
FreeFull
11y ago
#include <stdio.h> int main() { float a = 12.5; printf("%d\n", a); printf("%d\n", *(int *)&a); return 0; } This program invokes undefined behaviour when it casts float\
628.
▲
by
FreeFull
11y ago
Might want to implement networking for PilOS first, before putting it on your router ;-)
629.
▲
by
FreeFull
11y ago
Any reason not to use Bitbucket rather than Github, to get those features?
630.
▲
by
FreeFull
11y ago
Wouldn't focusing on infinity be a problem for people who are myopic? I imagine everything would be blurred, and I don't think glasses would be wearable together with the VR gear.
More ›