jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
> before March 2023.

Why does it take so long? I would be pretty surprised if they aren't already operating with audited GAAP financials, etc etc. Or is the extended date a hedge against market conditions, to avoid having to announce a delay.
> It has nothing to do with the generic `add` function; it can stay generic as it is just fine. Even a function specialized for adding String and &str could not go back in time and change how much capacity the String was created with.

The only reason we're converting a parameter to a String outside the function is because it has that awkward signature.

I was suggesting a specialization for adding &str and &str that requires minimal code at the call site and handles the capacity issue inside the function.

But that means we're no longer just applying + to types that have Add, we've given up all that convenience because it's not compatible with performance. This wouldn't have to be a tradeoff if Add worked differently; having to make this decision is a flaw with Rust. And you could still make it explicit that allocation is happening.
Yes definitely. Indeed I'm writing this to understand how we can do this for idefine. I wrote it in my post above. Sorry, I understand the long post made it hard to follow.
None of those limitations seem inherent, nor are we close to the societal limits for what we can do when we actually care about accomplishing something. We may be somewhat close to the limits of what we can do with current R&D structures and incentives, but that's quite different.
Maybe this is precisely because before 1875, the country had a lot more land than people, and simply needed to fill in the ranks? Canada and Australia does the same till now (ok there's a point-based system but it's so easy anyone qualifies).
This is not substantially different than paying for goods with a personal check, particularly in the days before instant verification of funds.
Well, your experience is different from that of a lot of other people.
I'd really hate to taste your cooking /joke :)
Great write up. Using spark / graphx and so far it's pretty awesome.
This is a practical implementation of gene drive, which to me is as amazing as a practical implementation of warp drive.

http://en.wikipedia.org/wiki/Gene_drive

We should be careful, but this is an extremely exciting development. We really are living in the 21st century.

What this enables is a way to let evolutionarily unfavorable gene to win by cheating evolution. Sometimes being evolutionarily good clashes with benefits to humanity, but we had no recourse. Now we do.
Biphasic sleep is what I role with after learning about it here on HN a few years ago. I really enjoy reading / learning late at night / early morning. Yet I can't sustain early morning exercise and other things like that after staying up til 1-2am every night. Going to sleep shortly after dinner and waking up around midnight for a few hours reading / coding / learning has really helped me get my shit together.

In fact, come to think of it, biphasic sleep was what got me into early morning running. One morning I woke a bit late and worked a bit too long, so instead of only getting a couple more hours I decided to ride it out and go for a run at 5am. Probably a huge turning point in my life and I didn't really think much of it.

I think this was the thing that really got me interested to try it:
http://web.archive.org/web/20110629110723/http://www.history...
Suppose you're working on debugging java threads. You can open browser tabs like these, instead. Works for me.

http://www.delicious.com/tag/java+concurrency?setcount=100

http://www.reddit.com/search?q=java+concurrency

http://www.google.com/search?q=site%3Anews.ycombinator.com#s...
Slate: How much of the airspace above your home do you own?
http://www.slate.com/articles/news_and_politics/explainer/20...
Rockets have multiple stages. Most of the fuel doesn't have to be accelerated nearly that fast.

