jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
I believe OP is aware of this as he specifically uses the phrase "arithmetic operations" instead of "time", so adding two very large numbers only counts once. It's true that you can't have an O(log N) time algorithm, as arithmetic operations cannot be performed in constant time.

A similar situation arises in, say, mergesort when we say that the algorithm takes O(n log n) comparisons. That's not the same as an O(n log n) time algorithm; for instance if you think of sorting distinct integers, each integer will take at least O(log n) bits to represent, and to compare two integers you could potentially need to read all the bits.
Keep your side projects simple so you can get that dopamine reward with every launch/update.
You could do a salary auction, so the people offering the highest salaries get the Visa's. At least that would incentivise the people adding more value rather than less...
A fresh install will likely fix many of your problems. But it sounds to me like your machine needs a warranty repair.
> What io_uring does do is provide a way to poll without needing to wait, but if you haven’t received new events when you poll, you’re not on the fast path any more.

Isn't "not on the fast path any more" a bit absolutist? io_uring's "slow" path is roughly one syscall per iteration, right? That's still many fewer syscalls than one syscall per IO operation (or more if any return EAGAIN/EWOULDBLOCK) as you'd be doing without it. I'm not sure I really care about eliminating that last syscall per iteration; it seems minor in comparison.
I was surprised to see no mention of energy efficiency. I would consider this an important factor.

If I just wanted to clean the most air as fast as possible; I could set up 5 box fans.

But that wouldn’t be energy efficient. Especially if I just leave them running constantly.
> Set this chart to "all" and tell me that this price movement is not a bubble

It's a new asset class, of course it's going to see huge gains as it picks up adoption and of course if you zoom all the way out it'll look like a bubble. The bubble goes bust every few years and comes back stronger. That's a healthy market.

> It's actually really sad, because it means they cannot rely on or trust their country's currency.

That's a huge benefit and reason why bitcoin will become popular. It's a portable store of value outside the control of any government. It doesn't have the same issues as the US dollar for example where other countries need to be concerned about how not only their country is performing, but also the US since their reserves are in USD.

This is also why it's gaining popularity around the world. Trust in governments is rapidly decreasing and the world as a whole is destabilizing due to polarization, poverty/wealth gaps, and rising environmental concerns.

> there is no trust

That's the point. It's trustless. You don't need to worry about it.
A major factor is that in many/most area and periods a low-ranking member of the society (even a serf or sometimes a slave) was able to move, for example in order to escape from to much hardship by crossing the domain boundary (in stealth mode). This established a limit to the hardship enforced by a local power: too much of it, and too many will defect, either to the wilderness or to join another lord's domain (for example in some march).

This is less and less an option, as technical progress helps enforcing a rule.

We sure can read, however for many/most of us it is mainly "Manufacturing Consent" all day long, and thus a way for the establishment to manipulate us.
yes, no doubt.

I read the subtitle now, and see he already know Ruby, so my suggestion was useless anyhow :(
(personally I like Ruby a lot, as you can imagine :)
Not sure what you mean.

The AD code there is mine and the only thing they added is some JavaScript code for a Russian web page counter ...

Can you please remove the link to the offending site as not to give them any link juice?
ah, a fellow traveler - godspeed. what a sane, reasonable world we could have if nanosecond timestamps ruled supreme.
You and the team deserve massive kudos alone for not hiding SAML/SSO functionality away in only your paid tiers.

Thank you for this - it’s an example I wish more companies would follow.
I didn't say they should invest in GME. I said it was proved they could invest in stocks.

> new money speculating in the equities market often doesn't go well.

It goes better than lottery tickets, which target the poor and the mathematically challenged. Stocks at least have an upward bias, while lottery tickets have a strong downward bias.

BTW, wealthy people lose money in the stock market, too. Stocks do not come with guarantees for anybody.
The best way to do this is to rewrite history with git filter branch / etc and rerun black at every commit. Then everyone nukes their clone and you continue on with the best of both worlds.

The only real downside is you nuke your issue tracker at the same time.
I don't like these "simple" formats because of non-obvious escaping and overloading too many "common" characters, which is even context sensitive (in HTML, it's just three characters anywhere, & → &amp;, < → &lt;, > → &gt;, and maybe " → &quot; if you use attributes). Even in the provided article, there are many such constructs:

- we learn that we need to escape === and --- and ```, but I assume only when it's on a line alone, which seems OK as you probably won't write a paragraph that contains only ```

- then we learn we also need to escape * (e.g. to write 2*2=4), anywhere in the text, but I guess not inside ``` block, so we now need context instead of "find and replace". The escaping mechanism is not mentioned, but hopefully the world has settled on \*, except for dokuwiki which uses %% or whatever

- and you need to escape [ and ] (everywhere or only inside link?)

- How do you do a link or emphasis inside ```? In some MD flavors, it's outright impossible. (e.g. I need to emphasize something in a pasted code, or I'd like to make a function call clickable as "go to definition/documentation"). In HTML you can use most tags, such as <strong> and <a>, inside <pre>
Because cryptocurrencies investors gamble even their mother's Starbucks rewards points
Would this work for calculating the odds of startup success?

