skysight-inc/HackerNews huggingface dataset:
The space of the solutions is n^3, since you have up to n items and each of them has n^2 possibilities. An O(n^2) solution only looks at each possible item in the output a constant number of times.

To prove that it's optimal you "only" need to construct the pathological case, which I believe should not be hard to do by induction.

I think that pathological case could simply be that the input string is abcdefghij... and the dictionary contains all one-letter strings, plus all strings like ac, abd, abce, ..., bd, bce, bcdf ... and so on.

The base induction case would be xyz as the input and {x,y,z,xz} as the dictionary.
Yes. It was an Anglo-Indian Christian school maybe thats why. None of my peers from other schools remember having it.
> UK and Commonwealth professor was reserved for the most senior rung of academics, with associate professor for those part-way there.

This is the same in the US. Tenure-track starts with assistant professor. Associate professor is when you first get tenure. Finally after having tenure for 5-7 years you can become full professor.
> OTOH re the concern for O(n^2) time when n is bounded by word lengths, and when the inner loop was in already-optimized string comparisons in your language's hashtable library -- I think that part is very artificial.

Yes! The candidate already optimized for the important thing (which the author forgot about and added in a footnote), which is that the list of words could be very long, and that the words in an English dictionary are relatively short.

Optimising for the important factors based on an assessment of the problem domain is actually a more important skill than regurgitating the best algorithm from the book. If the author wanted to suggest a solution suitable for very long needles, he should have used a different domain like, say, gene sequencing.
But while Starlark tries to mimic Python (while not allowing lots of useful stuff like f-strings) joblib _is_ Python and you can make use of the eco-system around Python.
Incidentally, Lego and Duplo are compatible!

So eventually you can use the Duplo blocks as large building blocks under more intricate Lego designs.
Heyy, just released v0.2.0! It works for linux now!
The best managers I've worked with don't do much of that stuff. They do use the cliches and obfuscation, but only upwards. They talk to the team in the team's language. As for the crap coming down from the leaders, if anything, the best quality in a manager is understanding what is crap and what's actually useful, and deflecting the crap stuff before it gets anywhere.
Monetising hacking by shorting commodity shipments
> I hate this industry so much.

and you suggest providing free labour for an entire year to some companies. No wonder GP hates this industry.

>For the next year try contributing to open source projects that you like and that have companies behind them.
> but isn't the benefit BTC is supposed to offer the infrastructure itself?

My point is that the "infrastructure" is nice, but it's not the sole advantage of Bitcoin. The primary benefit, in my opinion, lies in its predictable and unalterable supply mechanism, which prevents any entity from manipulating it. While the on-chain payment system and the relative ease of self-custody are great features (and necessary for the system to work), they are not essential for enjoying the benefits of Bitcoin as a currency with an immutable supply. You can still reap those benefits when using "off chain" payment systems that use BTC balances (e.g. credit cards/PayPal/Cash App/etc.). Also, Bitcoin has an open API, making it easy to create payment systems on top of it (the equivalent for USD would be... obtaining an account at the Federal Reserve? transporting cash?).

Hope it makes sense, let me know if anything is still unclear.
Ask it to make a pull request to add that feature to cargo :)
[dupe] GPT-4 gets a B on my quantum computing final exam
I’m not dismissing them. I didn’t know who they are. I simply stated that the article is trying to make a claim about seasonal effects by pointing two just two years of data. Which is dumb. Doesn’t matter who does it.

I disagree with the rigor of the analysis. I don’t have any strong opinions on the takeaways.
Andreessen Horowitz report on the “State of Crypto 2023“ [pdf]
Not to be confused with Taxidermy, the art of stuffing vehicles in lifelike poses.
As someone not from the US, it's a bit amusing to see Americans cry about something they do on a daily basis, scrambling to find some excuse as to why it's okay when they do it but not okay when others do it. Their biggest fear is literally that China would do what they are already doing.

