jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
A comparison never costs more than an addition or a subtraction.

If you would use a conditional jump, that would have a high cost.

However the maximum or minimum should always be computed without conditional jumps and many CPUs have special instructions for max and min, which are not more expensive than additions or subtractions.

On CPUs without max & min instructions, computing max or min requires 2 instructions (compare + conditional copy).

2 instructions vs. 1 instruction increases the program size but not necessarily the execution time, if the instructions can be overlapped with others.

Due to the complex architecture of modern CPUs, it is impossible to determine the cost of a simple sequence of instructions in the general case.

For each particular CPU, a different but equivalent sequence of instructions can be the best and longer sequences of instructions may happen to be executed in less time, if they can be better overlapped on a certain CPU.
I commend you for putting your money here your mouth is :)

And I also agree that the benefit for the community is enormous as well. I am watching what Valve is doing very closely as an example of how commercial interests and free software can benefit eachother.
As an American, you may have run into a certain type of infantile anti-Americanism abroad. By infantile anti-Americanism, I mean something that goes far beyond logical/informed critiques of US policy and society, into a sort of knee-jerk disdain for everything American.

You'll find this sort of silly perspective among some people in Europe, but it's far from being a majority view. Most people have a healthy understanding that the US is a complicated place.

Now imagine if this sort of infantile anti-Americanism were the dominant view throughout Europe, and if it was relentlessly pushed in the media. Imagine if everywhere you went, people who knew nothing about America, who couldn't speak English, and who had never visited the country wanted to lecture you on how evil the US was. And imagine if every time you opened your mouth to tell them that things were a bit more complicated than they were saying, they called you brainwashed or a US bot.

If that were the case, you might get a lot more defensive, or even just avoid talking about America with Europeans altogether. That's what the situation is with anti-Chinese sentiment in the West.
Near the end, the blog posts mentions patterns to avoid accidental deadlocks in structs that wrap a Mutex. Here's another one that I like use:

struct FooInter {
actual_data: HashMap<...>,
}

impl FooInner {
fn do_something(&mut self) { ... }
}

pub struct Foo(RwLock<FooInner>);

impl Foo {
pub fn do_something(&self) {
self.0.write().do_something();
}
}