Runway of 500k, a 5% chance, 100:1 odds, so don't bet more than ~$22k on each bet/pivot.
> Resolved an issue regarding the microphone light indicator being triggered when not in a meeting on macOS Monterrey

Haha, a problem with the light staying lit, not with the mic staying on. Riiiiiiggggght.
Huh? Cloudflare Access supports SSH. My windows ssh prompts me for my SSH keypair's password, so I assume my server is checking my keypair.
I can add to the list, once made the terrible mistake of thinking of it was a good idea to take DOB:

https://psychonautwiki.org/wiki/DOB

24 hour nightmare trip, felt like I'd been awake being haunted for weeks.
People were leaving right after bonuses years ago. Think about it. First, it's a huge company, so there are going to be a decent number of people who want to leave at any given time. And unless you're utterly miserable, it's pretty foolish to leave right before you get a big bonus. Just wait it out and then go. It's possible there's an uptick lately, but this is far from a new phenomenon.
Excuse me, but if you can't come up with anything to do with yourself after suffering and despair are gone from the world, that's your failure of imagination. I'm pretty sure that if really placed into such a situation, you will find a way to cope, just like the rest of us.
its really up to you in terms of what looks good in tradeoff for space and speed of encoding. zencoder had some settings that made its way to HN in a blog post not too long ago. theres also some settings on iocannon posts. just dig around, and they'll come up. i forget the exact formula that i use. i use presets where possible.
Yeah. I'm much more interesting in seeing the actual, physical products that will run it. Will there be 20 different netbook models? Or none? Will they all be tablets? How big will the screens be? How fast are the processors?

How cheap? How user friendly will the whole experience be?

These questions can't be answered by screenshots or downloading a build. We just have to wait for official words from Google / the manufacturers.
This is a novelette, not a movie: The Djinn's Wife, by Ian McDonald. Hard AIs, cybernetic brain interfacing, AI diplomats, AI negociators, AI cyber- and real war, a trans-human love story, it's incredible. Setting is "near future India".

You can read a preview at Asimov's site:
http://www.asimovs.com/_issue_0607/Djinn.shtml

Asimov's used to publish it in its entirety online, I guess that was for promotional purposes.
A journey of a thousand miles begins with one step. In my anecdotal experience, the (wonderfully expressive!) word "hacker" has lost some of its stigma. Three years ago, if I casually said "I've been hacking all day" while speaking to normals, I'd get a strange look. Today, people seem far more likely to understand.
"If I remember correctly Hulu ads are more annoying and frequent than TV ads "

Yeah, not really. Hulu has the ad breaks at the same point in the show, but only shows 30-60 second commercials in them, vs 2-4 minutes for a TV ad. Like an average sitcom is 22 minutes, leaving 8 minutes for ads. The ads can be more annoying, but not because they are interactive, but because the ad inventory is limited compared to broadcast TV so you see the same ads more frequently.
At that price you could buy a TV series DVD set each month and have many hours of ad-free viewing.

