Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
WildUtah
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
WildUtah
10y ago
They're duals, actually No, actually, they're not. Just try allocating a lot of looped structure RAM and see.
92.
▲
by
WildUtah
10y ago
Indeed, according to these "ref counting is gc" folks, free(void *) is a garbage collector, so C has always been garbage collected since 1970.
93.
▲
by
WildUtah
10y ago
Yes, except the canonical map is—surprising the users of other collection frameworks—an ordered, balanced tree. So std::map::find() is O(ln n) while std::unordered_map::find() is O(1).
94.
▲
by
WildUtah
10y ago
I still love 'with-open-file and its sisters in LISP. Get that resource in one line and it's guaranteed to be cleaned up right without ever thinking about it again. Then you have total freedom to use it however you want and the re
95.
▲
by
WildUtah
10y ago
Steve Miller and Don Henley seem like such easygoing guys on stage. Surely the purists aren't so touchy.
96.
▲
by
WildUtah
10y ago
You can write a reference counter in three short lines of code that works the same as shared_ptr<T> or Swift. A modern automatic garbage collector requires a threading library plus tens of thousands of lines of intricate code. We'
97.
▲
by
WildUtah
10y ago
Anyone can define a bat as a bird because it's an animal with wings that flies. But you'll soon find that isn't a useful conceptual distinction.
98.
▲
by
WildUtah
10y ago
Garbage collection could prove to be a dead end. Rust and Swift are prospering as the latest cool things because they don't have any. Decades from now we may be hearing about garbage collection as a vastly expensive experiment that sim
99.
▲
by
WildUtah
10y ago
Wish I could. The hours I've spent reading the formal committee proposals and specs would have been better spent on video games and junk food. But there will be books, and good ones. Next year probably. The compilers aren't even r
100.
▲
by
WildUtah
10y ago
C++ type inference and first class lambdas and flexible typed tuples have made it possible to create a real useful type system into C++ programs now. It's quite pleasant. But it robs a lot of much slower languages of their best value p
101.
▲
by
WildUtah
10y ago
Reference counting isn't garbage collection. It's the opposite of garbage collection. With reference counting, which is optional in C++ and can be opted out of in Swift, you keep track of your allocations and release them when you
102.
▲
by
WildUtah
10y ago
C++14 (and higher) feels like coding in Go or Python. C++17 is so full of good stuff I'm considering beta compilers just to get it. Soon Python and Ruby won't have any advantages left in writing beautiful, clear, correct, bug-fr
103.
▲
by
WildUtah
10y ago
a lot of implementation leverage (e.g. garbage collection) Putting garbage collection in that basket is controversial and lately the evidence is piling up against it. Notice how new important growing languages like Swift and Rust don'
104.
▲
by
WildUtah
10y ago
Trump won Ohio 51-43. If that swings all the way back into competitive territory, his re-election is doomed anyway. Just because a state is a swing state with a regular Republican (like Ohio or Colorado) doesn't mean it's a swing
105.
▲
by
WildUtah
10y ago
Why not? The same reason everything in California is screwed up: Proposition 13 prohibits fixing it.
106.
▲
by
WildUtah
10y ago
OH and CA aren't swing states.
107.
▲
by
WildUtah
10y ago
Immigrants are less likely to get caught, not more law abiding. In my city we have persistent problems where crime victims won't report to the police because they're illegal just like the criminals. That quickly adds up to lower c
108.
▲
by
WildUtah
10y ago
Just given the timing of the business cycle, Trump is likely to face a recession or at least a stagnation by the time he's working on reelection in 2020. There's very little he can do about it now: Most economists believe it takes
109.
▲
by
WildUtah
10y ago
No. Lots of people who haven't thought about the consequences for their nation or their families or who simply don't care agree with you. It's especially common among young people that want to display their virtuous radicalis
110.
▲
by
WildUtah
10y ago
But try remapping C-w in bash. The tty remaps it on the very next line. You'll have to stty werase unmap it to be able to change it in your read line .inputrc. So the tty cooking still has charge of some things.
111.
▲
by
WildUtah
10y ago
Put your dotfiles under version control. Open a repository for them on github. A complete personal install on a fresh box is just useradd and git clone away. Two commands to paradise. Google dotfiles in git. It's easier than you think.
112.
▲
by
WildUtah
10y ago
If you start behaving like that, expect foreign governments/clients to ban/boycott american providers. If it were a real concern to anyone, the EU countries would have simply used their big stick and started banning Google and M
113.
▲
by
WildUtah
10y ago
Neither is search and seizure about a possessory interest. It's about privacy and security. Even in the eighteenth century it was about "persons, papers, and effects." It was always an information security question.
114.
▲
by
WildUtah
10y ago
Apple sure is trying _really hard_ to get me to switch. Yes. It sure doesn't look like Apple is going to relent on the silly touchbars, the $300 price bump you pay for the touchbars, the shrunken batteries, and ongoing trials they su
115.
▲
by
WildUtah
10y ago
I used to have a laptop with a built-in tiny hardware volume dial. It was hooked directly into the power to the amp and speakers so it worked instantly even if the machine was bogged down with loud busy autoplay video web sites or other awf
116.
▲
by
WildUtah
10y ago
Surprisingly the virtual escape key hasn't bothered me as much as I thought it would, even in vim. Put this ino kj <Esc> in your .vimrc and instead of escape, just hit the j and k keys quickly to leave insert mode. It&
117.
▲
by
WildUtah
10y ago
Foreign doctors can't even get licenses to practice in the USA. That's how they prevent getting socked with H-1B floods and maintain the highest wages for doctors in the world. Too bad engineers can't organize like that to pr
118.
▲
by
WildUtah
10y ago
70-80% of H-1Bs are migrant server coolie workers for ultra-cheap mass labor camp shops. The Silicon Valley companies see the entire quota eaten up by those el cheapo slave drivers. With a real salary floor, the qualified engineers that ser
119.
▲
by
WildUtah
10y ago
Imagine how nasty Amazon would be and how much money they would lose if they just blamed their users for bugs of that magnitude. That's how Europe's tax authorities are running their business. And the USA isn't all that much
120.
▲
by
WildUtah
10y ago
Prime minister of tiny Norway is about as powerful and important as a small city mayor in the USA. Do retired small city mayors travel in first class on diplomatic passports and expect to be free from customs and immigration rules that appl
More ›