(Also, I don't know how that compares to rocket fuel.)
The parasite is money, isn't it? The ant is FDB and the bovine is of course Apple
8-9 MB/s write speed for a HDD is horribly slow.
+1 for matt
New York City is running a budget deficit of $5,250,000,000.
Feynman was the first person I heard talk about this, pretty interesting topic.
You might want to have a look at the "Princeton Companion to Mathematics". It's goals seem close to your "broad but not too deep" objective.
None of the hard-to-fill positions could be filled by someone with "training" - those are positions that require experience and talent. Both of those can be cultivated (I'm not so pessimistic to believe they can only be imported, or are formed by a population of fixed size), but training/education isn't going to do it. Which is maybe the fault of education, or maybe it's just that we ask too much of education. But try-harder techniques (like increasing funding) won't result in the qualitative changes to make training a problem-fixer.
How do you know if someone is truly gifted when they are in that gray area? In some cases it's clearly visible, but how do we judge? What parameters are observed? Precocity? Attention to detail? Creativity?

What are the parameters behind something like this?
If you can teach high school students to be decent programmers surely you can teach a intelligent art history or English majors as well.

Solution: Hire anyone intelligent to do the job for a fraction of the pay. They learn a new skill and you avoid paying a premium for hard to find skilled workers. You also get fiercely loyal employees instead on entitlement filled prima donnas.
It would correlate, except so many things have gotten dramatically cheaper while the cost of, say, bread has stayed the same (adjusted for inflation). It's possible for inflation-adjusted income to stagnate while standard of living increases, and I'd argue that it has. As petty as it sounds, I'm pretty glad I live in a world with Google.
You're welcome. I actually learned about it from the HN front page, almost a year ago. I spent about 9 hours (6pm to 3am) that day reading the entire journal on an iPhone (plugged in). It was the best non-book book that I'd read in a long while.

April 3, 1989

> We chatted for an hour about peripherally related topics. Broderbund, corporate America, the rat race, capitalism, freedom. I was seducing him. At the critical psychological moment, I remarked:

“You know, all my clipping is done on the byte boundaries.”
There was a pause

http://jordanmechner.com/old-journals/page/33

May 6, 1989

> The other thing is, I liked them. Lately I’d been starting to feel jaded about this whole enterprise – “Oh well, it’s just a computer game” – but watching Chris and Stu, I realized: These guys love games. They love games the way I loved movies in college. Even more, because they’re not interested in girls yet. Computer games are like the air they breathe. If I can make one that they can get excited about, that’s a real accomplishment. That’s something I can be proud of.

So I worked till ten with renewed enthusiasm.

http://jordanmechner.com/old-journals/page/36/
If you accept it by ignoring it, you're just waiting for them to come for your next means of transportation.

You need to speak up and protest _before_ it is too late. See https://en.wikipedia.org/wiki/First_they_came…
Can't seem to link directly to the photo down the page, but there's a 3-D stereo version too.

This camera module is the size of the ball on the end of a ball-point pen. Imagine where these are being designed-in now.
How did you remember all that stuff you wrote. The they said and you said. Either you recorded, you had a pen and paper. Or this article is full of lies.
And Rumsfeld said "I stand for 8-10 hours a day. Why is standing limited to four hours?" and asked for detainees to be forced to stand up in "stress positions" for more than the previously specified (and already inhuman and torturous) 4 hours...

N.B.: I'm not pulling out a strawman, or claiming you agree in any way with what Rumsfeld did. I'm just pointing out that your logic could, and actually does, lead to such inhumane practices. So don't be too hasty to dismiss stuff like this just based on your personal experience and preferences. I'd personally die without drinking ample amount of water (not an illness; just habit, and it would make me really, really nervous and angry if you denied me water).
Seems like that article missed A LOT of sites running on RoR.
Yes, something like that note is more or less exactly what I'd expect SCOTUS' position to be. And I don't think it would be a close decision.

Then the question becomes, if Congress endorses the pact, could it go into effect? The success of an equal protection claim against the agreement is a little trickier to forecast, since the justices who typically support a broad reading of equal protection are likely to be the most sympathetic to arguments for eliminating the disparity between the popular vote and the EC. But I think the Court would see NPVIC, rightly, as an "end run" around the amendment process, and require that state elections remain state elections: States do not have the power to facilitate national or interstate plebiscites outside the usual Constitutional order.
On Yahoo news? Really?
I'm even convinced that updates are processed programatically in many cases, and that a human doesn't even see it if it marches certain criteria.

We ran a website that let users create their own iPhone apps so bugfixes to the platform required 55+ apps to be rebuilt and resubmitted at the same time. Emails for all 55 apps would come in at the same time every time they changed state (30 or so seconds to receive all 55) and was very consistent through all of our updates.

FWIW, some more anecdotal evidence

1) after the switch to 4.0, updates to my apps that added background audio and support for the high res screen were through in 2 days. during this same period, normal bug fixes took around 12 calendar days

2) just updating images and names can take upwards of 3 weeks for non-popular apps (you think it'd be the opposite)
I can only speak for CloudFlare, but we are planning to look into how to use Server Push to help our clients. Since we'll have assets in cache we can push them to clients quickly and it'll be a question of deciding/predicting what to push and when.
Netflix told Engadget that there has been "no change" in the way it handles VPNs: http://www.engadget.com/2015/01/03/netflix-clamps-down-on-vp...

Possibly this is just a bug that people have misunderstood?
I wonder how Beijing compares to 18th and 19th century England or the United States. Seems almost like they are going through their own capitalist industrial revolution, judging by these pictures and accounts.
Well by reading a lot of stories here to be fair this seems like a mix of:

- parents not actually caring for their children. Not putting them through the motions of life. Boundaries, schedules, motions, etc. How many of those have dinner in front of the TV? Don't "eat their vegetables"? You raise a kid on overprocessed food and no exercise, what do you think is going to happen? (not saying absolutely this is the only issue, far from it)

- Overmedicalization, sure, up to a bit. I can sympathize with people that need the medication to feel better and be productive, but how many of those have a legitimate problem and how many of those "just need a nudge". Learn to manage emotions and priorities is also part of growing up.

- "Somebody elses problem", If school is boring is the problem with the school or the kid?

Not saying that ADHD is not a real issue, but if you took a look at all aspects of that person's life, I bet you would find lots of things to fix.
>Google was to move the company off of Quickbooks and onto Oracle ERP.

Why? Is not like Quickbook is so small tiny startup.( Did a Google Search and couldn't find anything )
ADHD medication is perfectly safe and not addictive (at prescribed doses). If you don't want to take it, just don't do it.

Since the US makes it so hard to get (you have to renew your prescription every month) it's actually very likely you'll stop it.
a) happens routinely. It's not just that you effectively suck, your boss also sucks and needs to learn from it.

Basically a) is your chance to recalibrate the expectations, and if you don't do it you'll be stuck forever meeting random deadlines (well, even if you do it you're still not out of that cycle, but at least you're setting precedents)
Smoking tobacco too
Yes, whether the location/context of the event is relative to you or some other location. I.e. Someone outside Chile creates an event to track the start of a football game in Chile before the change mentioned in the article.