And then have it to re-watch sometime in the future.

Here's hoping netflix doesn't start to think ads are good idea.
Don't know Wanted, but Spirited Away is totally amazing.
Same situation here. I've emailed them several times about it with no success. Hoping this pans out.
How did this have zero comments?

Huge milestone for the rust ecosystem and can’t wait to see benchmarks!
Software costs ~0 to copy and distribute absolutely perfect copies, world-wide. To drive the price up you create artificial scarcity, mostly rooted in IP law.

Important note for HN readers: 'driving the price up' is a net benefit for programmers. Artificial scarcity is why you get paid big bucks.

Interestingly, data is legitimately scarce. But that's a discussion for another time...
I believe this project is now defunct, but the ideas remain

http://lighttable.com/
Yes, automated tests are almost debugging by a script.

If you've ever used GDB in command-line mode then it's evident to you that it's the same thing. You can write tests of any level.

With a bit less funky GDB it's completely viable to solve a hard task of writing unit tests for the old untestable code without refactoring for example.
It's a perk from building the internet. Early bird gets the worm etc
> (I once had to spend 6 months reverse engineering a video output because our customer refused to tell us what it was [...] so I then had to build a fucking circuit to decode it).

This sounds like fun, tbh. Maybe I just have a weird sense of fun.

> it's not going to be anything like a giant tech firm, where you don't realize they actually do 99% of the job for you

100% true. I've gained a huge appreciation of all of the things that a company does for its employees that they don't even realise is happening.
> Yes exactly you have to separate the abstract idea

That was thought around 1960. Lisp had m-expressions in books. The actual Lisp system used s-expressions. The next few decades were often spend trying to get rid of s-expressions on the surface. Most of these attempts failed. If they succeeded they were something different. Like ML. One can think of the early ML as a kind of typed Lisp with a different syntax.

What Lisp made attractive was the similarity between internal and external representation. The Lisp system was internally manipulating programs as s-expressions - that was easier to understand when the external representation is similar.

> The parentheses are irrelevant to the core ideas of lisp.

S-expressions are an actual core idea of Lisp, while you focus on a minor aspect of s-expressions-> that s-expressions use parentheses to denote cons cells and lists.

Since the Lisp uses a certain data representation internally, it is much easier to use a simple textual format for that data externally too - one which makes the mental transformation easy. Using a complex and unrelated syntax does not make that easier, it makes it actually harder.

> All the interesting macro expansion in lisp is performed after parsing, unlike in the C preprocessor, so you can write your programs using Egyptian hieroglyphics for all lisp cares.

Actually that's not true: that's one of the ideas of Lisp and large programming system have been built around this. A Lisp system will expose its inner working to the programmer. Live and interactive systems are not an exception, they are the default.
> In particular, developer culture is that developers don't pay for tools, especially not debuggers

I think there are a couple of reasons for this. One is that for many if not most developer tools, there are free options that are at least competitive with paid tools. Another is that developers can, at least in theory, read source code to better understand a tool they use, or even improve it, and therefore want access to the source code. Which means open source tools have an advantage over proprietary tools in addition to price.
That... is a religious position, rather than a scientific one. There's ample evidence of complexity emerging from simplicity without a governing intelligence.
Location: Tehran

Remote: Yes

Willing to relocate: Yes but not for now; maybe 6 months to 1 year from starting.

Technologies: Linux, Git, C++, PHP, NodeJS, MySQL, Redis, MongoDB, and Ruby.

Résumé/CV: http://www.linkedin.com/pub/hamidreza-davoodi/27/88/5b5

Email: hamidr.dev at gmail
GAN art is really a one trick pony.

I loved it at first and got quite into it but I have seen enough of these images now that the novelty has worn off and they are just kind of shit.

Physical painting inspired by GAN art might be cool but I don't have the talent for that. There is also something lost for sure when I know I could make a 100 of these album covers in maybe 20 minutes of tinkering around?
This is an article I remember on the subject from a few years ago.
http://jangosteve.com/post/380926251/no-one-knows-what-theyr...
Illicit drugs are the minority of overdoses[1], so I don't see how your logic follows. If anything, they might increase.