Bonus points for mentioning human rights or something as if the US were a country that could lecture others on human rights. The hypocrisy is stunning.
Why does it matter if it's physical or mental? People regret all those surgeries at a much, much higher rate. Incredibly few trans people do, and those that transition are much less likely to commit suicide.

But I somehow get the feeling that's not a good thing for everyone.
It's also worth noting that io_uring has had at most 10-15 engineer-years worth of performance tuning vs. the many (?) hundreds of years that epoll has received. I work with Jens, Pavel, and others and can confidently say that low-queue-depth perf parity with epoll is an important goal to the effort

As an aside, it's great to see high praise from an spdk maintainer. One of the big reasons for doing io_uring in the first place was that it was impossible to compete in terms of performance with total bypass unless you changed the syscall approach.
"Copy answer" does not copy the citations.
> You have to own the company’s message to your reports (and others) even if you disagree with it or don’t know how it came to be.

Why?
You hit the nail on its head. Deprecate Groovy and allocate all resources to make Kotlin more viable.
Only if they actually know how to code, since if they do not then there is no point at which it is faster for them to do it.

That's where I am struggling to reconcile the new roles AI enables. Do we still need to be software experts? If so, usually I already know what to write, so why bother having an intermediate step. I never think to myself, I should delegate this task I am half way through to a junior. That's harder than just finishing it.
Argument about toothpaste on a public forum is not about toothpaste. Positive result of such argument is not one person buying less toothpaste but many more becoming aware about wastefulness and how mindless consumption and buying stuff in environmentally harmful packaging and not using it all (and therefore making yourself buy more) causes a lot of harm when everyone does it etc.