The rule is that FooInner doesn't know about the lock (so calling other methods is safe), while Foo methods can't call other Foo methods (so you can't lock anything twice). You can even move Foo and FooInner to different modules to hide FooInner's contents from Foo, though I rarely find that necessary.

I know this is subjective, but for me, this works better than what the blog post suggests -- at least, I haven't gotten it wrong by accident yet.
You're, perhaps intentionally, mixing hard and hard. Could a child paint an abstract Picasso if it had him hanging behind a shoulder, saying what to do? Could it paint a realistic Picasso?
Terrific, thank you!

I still use EC2 for everything, I haven't explored Lambda yet. I look forward to your article, thank you. Is dev.l1x.be where it will be posted?
Is it difficult to integrate a new avatar system? I am dusting off my 3D reconstruction system from over 10 years ago, it looks like the market for avatars is finally going to happen. https://twitter.com/3DAvatarStore/media
This is probably a bit off-topic, but I wonder if you know about the GenIDA project: https://genida.unistra.fr/. It's basically a research website where families can register and answer questionnaires about the everyday life of patients with rare diseases. The data can then be used to discover new things about these rare diseases. They have a Kleefstra cohort if I recall correctly.
Maybe you could get in touch with the people in charge, like Jean-Louis Mandel.
Could this be used in some way for robot AI to learn to speak?
The "experiment" with the ritual initiation had participants self-select into different groups, so you can't use any of that data to show that the pain caused anything unless you can account for all other reasonable explanations, and it frankly seems pretty obvious that there would be some kind of correlation between these two particular choices.
Not the author of magnetico here.

I think magnetico is not expected to replace a proper DHT node but be run in parallel: one is naturally present because you're a peer in any amount of torrents, the other is using the network for searching. I'd expect both to be running on the same machine.

After a few weeks of running it I know have a 2.6GiB database of torrents. I wouldn't expect a standard torrent node to include this feature, especially because the value of magnetico only comes when the database is big enough.

That said magnetico should definitely be a standard node in the network, it's light enough that it can do it
Failure is a pretty strong word, they all went on to do other things, better paid, they had options. They tried to teach, for a while, because they wanted to.

My point is just that they all underestimated how difficult controlling a pack of teenagers was going to be, even those who were at nice schools "with a PTA". That's what I think was meant by "babysitting" above (not my choice of word), it's a real hurdle. As you seem to agree.

I'm dubious that the world is short of video courses. But many people do miss out on human interactions which could show them other paths.
Outing someone’s Twitter handle is a form of doxing.
I use DNS66 to as a VPN ad blocker. You can lock the app so that clearing running apps won't shut it down, should work for this app too. Just long press on the running window and a lock option should show up. It works for me and I only ever need to manually start it after rebooting my phone.
There have been emscripten ports of this already. Distributing the assets is probably the most problematic thing.
I have no idea, but it seems like you should be able to use a direct mechanical coupling to put the braking energy right back in the flywheel, thus avoiding two conversion steps and their associated losses (mechanical -> electricity, then electricity -> mechanical).

Whether the savings would be worth the added transmission complexity? Not a clue.
In the twitter-verse, Matt is well known for his occasional "hot takes". But he is among the people who pushes the envelope ever so lightly all time and is still tolerated by woke twitter and I am glad for his role. He made out somewhat OK from the recent Harper letter controversy.
Seems like the difference between thermal throttled MBA and non-throttled MBP is ~15-20%..?
Why is it still a moot point? Are you implying that the battery will go bad before the average users expected lifetime of the phone is reached?
"VGA-quality photos and video at up to 30 frames per second with the front camera" http://www.apple.com/iphone/specs.html

VGA is 640x480, correct?
Also, astronauts can now use the iPhone effectively in space.
what exactly is your official position with this project? co-founder? paid employee? etc..
I think you're making a classic mistake. Mistaking humor for some sort of serious position or criticism. :)
> Chemically strengthened to be 20 times stiffer and 30 times harder than plastic, the glass is ultradurable.

... though the battery is still non-removable, so the ultradurability of the glass is really a moot point.
I would pick classes that accelerate your learning and overall knowledgebase. If you can get a cert or two out of the little for little or no extra effort, then it is probably worth while.
For any HN crypto nerds: I made a little web chat that even the server can't read.

Besides boring old SSL, bonchat.org uses a javascript implementation of AES to encrypt chat client-to-client. There are no cookies, no sessions, and no account registration. You never even send your password or plaintext username to the server.

If you chat with someone who knows the same password, you get a simple HTML/Markdown web chat. If you chat with someone using a different password you get gibberish. That's it. :)

It has a number of glaring flaws and no marketability, but by golly it's secure!
This is fundamentally a robotics problem. Typical issues with robotics have to do with sensing, power supply, and actuators (the last two being pretty well coupled). This particular application makes the first two issues make easier - it is a fixed application where installing extra sensors isn't too much of a big deal, and also interacts with a more or less predictable object. Power supply... ya, this thing is plugged into a wall, not an issue. Actuator-wise is just a question of price.

Something that helps to make this seem less 'high-tech' is to imagine not a flexible cable or hose that articulates, but rather a large series of rigid connectors between articulation joints. CMU has a biorobotics lab that is particularly fond of snake bots (http://biorobotics.ri.cmu.edu/projects/modsnake/).
It's not just random vs random. Two extremely weak players will take hours to finish a won game, because the player with the major material advantage does not know how to win!

When teaching kids, it's not uncommon to, after teaching them how to move all the pieces, spend time teaching them how to perform the most basic of mates: KQ vs K, KRR vs K, KR vs K. Only after those three are mastered we have a good opportunity of having beginner games ending in anything other than a stalemate.
Marissa Mayer seems to be the goto for a struggling giant.
https://github.com/mrdoob/texgen.js/blob/564c6efb5b5647ad44d...

I'll admit to being a bit concerned about programming practices like this. I'm mostly inept at Javascript, but surely the language has better mechanisms for accomplishing the goal here.
You have no idea just how hilariously wrong you are. Just read this passage from an Economist article about IBM mainframes:

> At any rate, the mainframe is a hugely profitable business for IBM. Only around 4% of the firm’s revenues come from mainframe sales. But once additional hardware, storage, software and all kinds of related services have been factored in, the mainframe accounts for a quarter of IBM’s revenue and nearly half of profits, estimates Toni Sacconaghi of Berstein Research.

Read that again. HALF of profits. A QUARTER of revenue.

Source: http://www.economist.com/blogs/schumpeter/2012/09/ibms-mainf...
The closer you get to the power core, the more things you can get. Power is money. power > fiat money. I stopped browsing Tianya for a long time (around 2005/2006). There was another famous thread that is quite similar to this one but not as interesting as this one. Good to know this.

The information restriction and distortion imposed by the ruling party will simply destroy its own capability of processing information in the long run. Not a good thing for people live on the land. I wish it would not happen.
This I don't understand.

You are interested in economy and politics, yet you don't know how to file taxes. Is that not connected?

If you understand mechanics, yet can't do maintenance on your car, not even talking about fixing anything.

This level of theoretical knowledge that can't overreach to reality to do basic tasks seems just irrelevant to me. What is it good for apart of talking about it?
Thought about it as well. For my static blog, I just want to expose history of changes for each post (all my stuff is tracked by git). Haven't got onto implementing that yet though.

I've only done relatively small changes so far, so hopefully that is fair to people who already shared/liked. For typos/style I just change it, for bigger additions, I'll explicitly mention when it's updated.
Debit yourself 1 monetary unit, and then say you could just as easily credit money.
Or one from the company cafeteria. I’m not sure if this is the point you were making, but trust, insight and ability to get things done is quite different when working internally in an org versus working with an outside-org, and it’s a big deal.

My biggest burnout was when internal teams I worked with started to feel like external teams. That was more
about engineering teams but another example: I strongly discouraged internal IT from adopting vendor/client language and mentality.

Relationships like that put them on the back foot, become defensive, and when you encounter problems the sense of being able to honestly ask what’s actually going wrong here? evaporates.
LinkedIn has a "report a member as deceased" page that puts the member's account into a commemorative state. Some people might find updates like those to be a painful reminder.
It might be a bit late to ask, but out of curiosity, what kind of tools are you using nowadays to replace calculators? I prefer free and open source ones, so I have a shortcut to open a terminal with GNU Octave (or python if not installed).

I use xcas when I need CAS, but the interface is a bit unwieldy.
Yes, Miami.
Some business models would need to adjust if pay outside of tech centers started going up, yes. Possibly some will have to be abandoned entirely.

My instinct is that if a tech problem doesn't have a fairly high upside, though (5-10x), it already has a tenuous business model given how famously risky technology projects are. It's very hard to impossible to consistently complete them as estimated and budgeted. Not to mention actually getting folks to adopt the finished product.
> Not many employers would know of the IOCCC.

Sure. But who wants to work flipping burgers, greeting shoppers, or doing web front-ends for the rest of their life?
No, it says $47 per person that’s under $30 per dose.
Worth mentioning the cryptocurrency that Bram Cohen (inventor of bittorrent) is creating that is explicitly designed to be low-energy usage and more distributed: https://www.chia.net/

It uses "Proof of Space" (proof that you're allocating a certain amount of storage space) instead of Proof of Work or Proof of Stake. Pretty interesting and they're coming out of beta into their mainnet in the next few weeks. Their on-chain programming language is even Lisp-based!
Installing sprinklers in the datacenter is probably a bad idea. But around it it may pay off, the fire may originate outside the datacenter. Inside the datacenter it’s be great to have some phisical separation so not all is lost in case of a fire and an extinguisher or whatnot can be used on the burning component without effecting the whole system.
Also installing heat sensors and monitoring those may prevent a disaster. Installing partitions or building separated server rooms could also help.
Would you accept recommendations for other feeds? If yes, where would one post them?
I was going to leave this alone, but it's important to point out this is not white hat..

This world still be black hat (or arguably grey hat)...

White hat would have been realizing the possible problem and informing the company without actually making the account (or, with only making the account or prove the link, but not taking money from anyone)

You could possibly argue that if the author "cheated himself" only, that's okay... E.g. paid themselves through patreon... Assuming the author eats the cost difference and doesn't refund.

The author actually defrauded unaware visitors, intentionally, he has caused harm to them, patreon (financially or good will/name), and the money transfer networks; this is at a minimum grey hat... Sure, the end user donating was made whole, but other business entities were harmed... Someone eats that transaction fee.
Fabrice Bellard should receive a Turing award. Who agrees?
An interesting message that was expressed better by Allan Bloom, 30 years ago and with less rape/misogyny-apologism: http://en.wikipedia.org/wiki/The_Closing_of_the_American_Min....
Please cite an "even more horrible thing done in the name of atheistic philosophies" (I'm actually curious about this, even though I'm going to argue with you in a sec...).

--

The premise that religiosity in any way influences morality (or "self control") is a joke. We live in a world where religious people are performing (or attempting to perform) genocides, who rape children (and adults), and who are subjugating the current out-group. We also live in a world where non-religious people are providing healthcare to the poor, counselling to the abused, and food to the needy. There are, of course, plenty of counterexamples where religious people are acting morally, and non-religious are acting amorally... all this just goes to show that there are moral people and those who are not moral, not that religion has any influence over that morality.

To further the point, the vast majority of religious people (at least in the "Western Religion" sense) go out of their way to cherry pick which of their holy book's rules to adhere to. This is because they have decided to act in a way that they, and their society, have deemed moral; despite what the book has told them was.
You're comparing an operating system to a language specification. Not sure I see what you're getting at here.
This was part of a HUD program called HOPE VI, which replaced really bad housing projects with townhouse-style, privately-managed, mixed-income housing. At least here in Boston it seems to have been very successful.
From the site:

"There's a good comparison to be made with java, as they had similar design goals:

good performance (within an order of magnitude of C)
cross platform / virtual machine based (WriteOnceRunAnywhere, except actually delivered this time)
safe execution of untrusted code
powerful network / browser focus

However, they diverged in a few areas (probably to their advantage):

register based byte-code (as opposed to stack based), maps well to existing processors, JIT compilation works much better
supported as a native operating system (i.e., it'll easily run on bare hardware, for many values of hardware)"
> "Let me ask you this: say you want to check for guns and explosives before people get on an airplane. How do you do it?"

Politely. With the view that I'm dealing with people who are innocent unless found to be otherwise.

Edit: Please also note that permethrin is not an explosive. Should everyone who uses insect repellant be treated this way while going through security? I'm surprised the guy even knew the name of the chemical (I wouldn't have).
I hate w3schools.com because so many people have confused them to be the actual spec site of the W3C.

Here are three good links to HTML5:

+ http://html5doctor.com/ (A lot of info on the semantics based tags)

+ http://diveintohtml5.org/ (You've all seen this one!)

+ http://dev.w3.org/html5/spec/Overview.html (The full HTML5 spec, which once you find the tag you want to read about is easy to follow.)
Last time I checked it out, it was intolerably slow on a low-end machine. Now, on that same machine but with the latest Chrome beta, the performance is perfectly tolerable. Looks like gRaphaël is going to be something I might want to use someday after all, so thanks for making me look again.
>As for IP terms/noncompetes/overtime, I'm not sure why you need a union. Why not just negotiate for that yourself?

Because certain portions of our field have jobs that people are willing to be whipped and beaten for if they can get the jobs (entry level game programming, I'm looking at you).

There isn't anything about programming that makes it reasonable to require unpaid overtime exemptions, etc, unlike most other fields have. It's merely poor management demanding it.

Game programming, especially, would be nice, as there is no reason to make games come out faster, they're pure entertainment without just recompense for hours worked. A heavy preponderance of unions would deescalate the field, making everyone do less over a given period of time (or pay people much better than they do for the overtime they demand).
"semi-autonomous robotic control is one of the holy grails of CS"

Agreed 100%, and it's a difficult and worthwhile set of AI problems (just not ones I'm personally interested in :-). I have no trouble with the Grand Challenge given that the state of the art makes it practical, it's that other ... perhaps more foundational stuff is apparently being neglected. The stuff that's "wow!" in 10 years.
Substitute whatever you want for Rails, and ASP.NET will still have a better ROI for any given single application, and potentially (probably, in fact) for all their apps even if you artificially ignore switching costs.

We don't build apps in ASP.NET. We use Ruby. But we do a lot of security work for people with ASP.NET, are knee-deep in a lot of ASP.NET dev teams, and the things ASP.NET does for enterprise apps are not "kool-aid".
I feel like even with courses taken as a given, there's still some measure of common courtesy there in stuff like "in week 2 you're going to see a pretty gross safety video, don't eat lunch beforehand".
> I think it's an awkward form factor and would probably rather use a large van for most of the things people use pickups for

Hell, I've gotten away with using a minivan for things most people would use a pickup for for decades. My dad's 87 Aerostar growing up allowed for the back bench and both middle seats to be entirely removed, and we did that a lot.

I've had a few friends throughout the years that expressed interest in getting a small/medium pickup so they had something to haul stuff "when they needed". Every time I mentioned how a mini-van would probably fit their needs better, they eventually agreed on the merits, but admitted they wouldn't buy one.

The truth is, very few people are entirely rational about their vehicles, and most of us are nowhere near rational. This truck may or may not be useful and used at work sites, where the business may act in a more rational manner, but I think that has little to do with whether individuals buying their own work truck (e.g. professional carpenters, electricians, plumbers, etc that work for companies too small to provide a fleet of trucks so use their own) will make their decisions on a more personal level, at least after their basic needs are met.
I have been 'coal rolled' before so it's a real thing, but I could be overgeneralizing from this and videos on Reddit of trucks blocking superchargers.

That said, there's a reason all the truck ads have deep voices and talk about being 'tough' etc. Ford and Chevy sell a lot of trucks so presumably there's something about the market that pushes them to this sort of advertising.

I suspect the overlap of the people positively influenced by those ads and the people that like EVs is small and of those the people that would like this design is even smaller.

Maybe there's a new market that will want this, but I'd argue it isn't most of the existing truck market.
Startup culture has become fairly mainstream, thanks to shows like "Silicon Valley"; but there aren't any humorous books about "making the world a better place" by becoming seemingly rich, so we decided to create one. It’s an epic tale about a stereotypical hipster named Theo and his disruptive startup, which I'm sure many of you will find heartwarming :)

Comments and "investment capital" welcome :) Also, feel free to share with your hipster and non-hipster friends.
Hah, that's certainly one angle I missed.
We've had ours for almost 4 years. The only dog I've ever owned, and he's a wonderful family companion. Very high pride of ownership: if (god forbid) we lost him, I would want another vizsla.
It would be cool to see a secure p2p DNS system, one that can't be tinkered with by "authorities".
Athletics are a money loser for all but 15 or so universities.