1. http://www.cdc.gov/homeandrecreationalsafety/overdose/facts....
Like I say, it is stable for what I am using it for just now.

I have started using REST framework for other parts of the project, and it seems a lot more consistent with Django's other components (serializers are similar to forms, APIViews are similar to the generic views). In the end that just makes things easier. Its less context switching essentially, which is really useful when I don't touch that part of the project for a few months, then need to update something.

Thanks for the offer though (and thanks for the framework, it has been useful). And unfortunately I don't have the time to help with maintenance.
This is amusingly interesting to me. I’d love to know more about your setup and the results make sense (I’ve considered installing a second dishwasher to be able to handle an entire days worth of dishes overnight) but it also seems somehow slightly dystopian.

I agree with the note later in the thread that the solution is powerwall like things for demand smoothing / moving.
I've bought a book from this person ("Data is beautiful"), and it's crap. If you go to the website home page, you'll see that the only thing that it does is use one (The author's?) library.
Most of this is correct, but thankfully, wind turbines do not appear to be frozen. In fact, current wind power to the grid is 4300MW. The predicted level is about 2450MW for right now. That’s difference amounts to the entire reserve power in their grid. You can see this on the ERCOT page (it’s a popup which is hard to link from mobile).
If wind wasn’t doing so well things would be even more painful.

Everything else you said appears to be spot on.
I just think that blocking is an important enough effect that that needs to be accounted for and it should be explicit in code. Deadlocking is the obvious reason, but also the possibly large pauses are problematic.

I'm a big believer in crash-only software and I think that "clanup" at shutdown is code smell and a symptom of unreliable software [1]. Just call _Exit when the application is done.

[1] Cleaning up to decrease the noise for the benefit of a leak detector is useful though, but by experience, I'm not yet convinced that the effort is worth it.
Texas fuels mix in 2019 was 20% coal, 47% natural gas. That's shocking, yes, but not green.