Besides, you are using the term "trace amounts" wrong. The amounts people routinely leave are enough for at least a week of toothbrushing.
i learned mediation and duplation (which doesn't involve multiplying by the base of your numeral system!) from a book as a kid (a compendium of knowledge for kids from the 01950s that my grandparents had) but have seen people talk about it several times since then

you can get pretty fast at it but you have to do 6.64 halving and n-digit doubling operations per digit of the multiplier, plus about 1.66 n-digit additions, so in my experience it's still slower than computing partial products with a memorized base-10 multiplication table, which requires adding together n recalled multiplication-table entries to get a partial product per digit of the multiplier, and then adding these partial products together

just not as much slower as you'd naively expect

i derived a shitty version of quarter-square multiplication on my own about 20 or 25 years ago and much later learned about the streamlined version from wikipedia

i like rpn but i don't think i used it here?
Yes, I do, albeit I fail to find why this is a prerequisite for renewables to provide most of consumed electricity. The referenced study analyzes continental-scale.

However some existing links are encouraging: https://en.wikipedia.org/wiki/NorNed

Projects:
https://en.wikipedia.org/wiki/Submarine_power_cable#Proposed...

The underlying approach is not new and is rather rather quickly adopted and improved:
https://en.wikipedia.org/wiki/List_of_HVDC_projects
I get the point you’re trying to convey but - at least in the US - you’re legally required to make donations to political candidates publicly anyway, so this isn’t really a regression over the status quo.
Does invoicing actually take more time per month than writing?

I'm not saying invoicing is easier than writing, what matters here is the human time it takes.

If the time you spend writing is reduced by 90%, then you'll have more time to take other jobs. But there's always a balance that needs to be reached.
The graph very strongly suggests that GDP growth in Germany has stagnated while it's still growing in the US. But I don't buy that. Living conditions for most people in the US have stagnated - if not deteriorated - in recent years.
We express our deepest gratitude for sharing your thoughts with us. We are indeed considering targeting medical students as our initial focus, given the prevalent use of flashcard-related tools within that community. Your input is truly appreciated, and we are grateful for your valuable contribution. Thank you once again.
This very thing happened to me recently in an interview. This was my first interview after not having actively interviewed for a few years now, so I was quite rusty. I was asked what some issues were that I worked on at an initial phase of the project and I blanked the fuck out and then instantly went into self-scrutiny and sweating as I spiralled into "oh crap I should really know this" and "this is making me look stupid" and wondering how I was coming across to the interviewer. I have some anxiety problems, that's there too - but point is that if you're not really prepared with answers to questions like these, it can seriously throw you off mid-interview.
In my case? Yes and no.

Professionally? No. Almost everything I use in my jobs I learned myself. In fact I unlearned some bad habits, especially when organizing code, I developed at University, as they were negatively impacting my performance.

Personally? Yes, absolutely. But not because of the lessons in CS, but those in natural sciences. Understanding how some systems in physics and biology work, changed the way I look at world in general, and made many things more fascinating than they would otherwise be.

However, you don't need a University for that. Everyone willing to learn can grab an introductory book on cell biology and start reading.
I think parent's point is not cultural as you are implying but rather practical. Learning in a base that nobody uses could be easier today and an hindrance later.

I think, all in all, this should not be a big deal. For the gifted kid, they'll find a way to adapt and become the next Einstein. As for the ungifted, it might give them a better leg up and allow them to perform better than they would have, so it's probably a plus anyways.
Has anyone built a js version of this?
I think the lookup would involve a string comparison if the hash matches, and that is also O(n). You should be able to construct a pathological example that ends up quadratic.
Btw it does some weird escaping for JavaScript string literals, also the regex was wrong:

const htmlString = '<img src="image1.jpg" alt="Image 1"><img src="image2.jpg">';
const regex = /<img\s[^>]*?src\s*=\s*['"]([^'"]+?)['"][^>]*?(?:alt\s*=\s*['"]([^'"]*?)['"])?[^>]*?>/gi;

let match;
while ((match = regex.exec(htmlString)) !== null) {
const src = match[1];
const alt = match[2] || null;
console.log(`src: \${src}, alt: \${alt}`);
}
But... you're moderating after the discussions have happened. You can moderate on the outcome by the point that you flagged my comment. And the outcome is not actually a flamewar. Also, that's why there are humans moderating, not bots, if you wanted to moderate based on a formula, you could just have a bot do this.
Yeah, which is why the young ones are more stressed and depressed then ever.
This is what GPT-4 answered:

Since both men always tell the truth, you can simply ask either of them, "Which path leads to safety?" They will both give you the same truthful answer, and you can confidently take the safe path
This is generally very context/use case specific. In general, if a document is a `Dict[str, Any]`, then you either have to have one (or multiple) vector(s) per field, unless you want to combine vectors across fields (it's not self-evident how you'd best do that). In saying that, specific reason's to do this (or why I've done it in the past).

1. Chunking long text fields in documents so as to get a better semantic vector for them (also you can only fit so much into an LLM).
2. Differently to 1. chunking long text fields (or even chunking images, audio, etc), is one way to perform highlighting. It helps to answer the question, for example, for a given document what about it was the reason it was returned? You can then point to the area in the image/text/audio that was most relevant.
3. You may want to run different LLMs on different fields (perhaps a separate multi-modal LLM vs a standard text LLM), or like another comment said have different transforms/representations of the same field.

Perhaps 100 vectors is non-standard, but definitely not unseen.
Alternatively, 3d print your own. The online selection is incredible: bridge adapters, track switch levers, and connectors between non-Brio tracks as well.

(I realized how widespread these parts are online after my toddlers got a Duplo-Brio gift that was purchased from an online shop but was obviously printed.)
That sounds like the end of basically all clerical/office work.
Looking up the function at runtime all the time, was at the time of the design of these Lisp systems exactly the thing which one wanted to avoid. Macros were designed such that a compiled application does no additional macro expansions at runtime or need to resolve functions. A compiled application could also be one which did not include a development environment and/or was compiled to static code. Computers were slow and the applications were ambitious, the competition was using C/C++. Such a graphics example would have been written in the context of a CAD system or a graphics design software. There was little need to lookup the mostly same functions all the time, but more need to have very fast code.
> eBPF runs code at the highest privilege level by actually extending the kernel