What you really want is an absolute time, and a localized timezone that applies to the event (which may not be your own).
The biggest reason is larger user base. But here are two things I do in WhatsApp that I can't do in Signal:

- Share live location. If I need to meet up with somebody, or let someone know how far away I am and when I'm arriving, I use share live location. "Share for 1 hour." In Signal you can share your location at a moment in time but it doesn't update.

- Broadcast messages ("mass text" basically). In WhatsApp I can send a message to a list of people without the people on the list seeing each other (to them it looks like I messaged them 1:1). In Signal I would have to use a group and all the members would see each other.
They speak of him, as gamers did on forums back on the day about Carmack and Abrash.
China has always been an unequal
playing ground for foreign companies. If you want Chinese money, then you get your local Chinese partner company and start the technology transfer.

It’s only fair Chinese companies in America receive some reciprocal treatment.
I've used a lot of tools recently, including crowbars and hammers of various sizes. This is a stupid idea, as stupid as multi-tool pliers or the swiss army knife.

It means that it WILL sell, and the buyers will be the category of hipsters sporting well-trimmed beards, thick rimmed glasses and forester's shirts. The customers will be very happy with their product, as happy as they are with their multi-tool pliars and GPS watches, and since they will never actually use it for anything remotely resembling actual work (as with their other posessions) they will remain happy with it.