California's mix is 3% coal (2019 figures; in 2021 it is zero) and 34% natural gas, for comparison.
> When you should (and shouldn't) buy things

For me, any non-trivial purchase I put on a list. If I'm still thinking about buying it a week or two later then I'll buy it. This not only saves money but saves clutter as well.
Reddit would be happy to ensure it is compliant with SEC regulations, by banning the subreddit if necessary. Since WSB mods don’t want that, they take steps to ensure their subreddit is compliant, and doesn’t pose a legal risk to Reddit.
Reddit's approach to dealing with this is to ban the sub-reddit unless the sub-reddit sufficiently moderates itself. WSB moderators working so hard is what is preventing WSB from being banned.
Thanks, I think I did eventually figure that out via googling, but the documentation then said it would use "hard-coded public DNS servers", which didn't sound great.

And yeah, I think my bigger irk is that this seems to contradict the network settings in my DE's GUI, where I had explicitly tried setting the DNS lookup servers to 1.1.1.1 instead of using DHCP.
Because Reddit's answer would be to simply ban the entire community. There's not much choice on the mods' side.

Yes, Reddit would have other options of course. But they all cost money, so they wouldn't do it. Spez would just nuke WSB and move on with his day, secure in the belief that he saved Reddit from an SEC fine or whatever.
There is no way to list every single song by an artist. What the fuck Spotify, indeed.
I think it’s ended up with a quadratic algorithm for diffing sequences and a quadratic log algorithm for diffing dictionaries.

To understand why the sequences problem is quadratic, consider a sequence A of length m being doffed with a sequence B of length n. We want to express our diff in the minimum number of operations where an operation is removing, adding, or editing an element in the sequence. Construct a graph as follows: the nodes will be the points on an mxn lattice corresponding to points in the two sequences. An edge going right means “delete this item from sequence A,” and costs (eg 1). An edge going down means “add this item from sequence B” and has a similar cost. An edge going diagonally down and right means to edit the item in A into the item in B and it’s cost depends on how different they are. The problem is to find the shortest path from the top left to the bottom right.

If you could compute the entire graph for free and then applied something like Dijkstra’s algorithm you would be worst-case quadratic (if all the diagonal costs were 2 or more, you would need to touch every node).

There are a few ways you could try to improve this:

1. Look for easy opportunities to optimise. Eg you could have a patience style strategy of cutting off any common prefix or suffix. This won’t help in the worst case.

2. Limit to a fixed width diagonal. This might mean worse diffs but means the graph search problem becomes more linear. I suspect something is going on with the diagonal based on the description

3. Somehow develop some good heuristics and use a better search algorithm like A*. This might not help in the worst case

4. Something else.
Out of interest regarding the podcast advertising - how much does that sort of thing cost? Obviously there's going to be differences based on the podcast, listeners, etc but as an vague number were you looking at $hundreds, $thousands?
>> You really want to go back to the days before evidence based medicine? Really?

No, quite the opposite. But I also want people to stop rejecting things due to lack of evidence. If individuals or groups of people claim a benefit from something, why should that be rejected without proper investigation?

I stand by my claim that Iodine and Magnesium cured my asthma and I have test data to back it up. Will it work for you? I dunno. But your doctor is unlikely to recommend it and no company is going to do clinical trials.
very insightful, I wish I could spot these arguments myself more easily, but most of the time they escape me.
They can be found here: https://support.google.com/groups/answer/6003482
FYI: from Feb 15 1999
tl;dr: Trying to make geology into a movement for social justice, by defining geologic periods for geopolitical events.
Linus' comment was tongue-in-cheek, though.
I don't see a change? Can you post the change ?
The Go authors have a really nice slide they like to show that shows the interest in Go as a trend. And right after they announced Go 1.0 with the backwards-stability promise, the interest sky-rocketed.

You can't have a perfect language. Ever. But if you want people to use the damn thing to build actual software, you have to stabilize eventually. C/C++ aren't perfect either - even the most hard-core C++ fan will admit to that - but they get shit done.

Go gets shit done. Sometimes in an ugly way. Rust could get things done in a beautiful way, if they just....stabilized it. Just stop changing it.
GMail still doesn't index attachments though... It's a pity.
An auto-response confirmation would make posterous suck.
From http://www.google.com/support/news_pub/bin/answer.py?answer=...

this rule is waived with News sitemaps.
So you want bookmark sync integrated into the browser, but you don't want the bookmarks stored anywhere where google can get at them.

How could google put your bookmarks somewhere that they don't have access to?
Guide to create General AI:

1. Figure out what the brain does chemically to create thought.

2. Replicate that function electronically.

Responses to his objections about complexity greater than ourselves:
If we can't create something smarter than ourselves, then how did amoeba do it? If you can figure out step #1 then you can also diff a smart brain vs a dumb one. Take whatever makes a brain smarter and double it in step #2.

IMHO hardware's not the problem. It's reverse engineering the software our brains use. I expect when we figure this out, we'll be suprised how simple we really are.
Looks like user nuclear_eclipse just snagged PlanetHN.com and has it pointing toward a Linode VM. Hoping something awesome comes of this... :)
I just asked Matt Cutts about this and he says nofollow links don't do spammers any good at all.
Downmodders are presumably missing the references to the movie "Stripes."
Well, nine or ten years after the 90s, anyway, haha.
Well, in the extreme you can gut your phone to make it pretend to run Win 95. But that isn't really what I'm talking about, my point is the idea that there's been no work done on UI recently seems plainly inaccurate to me. The last 10 or so years of UI have seen more drastic and widely adopted changes in modes of interaction than the decade between the original Mac and Win 95.
Meanwhile on AWS I was using SimpleDB until recently on a small project - I make AWS NO money - but they seem to still support SimpleDB even though it is not actually marketed? It's 12 years old and can't be generating a lot of new signups because it doesn't actually show up anywhere I don't think.

Does anyone know how AWS handles depreciating items on AWS. I've yet to be bitten despite beng a long time user (S3 still going / Simple DB was going last time I needed it etc).