Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
to3m
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
86 ms
·
811.
▲
by
to3m
11y ago
Yes. And that would make sense. They might not insist on exactly this, but they already leave this sort of possibility open by suggesting that undefined behaviour could result in the program behaving "in a documented manner characteris
812.
▲
by
to3m
11y ago
If ((uint32_t)x<<32)==x on one system, and ((uint32_t)x<<32)==0 on another, why is that a problem? The issue isn't that one system behaves differently from another. The issue is that compilers take it upon themselves to dec
813.
▲
by
to3m
11y ago
To the tune of 'Badger badger badger badger mushroom'. Only without the bit where there's the mushrooms.
814.
▲
by
to3m
11y ago
The article suggests that new Macbook/OS X might be just as bad, but the linked twitter thread ( https://twitter.com/Catfish_Man/status/676851988596809728 ) makes the situation there sound rather less serious.
815.
▲
by
to3m
11y ago
See also: http://robertoconcerto.blogspot.co.uk/2010/10/strict-aliasin... and https://groups.google.com/forum/#!msg/boring-crypto/48qa1kWi...
816.
▲
by
to3m
11y ago
Yes, this has been my experience in the UK too (and probably everybody's). It may be a cultural difference but rows of local shops are not the preserve of gentrified areas. Anywhere people live, you will find these sorts of shops, beca
817.
▲
by
to3m
11y ago
I restart every now and again just to make sure it still works, and that everything I expect to get loaded, gets loaded. Nothing worse than being obliged to do it for whatever reason and finding out the hard way (while you're in the mi
818.
▲
by
to3m
11y ago
It's not obvious from the Amethyst page that it's open source: https://github.com/ianyh/Amethyst (looks to be the MIT licence)
819.
▲
by
to3m
11y ago
Another vote for ShiftIt here. I've been using it for a couple of years now, and I've found it fine for most purposes. Supports XQuartz+xquartzwm, supports multiple monitors, has configurable keyboard shortcuts. A few more options
820.
▲
by
to3m
11y ago
Here's something that I just saw on twitter, a post from djb that I think I'll add to my mandatory reading list: https://groups.google.com/forum/#!msg/boring-crypto/48qa1kWi...
821.
▲
by
to3m
11y ago
I claim this is all highly unhelpful. Both the C and C++ standards explicitly permit an implementation to do something sensible in the face of undefined behaviour, the sort of thing that a regular user of the system in question might expect
822.
▲
by
to3m
11y ago
Yes, good point. Sorry. This is not going to help the Z80 much in this particular comparison, is it :(
823.
▲
by
to3m
11y ago
The basic operation for accessing a value from a structure is to take the address of the structure, add a compile-time constant offset to it, and use that address. There's an addressing mode specifically for this in the Z80: you put th
824.
▲
by
to3m
11y ago
Hmm... in this case, you might be right. You'd then need to advance 2 registers by 8 each time, and you'd be paying an extra 3 T-states per compare for the fetch of the immediate operand, but you'd be saving 4+ cycles in vari
825.
▲
by
to3m
11y ago
As a longtime 6502 programmer I was impressed by the Z80 after reading the data sheet - but actually trying to program it left me nonplussed. The main omissions as I recall were: lack of immediate addressing for the 16-bit arithmetic instru
826.
▲
by
to3m
11y ago
I upvoted your post on account of the dry humour.
827.
▲
by
to3m
11y ago
This is your take home pay? So after taxes?
828.
▲
by
to3m
11y ago
To see how it's done? I've actually been considering writing a package for emacs that requires a certain amount of animation, and this package would probably provide some useful hints. (Though I'm going to start by reading th
829.
▲
by
to3m
11y ago
cmake is pretty bad, too, though at least it runs on Windows. (And I don't think it's got quite the same goals as Autotools, though their scopes overlap in many respects.) I've never met anything build-related, scope large or
830.
▲
by
to3m
11y ago
Preemption just means the task is stopped when its timeslice elapses, and a new task selected. You can do this on any CPU with a regular timer interrupt. On something like the ZX Spectrum you'll need to use the vblank interrupt; on som
831.
▲
by
to3m
11y ago
Why can't it just be different outcomes for different markets? Whatever happened to American exceptionalism? :)
832.
▲
by
to3m
11y ago
I hope I get lucky with something like that one day! It's more usual that the front end thinks '+' is invalid too. The usual result is that my signup attempt is blocked. And when I send them feedback about it, I'm roundl
833.
▲
by
to3m
11y ago
You'd have to be buying organic goat milk to pay that much. From the figures in the article: Buy it by the pint: 0.49 (British pounds per Imperial pint) = 4.90836249 U.S. dollars per US gallon Buy it by the 2 pints: (0.85 British pound
834.
▲
by
to3m
11y ago
People walking out into traffic is not illegal everywhere!
835.
▲
by
to3m
11y ago
Didn't you hear? You won't be permitted to purchase an autonomous vehicle unless you can provide documentary evidence of your having been in favour of the technology even before it was proven.
836.
▲
by
to3m
11y ago
The Killing Game Show was also released in 1990, and Shadow of the Beast was 1989 :) Also in 1990: https://www.youtube.com/watch?v=GbzioZBTUIU (looks a bit dated now, but I'd never seen anything like it at the time - p
837.
▲
by
to3m
11y ago
std::sort requires random-access iterators, which std::list - being a list - can't supply. std::list's iterator type: http://en.cppreference.com/w/cpp/container/list std::sort's iterator requir
838.
▲
by
to3m
11y ago
For C/C++ and emacs, try rtags: https://github.com/Andersbakken/rtags It's clang-based, so suffers from none of the tags-type issues: it's context-sensitive, and can see straight through gnarly stuff suc
839.
▲
by
to3m
11y ago
Perhaps somebody knows better than I do, but I'm pretty sure Unity only make the tools, which is a very different proposition! They will have the large files, but not the iteration. Storing large files somewhere outside the working cop
840.
▲
by
to3m
11y ago
Awesome. I like you.
More ›