So.. Good on you, Cole-Bar. You can be as next-gen as you want, you'll never get picked up on an actual building site. You're too flimsy (and expensive) to use as a crowbar (they are TOOLS and they will be hit and bent in every imaginable angle, with any imaginable tool), and you are.. not a good hammer for anything, not as a light precise hammer, not as a heavy duty one. Congratulations, you're about as useless as your target audience, a match made in heaven.
They charged $1/year “on paper” but never actually collected it. That would have been plenty of revenue for any normal people but they got greedy and realised their user’s private data was worth much much more.
> Under each key there should be a small piezo electric speaker to make a key click noise for reasons of haptic feedback.

That's not haptic feedback - Haptic feedback is the kinaesthetic / touch feeling of the keyboard.

People are trying to engineer keys that are quieter, however they don't have the same haptic feel. The difference between cherry browns and cherry clears is huge!

If someone gets a switch that feels like the brown but is totally silent, they will take the market, but it's hard to see how that is possible. The keys have to be stopped by something to get the correct feel, current attempts to use o-rings create a different feel. It's hard to see how you can do that and be totally silent.
What information exactly does GA tell you from stalking people across the web? I don't think Google sharing with you accurate information about the people visiting other websites would be completely legal (GDPR). Where exactly do you find this information in the dashboard?
SEEKING WORK | EUROPE | REMOTE | $20 USD/hour

Hi, web designer and developer available for hire.

· Typography-based design system with Figma

· Robust CSS with Tailwind CSS

Here’s the rest of my “for hire” post on Reddit: https://www.reddit.com/r/forhire/comments/iswih7/for_hire_we...

Contact me at hi [at] webpraktikos [dot] com and I will respond in 12 hours. Happy to hear from you!
Asana is my tool for doing this. Easy to get back on track, when i have clearly defined tasks.

I guess that is the skill you should develop, to write clearly defined and small tasks, then it solves it self.
The movement to get rid of IE 6 took like, 12 years and it's still around in small numbers.
They key is to work very, very hard at solving the problem before sleeping. It's insufficient to just read the problem, or tinker around with it a little.

However it also doesn't work to beat at the problem so hard that I stay up all night without sleeping.

I'm afraid that I didn't clue into this until _graduate_ school. As an undergrad I quite commonly didn't start my problem sets until the night before they were due.
> Except free(NULL) behavior is undefined.

> Have you ever bothered to read ANSI C specification?

You mean the one that states

> The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation. If ptr is a null pointer, no action occurs.

?
Any suggestions ?
Plenty of sites that were archived have their whole UI in flash, so for those sites the pages are pretty much empty pages without flash.

I'm not aware of any JS-powered flash implementation or how that would solve anything since presumably that would come with all of the drawbacks that the non-JS powered flash implementations of today have (and that we are so keen on getting rid of).
I graduated high school when I was sixteen.

Now I'm fifty years old, I have a resume to die for but cannot get a job.

I've been contemplating whether I would do well to learn Javascript as well as the various .js frameworks like jQuery. My theory is that I would crush the competition, because my experience the last while with the Javascript I encounter on typical websits, is that it must be uncommon for Javascript "coders" to know that there even is such a thing as the Javascript console, let alone debuggers, assertions, stress-testing, error injection &c.
"... I expect to meet my grandfather one day, in the afterlife. ..."

David Suzuki had a different take on this. Talking about his departed Dad, he explained to this way:

"We ARE air, we ARE water"

"We are all connected. The air we breath,
the water we drink, is forever conserved.
In this way, we are connected to every
part of our planet"