Yeah this was my thought when reading the above argument too.

Maybe they're thinking that in future, more and more kernel functionality will be moved to eBPF programs, and eBPF has a restricted execution environment? I can follow both lines of logic.
Yeah, the image is a reasonable choice, but the lack of alt text (beyond “generated og image”), considering that you have the text already, is a shame.
It's not intended to leave it having the exact same meaning.
"Tolling" is a controversial theory from 17th century English common law when rebels fled to France or the colonies.

It will be very much tested this year when Trump is prosecuted under the theory that being in Washington DC counts as "out of the country" or "outside the jurisdiction of the city of New York" and therefore the statute of limitations has not run out.
> The biggest thing most managers give up is their mind.

The biggest thing they give up is having to do leetcode interviews.
And so the software that wants faster IO and is prepared to make trade offs should just do what, ignore any potential advantages?
>Just keep stacking it in a savings account and collect the interest. If you wanted to take some risk you could also invest some of it in index funds.

A friend of mine is addressing a similar situation right now. After her mother passed away (nearly 20 years ago) and left no will, her primary bank account was still active and the Social Security Administration[0] kept sending her checks every month.

She was notified a few weeks ago of the existence of this account (which now has several hundred thousand dollars in it). Since Social Security benefits (except in specific circumstances[1]) are not collectible by surviving relatives, the moneys paid into that account since her mother's death are not hers (she and her siblings are the only surviving next-of-kin). Rather those funds are the property of the US Government.

In such a circumstance, the funds deposited, as well as any interest on those funds belong to the government.

Transferring those funds or spending any of the interest is a crime.

As such, if you find yourself in a similar situation, I'd think twice before doing something like that.

[0] https://www.ssa.gov/

[1] https://www.cnbc.com/2021/08/16/heres-what-happens-to-social...
Actually, searches and SO questions would correlate with languages that are harder/less intuitive, rather than necessarily popular. It's like Distrowatch with Linux, which favours "flavour of the day" distributions people are looking for, rather than the well-established ones that actually dominate deployments - because nobody needs to search for those.

Developer surveys are good but they typically self-select by audience. JetBrains surveys will over-represent core JB audiences (e.g. Java developers), SO other constituencies (newbies, MS...), etc etc.
Wow, I didn't know that container tabs exists. I always used private windows to use multiple identities.
Thanks! That is quite the improvement...
Good to see Nim doing well.
There are several differences between LLMs and encyclopedias
- LLMs don't need specific text about specific events in Chinese. They can be trained in text in English and produce answers in Chinese via translation.
- LLMs probably need much more text to corrupt their veracity -- yet to be tested properly
- LLMs are more obfuscated in their purpose. If I'm sharing a text about a specific event then that is pretty damning, but if an LLM can answer questions about an event then you can't prove that was why I was sharing it. In fact it would be pretty hard to exclude information about specific events from an LLM
Probably. HTTP/3 uses QUIC over UDP by default, to bypass some of TCP's flaws. It doesn't use TCP except as a fallback.
Lol, your comment resonates deeply with me.

We've had RabbitMQ as part of our stack at my day job since time began, I think it's great software overall but boy are the client libraries a challenge.

We've built a generalised abstraction around first Pika and then pyamqp (because Pika had some odd issues, I forget the details of which) and while pyamqp seems better, it's still not without its odd warts.

We ended up needing to develop a watchdog to wrap invocation of amqp.Connection.drain_events(timeout: int) because despite using the timeout, that call would very occasionally inexplicably block forever (with the only way to break it free being to call amqp.Connector.collect()).