Pretty profound when you think about it that way. [http://regenerativeramblings.tumblr.com/post/31412293898/hon...]
This is a cheap, troll comment but it summarizes my views on Firefox. For a browser that started out in Linux, the lack of decent start times, page render times, and the same old tired Firefox 3.x interface in Firefox 4 is a huge slap in the face.

Now that Chrome will only load Flash on demand (and performance and stability of Linux Flash in Chrome is hugely improved as a result)... there is literally no reason for me to use Firefox 4.
I'm not sure if that really counts as 3D storage though. I'm pretty sure that the commentator was referring to holographic storage, which would theoretically have a higher information density, and actually use the third dimension for data storage.

Unless I'm reading those links wrong, they are just stacking flash memory on top of each other. How is this different than finding a way to pack hard drive platters closer together? You're just taking several 2D storage mechanisms and stacking them on top of each other. You're not using the third dimension for anything.
My favorite pointer trick is a simple one. I learned it when I had to implement it (in 64-bit) in a C compiler.

Simply, you can subtract pointers. Let's say you're walking a string from the front and from the back at the same time, and want to find the length of the substring. Well, you don't have to use indeces, just do this:

int len = back_ptr - front_ptr;

You'd be surprised how often this crops up when you're using lots of pointer tricks.
Definitely check out concrete5 (http://concrete5.org). As others have mentioned, different systems are better for different situations, but if you're talking about easy to use by non-tech people to manage an informational website, I have found Concrete5 to be better than the rest by leaps and bounds.

The reason it works well for these kinds of sites is that it aligns with non-technical users' mental model of their website. Non-tech users don't think of their site as a template that displays content from a database, but rather as a bunch of pages with stuff on the pages. Most CMS's require users to go to an administrative back-end which shows a hierarchical sitemap of pages -- an abstract representation of their site -- and this is VERY confusing to most people. Concrete5, on the other hand, is based on the concept of content blocks on a page. So to edit a page, you GO to the page and add/edit blocks of content there. The blocks thing is great because it allows for different "mini-UI's" for different kinds of content. For example, to edit regular text, a standard WYSIWYG editor works fine, but if you want to add an image or a youtube video or a navigation list or a google map, it doesn't work as gracefully -- the block system means that different kinds of content can get different editing UI's specifically tailored for that type of content (for example, a youtube video just gets a textbox to paste in the URL, or a google map block presents fields for addresses, marker options, etc.).

There are many web-based CMS's that utilize this approach -- Weebly (a YC company), WebVanta, SnapPages, Yola, etc. -- but I haven't come across an open-source install-yourself CMS other than Concrete5 which works this way.
I'm OK with paying a drill sergeant more than someone who sits around the teacher's lounge eating donuts all day.

I'm not saying this approach is a panacea to all of education's problems, I'm just saying this is a step in the right direction. I think the question this approach answers is the disconnect between effort and reward in education.
You have a bug in strlen:

for(cur=str; cur; ++cur);

should be:

for(cur=str; *cur; ++cur);
Well, the heart, lungs and to some extent kidneys are pretty simple to emulate, but the full suite of chemical functions performed by, say, the liver are actually pretty tough. That said, the power concerns are indeed another serious obstacle.
Also, making it a power of 2 is a good idea if you are concerned about alignment.

Actually, there are many reasons why this may not be the case. Remember back to when you implemented a user-space memory allocator. One of the most straightforward algorithms is to use power-of-two blocks with varying coalescing algorithms. The problem that you get with your style and this malloc implementation is that, since you need to store memalloc metadata in the block (probably), each block has just slightly less than a power of two space, which means a block request for a power of two will always waste an enormous amount of space by pushing up to the next power of two block size.

Now, this "power of two allocation is best" misconception is so widespread that many memory allocators actually purposefully account for the case where the memory allocation is a power of two and make their block sizes just slightly larger. Just goes to show you what minor things can do to performance.
Right you are. Wrote all those in the comment block. Fixed in an edit.
Eight times the amount of punishment than the accusation would have caused for the accused, if it is found out. 1/2 if they admit it.

It's a balance between punishment for scum and not deterring people from admitting it.
I disagree on readability, a big chunk of deeply nested JSON is not easy to read at all. Most smart XML viewers, including most browsers, have folding and coloring which make it pretty easy to read.