My other data point was a time I built something to slice off a copy of production data for testing purposes (from instances of the system above) using Benthos (pretty cool software tbh, Go underneath), but it would inexplicably just stop consuming messages and I had no idea why (so I just went back to our gross but proven Python abstraction to achieve the same).
There are also some probabilistic solutions. For an English dictionary, the space of trigraphs is only about 30% populated. So, whenever you see a trigraph that's not in the set of all known English trigraphs, there must be a word break at one of two points in the trigraph. This gives you an entry point for breaking the problem into smaller subproblems. Those can even be run in parallel.
For long texts, this is a huge win.
Yeah... he says you can learn the language in an afternoon, but his book is so long-winded... I just want a short intro so that I can start writing programs.
Alphafold uses something they call Evoformer, it is an attention mechanism. Our group has tried, and so far failed to utilize transformers for a very very specific search problem in geometry (https://bit.ly/unit-distances).
I think the IEEE document covers quite a bit of your questions/comments.

My neighborhood is barely 25 years old. Meaning, it was dirt when I bought my house and watched as they built it.

Still, the grid wasn't ready. The house was not ready.

When I put in our 13 kW solar array we had to rip out the original breaker panel and replace it with one of higher capacity. Not because of the size of the array (which is larger than pretty much all installations around me by at least a factor of 2). No, it was simply because, 25 years ago, when plans were drawn for this entire development, the Building Department did not have any requirements on the books for the future addition of solar. The meter had to be replaced as well.

Just to make sure it is clear. What this mean was tearing-up the stucco all around the existing panel, making a larger hole, rewiring the new panel and meter and redoing the stucco. Of course, stucco is basically concrete, which means that side of the house lost its color, which required repainting the entire exterior of the house because the faded stucco color was not going to be easy to match at all. I don't remember the cost of that part of the job. I was not allowed to do it myself (I did the rest of the solar installation). I think it was in the order of $20K, maybe more.

I don't know what code might look like today for new developments. I would hope they include planning for solar, which should include power distribution, transformers, meters, breaker panel and other requirements.

Regarding battery issues in V2G applications, well, the IEEE document covers them well. It boils down to faster degradation due to lots more cycling, warranty issues (the EV manufacturer covers miles driven, not V2G cycling), etc.

On the subject of paying for the power you contribute. Well, we'll have to wait and see. I have no clue how they might plan to manage this. If I am going to use an EV for V2G, the utility better pay me a lot more than what it will cost to replace the battery pack. Which means that the users of my power will likely have to pay quite a bit more per kWh than today.

I generate a lot of excess energy. The way they pay you back for excess solar today is absolutely laughable. In fact, the fear now is that homeowners will have no incentive to install solar because what is known as "NEM 3.0" metering, well, basically screws them even worse than those of us who already have solar.

Here are the basics:

https://www.solar.com/learn/nem-3-0-proposal-and-impacts-for...
The chance of somebody storing my WireGuard traffic from a local public hotspot to be able to hopefully decode it at some point in the future is far less than someone sniffing dns and http traffic I send from the same hotspot today.

The value of breaking my communication now compared with in 10 years time is far higher too. My bank will have destroyed the records of my dealings in a decades time for example.

Bitcoin’s ledger is specifically designed to be kept forever though. You don’t need to target me today in the how if future payoff
I’d rather be seriously injured than killed, yes. I think most people would pick the same.

If you observe the rush hour traffic for an hour, how many of those people have broken legs, severe disabilities or a debilitating case of elderly? The majority of people are not disabled, and the fact some people might need cars is no excuse for everyone driving a massive SUV
The relative performance difference of no-op queries (RTT) is unlikely to have a high impact on application performance since they're so quick in absolute terms.
Yes, around 30 Euro per month. Now add the hardware costs.. And the internet connection costs (partly).. Anti-theft options.. In my opinion it is cheaper and more reliable to rent another dedicated server at another hoster for this. If you are sitting in Germany.
Sure but then why do people do leetcode hards coding brain teasers? This is like asking a journalist to write a sentence that is reversible when you just want to know he speaks English.
This sounds cool! I would be happy to read a blog post about it if you ever write one.