skysight-inc/HackerNews huggingface dataset:
Nobody is claiming you can't come up with some way to limit the cache size if you wanted to. What I'm saying is (a) you usually need to have the user do something about the cache (most people want to just set @memoize and forget about cache invalidation), and (b) the cache policy (and note this isn't necessarily just about the size of the cache, but about which entries are evicted) is frequently problem-dependent, and a general-purpose one may not end up being all that useful. I can say from personal experience that, while I cache stuff all the time, the number of times I recall seeing @functools.memoize (or the equivalent in any language) used in any real-world code (i.e. not classroom exercises) is exactly zero, whether in my own code or that of anyone else—despite the fact that caching is incredibly common. Just look at common Python libraries (even the standard library itself) and count how many times they use @memoize anywhere. It will be minuscule if not exactly zero. And the fact that it is not widespread is not due to lack of knowledge of the technique.

Notice this is the same reason why you don't see a general-purpose "tree" or "graph" class in many languages' standard libraries [1]: you certainly can make one, but design has strong dependence on the actual problem you're solving, and it's hard to come up with a general-purpose one that's handy and useful. Of course, some people try anyway, and it occasionally gets used, but nowhere remotely as often as people need trees or graphs. Same thing here.

[1] https://stackoverflow.com/a/2982420
> I think if you have the luxury of assuming every token is a dictionary word, you can do much better by simply encoding each word as its index in the dictionary.

Then you have to store the dictionary.
Aliexpress seems to have sensors at ~30 GBP, but still a little high for something not super useful
What's even nuttier is that them invading something with a 3000 year history would be a little like us stumbling over ancient Rome today it having been a thing for that long.

On the other hand, one could argue the cultures around the North Atlantic are close enough to Roman culture and jurisprudence that we are to ancient Rome what later Babylon was to earlier Babylon?
You also need invalidation policies if the number of items you cache might end up too large in practice. That has nothing to do with referential transparency.
That is a wrong view of Christianity (one of the most important things a Christian needs to do is self-examination).

Or do you mean pride?

One cannot be charitable if one does not know his or her own defects and virtues. And this is a lifelong exercise.
So you say!

Meanwhile, nitinol actually works via a quantum property, and is sucking energy out of a sister universe.

You don't care because cheap and free, but they do! Doubly so because it sucks power at the easiest parallel source, which are (in their universe) simple copper wire.

Worse, the power stolen is 1000x of times that received, meaning they have been having significant power losses on long power runs.

This means that they have to setup more local generating power, as long power transfer from hydro dams, and clean central sources won't work.

More coal, natural gas, thanks to you! And global warming is far more advanced there.

But you don't care, eh?

When will people learn.
ReasonML looks interesting but how do you go about debugging it even with sourcemaps? Its types don't even have the same paradigms.

The article was using strawman comparisons in some places. The getPhone example should have used optional chaining:

const getPhone = (form: Form) : number | undefined => form?.user?.phone
Doing so efficiently is the challenge. Thermoelectric generators have very low efficiency of 5-8%. They don't extract a meaningful amount of extra energy.
Isn’t coping associated with denial? An IMO better term is acceptance (of things that are outside one’s control).
I live in an area where strawberries are grown commercially. Strawberries are sold at local farmers markets which were picked earlier that day. I have learned that strawberries are much better if eaten the same day that they are picked. I thought that I didn't like strawberries because the ones you get at the grocery store have a bit of a rotten fruit flavor. The fresh berries do not. Even day old strawberries have a noticeable rotten fruit flavor.

Even if you have lower standards, strawberries rot quickly. Even refrigerated, they don't last more than a week or so.
I don't build em but I have 6 mech keyboard so far. Just been trying different switches over time per model.

65% gang
https://en.wikipedia.org/wiki/Hamming_weight

I guess it's included as an easy way to access the fast hardware supported implementation, on architectures where it is available.
> there is a solution in extensible transport with distributed propulsion. The technology is ready. It has the potential to solve all of the author's stated issues, and if done correctly, will alleviate the 2% of global greenhouse gas emissions in the shipping industry.

trains?
And then we get to what I was trying to state in my original post.

I don't have a strong opinion that it's good or bad practice, I just thought it was a clever thing to do about it.

Edit: I think I was thinking of https://news.ycombinator.com/item?id=17636032 / https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b.... Wow, it's been a while.
Definitely looks and sounds like a 60/70s ABC (Australian Broadcasting corporation) science segment. Wonder if they still have something similar
It is structurally more like a ponzi than a pyramid.

By large crypto has no MLM style referral system where the product is the business opportunity to sell the product.

However it does have a feature where crypto gains are only funded by newer people coming in and buying at a higher price. But no cashflows are produced other than selling the investment tokens. This is almost identical to a ponzi except it has decentralisation that makes it probably legally not a ponzi.

Imagine I did an IPO of a company I incorporated last night but hid behind a panama shell. That’s crypto.
I'm not sure I'm interpreting you correctly, but if you're claiming what I'm talking about is just theoretical, real life communities have existed throughout the entirety of our species.

That doesn't mean there isn't a place for companion AIs, I just think it's horrible to consider them as anything other than a narcotic. They might work as a replacement for companionship in tragic situations where there are no other options, but there are 7 billion people on the planet. I don't see how it's impractical to encourage people to hang out with each other.
If you are using integers to represent subsets then int.bit_count is the number of elements of the set. There is a machine instruction to count the number of ones in the binary representation, maybe popcnt is the name, I am not sure.

Edited, more info: AMD's Barcelona architecture introduced the advanced bit manipulation (ABM) ISA introducing the POPCNT instruction as part of the SSE4a extensions in 2007.
Intel Core processors introduced a POPCNT instruction with the SSE4.2 instruction set extension, first available in a Nehalem-based Core i7 processor, released in November 2008.

https://www.rosettacode.org/wiki/Population_count
Sometimes if I'm buying some stuff from Amazon I'll do a ton of research on each one, looking for alternatives, specs, discussions, reviews, etc. Each search can sometimes go up to 40-50 tabs, especially if I'm looking for a specific set of attributes in a product and I just can't find the perfect match. I'll do the searches in parallel and switch between them, so I'll keep everything open since closing and re-opening 50 tabs whenever I want to revisit a session is tedious. Getting to 200 tabs is pretty normal in these situations.
Have you tried it? Perhaps rent a big house together for two weeks. I remember roomates and it wasn’t great

A pedestrian neighborhood in a city can have a real sense of community. You get to know the shopkeepers, restaurants, neighbors. You might try that for contrast. More durable, less risky, hundreds to choose from. You can even invite your friends to move there
Mainly I agree, but after millions of hands, I can still be interested in how my sessions go. It's actually something I consider a leak of mine, I'm overly concerned with having profitable sessions. I do accomplish that, but I think at the cost of a lower hourly.

I never did read Sklansky, even though I read nearly every other author on the topic. I recently started collecting gambling books. I prefer "stories" books, but I like poker strat books, too. Some of them from the early 2000s are hilariously bad nowadays.
>And I cannot use this public transport offer. But I am contributing to it with my taxes.

Not all government subsidies, benefits, etc are supposed to help everybody equally, this should not be a hard concept to grasp and yet comments like yours are so common that it makes me think that people don't really understand how taxes and government spending works.
Sometimes you might use bits in an integer to encode data, e.g.;

- A bitset index

- Bitflags (e.g. to represent logging levels)

- Feature flags

`bit_count` (aka `popcount`) gives you an efficient way to figure out how many bits within those structures are set and not set.
I feel like any pleb can be trained to do my job. What's difficult to train and find is a problem solving mentality, a let me try first before asking approach.

most common day to day tasks have solutions or best practices. So you're looking for someone with the the foundation skillset and right mentality to do the job.

I think leetcode is comes from the ivy league elitism culture of faang. also a lot of nerds are deeply insecure and like to show what they know or tell others what they don't know smugly. just look at the "show hn" posts and the type of comments your get there eviscerating some noobs hobby project.
This whole debate is semantics and pedantics about the word cause. The reality is that it doesn't make sense to reduce history to a single factor.

The south wanted to secede because the union was threatening their economic interests which relied on slavery. The union did not want the south to secede for their own reasons, of which slavery was not the foremost.

You can not remove any part of that explanation and still describe the "cause" of the war.

The war would not have happened if slaves didn't have economic value. The war would not have happened if the north was indifferent to the south leaving.

Trying to reduce things further than this is a fools errand.

Your linked document is a great example of this. It discusses a great many things. The first half is a history of grievances about states rights and failures of the union to uphold the constitution.

It starts to talk about slavery about half way through if you ctrl-f.

Anyone arguing for their singular preferred cause can find supporting evidence in it because the "cause" of the war was the interaction of multiple factors, so evidence exists for all of them.

The problem is that showing evidence that one factor was critical to the start of the war does not prove that other critical factors do not exist.
The Microsoft Archives
Moving your skills might not be a big deal. Moving an entire mature application might be.

Or it might not be. If it's just a simple loop, probably fine. If you have to move a custom assembly RTOS and an entire stack of business logic, maybe it's going to be very painful, project-risky and error-prone. Whereas if it was C, you just need to port drivers (which may already be provided by the manufacturer) and maybe do the RTOS port (if not already done). That could be days to weeks of work. A rewrite in a new assembly language could be months, at the end of which, to a customer, you have the exact same product you had before, except without a proven track record for any single byte of code.

Like everything, it depends on the project.

This year especially, it's going to be hard enough to stay alive by just shipping anything at all while competitors go to the wall under the double whammy of customer hesitancy and component shortages that can cut an established product of at the knees. And the last thing a company needs then is a long and expensive rewrite blocking shipping.

Not only that, if the chips you rewrote for end up on 100 week lead times (and thats not even the longest I've seen this month), you're completely dead in the water.
RTGs have other issues as well, they need to radiate all heat on the "cold" side into space, so you're between a rock (high hot-cold temperature difference needed) and a hard place (need high cold temperature to radiate) even before you get to thermo-electric generators being inefficient.
I am practicing quitting quite often, for exactly the same reason. But as I am employed as programmer, I cannot quit entirely. Instead, I look around what I can do: I help at support forum, checks other's guy issues and chime in with ideas how to solve or pointing them to the older related tickets.

This way I once happen to be employee of the month, even though I didn't write single line of code: suddenly I was so visible to everyone so they awarded me with their votes.
It's a trap for sure. I built two 45%s and one 120% in the past year or two. Already planning the next one...
He returned to Google which has a similar back to work policy as Apple (3 days per week in person/2 flexible).

It’s pretty clear IG is just returning to where he is most comfortable; he has spent most of his career with Google.

Tech reporting too often over states the importance of one individual, especially with Apple eg “jobs” “ive” “schiller” etc., but Apple is not a pristine white garage of 10 people tinkering in isolation. The narrative of over stating the importance of one departed individual is a journalism construct to support the oft retold click-bait of apple being forever a doomed company.
It’s time to bring back the Apple death knell counter, because a new generation of readers haven’t realised it this: Bad Apple news gets the clicks, and these people are suckers for constantly falling for it.
i see more upsides to multiple similar tools:

the ability to try different approaches to solve the same problem

avoiding lengthy arguments over how to implement a feature

the ability to take risks in the development

...

imagine we'd all be stuck with sendmail or perl.

of course when you get to the 10th video editor it starts getting ridiculous. there certainly are some areas where i wish some projects could join forces to create better results.
It's not unnecessary; poker is inextricably linked with gambling. You can't play poker if you aren't gambling, not truly. You can only play a shell of the game.
It may be only "little" not "liiiittle" :-), but Nim lets you explicitly bypass the effects system locally for cases like this:

{.cast(noSideEffect).}: echo "GOT TO THIS LOGIC with a=", a
Holy shit, you're right. It's about 33% faster on Python 3.10 on my machine:

import operator
n1 = operator.itemgetter('name')
n2 = lambda x: x['name']
x = {'name': 'abcdef'}
import timeit
print(timeit.timeit('n1(x)', globals=globals()))
print(timeit.timeit('n2(x)', globals=globals()))

I'm so surprised because I went and read (what I thought was) the source for operator.itemgetter, which boils down to a wrapper object around the plain version.

It turns out that this is not the source code. As with so many other things in Python, there's a special case you have to know about: there's a separate C implementation of the operator module. :-/
Anyone had any luck installing it? I'm getting a ton of errors at the penultimate step. This is on Windows. I've got other CUDA/PyTorch stuff working OK but it's always hit or miss.

Also - despite using a conda environment it also goes ahead and pip installs a bunch of stuff globally into site-packages. I've seen this behaviour a few times with ML stuff. Could anyone explain the reason for this? or is it just sloppiness?
They specifically mention “traffic marking latex paint suitable for asphalt”.
Is relatively trivial. Have done it countless times since the early '80's.

In fact I find that learning new high level packages much harder.
Sure. Shit happens.

With rail, as usual, it depends. Connecting between bigger cities is easier, some countries make things particularly difficult. Most of my train experiences are on metro or commuter rail, most of the longer trips I've done were direct. German (DB) stations were generally easy to navigate and staff were universally dour, but travel itself was relatively painless. Berlin (Mitte) to Amsterdam airport at night? No problem. UK? You learn to just lean back and think of England. The Tube is great and relatively easy to route around closures, GWR is an expensive fucking shit show.

I've spent more time flying than doing long-distance rail trips and yeah delays happen which is why I pick connecting cities carefully. I'd much rather be stranded in New York than Atlanta or Houston.

But cars bring all sorts of uncertainties too. Let's say it starts snowing and you don't have chains (oops) or the roads are closed. Yep you're gonna get stuck for a while.

This past Wednesday I went out to what I always thought of as a semi-remote beach (about 25 miles away from home) to catch the sunset. After that was said and done my car wouldn't start. If I walked a mile back to the beach in the dark I might've been able to find a spotty signal and text for help. I decided to sleep in the car, and when the sun came up I walked ~6 miles to the nearest state park and then another mile or so to the ranger station. About half way there I got a signal for long enough to get cat pictures someone texted me the night prior, but for some reason my carrier decided to block outbound messages "Unable to send message - Message Blocking is active." The park wasn't open so I wandered around until I found someone who offered to give me a ride into the nearest town with a tow truck. A few hours later I was in the tow truck, on a two lane road, on my way home and traffic in the other direction was at a standstill. Someone had run their car off the road and judging by the number of cars waiting they'd been waiting for a while. I took that in stride but that would've been hell with kids. If I didn't know that area was low crime I would've had to schlep all my stuff into town.
It is useless unless they also understand probability theory, laws of averages, tell me how good you are after 100k hands.

Chess gives you great feedback. You know why you lost. You learn a stack of new strategies to win.

Poker you might win a lot of hands due to luck. Luck of the hands. Not just your but your opponent having a good but worse hand than you.

Teaching poker is probably harder.
Asked and answered in an adjacent comment.
ArchLabs takes the cake hands down in my opinion
Yes thanks, wren is very nice too, though its at 0.4, I would like a 1.0, though I'm not sure how seriously to take the versions.
As a disclaimer, I’m very much in favor of international relationships in general but if you are trying to date someone because of economic prowess substituting for physical attraction then you are better suited to doing that in your own country.

Marriage is hard and throwing another culture values and the immigrant experience into the mix can often times make things more difficult.

As relationship advise, i say it’s less stigmatized (no accusations of sex tourism), and easier mentally (no spouse feels like they are the “other” living in a foreign culture) to date someone from a poorer economic background in your own nation. People from small towns have a lot in common with you, no language barriers, no immigration barriers, and should also be seen as a viable option.

Just my two cents…
It's worth noting that multiple outbreaks in several countries at the same time in gay communities without all of them attending the same parties should be such a rare occurrence other options should be considered.
I don't think there's a best community, but there might be one that best fits a particular set of values.

I like that NixOS folk treat "build a Linux distribution" as a software engineering problem: building abstractions with a language; declarative interface; large scale changes; automation; integration tests on PR; shared ownership over strong maintainership.
The city doesn't want it, the federal government is pushing for it. Probably because the person in charge is a free market theologist from FDP so he wants to spend as much tax money as possible to have as little impact as possible. Wait, that doesn't make a lot of sense, but it's what's happening.
Strong disagree on 'statistics', I'm not pulling in the entirety of SciPy just so I can call stdev in a small script.
In addition to what has already been highlighted, end-to-end planning, identification of best and worst cases, rudimentary probabilistic calculations, assessment of options and the associated risks, and the pursuit of the combination which provides the best chance of success while minimising the risk of failure. In fact a lot similar to investment and personal financial planning.

Bidding and the associated learning curve is a common deterrent, which can be side-stepped by turning to Minibridge (https://en.wikipedia.org/wiki/Minibridge)
That map look like one extremely nationalist view from Armenians. There were a billion other civilization/dynasty/kingdom that controlled the region what is so called as “Greater Armenia”.
also, role-play RPGs have demonstrated quite well that people fall in love with well-scripted characters with otherwise quite mechanical interaction.
Yes, for example the Yanomamo hunters-gatherers in the Amazon basin stay in approximately one place for years or decades, in jungle clearings they build semi-permanent "shapoons", a structure from wood and leaves that obviously does not survive in the archeologic records (nothing survives in the Amazon; there is a lack of stone there and organic structures decompose soon), plus they cultivate a lot of plants locally.

The concept of a hunter-gatherer roaming the endless steppe is romantic, but it does not seem to occur that much in known history.
The vertical farms don't use pesticides which is a major, high value feature for some consumers.
25:1 is not _worse_ odds. He wants me to pay $125,000 if he wins the bet, yet if he loses he gives me $5,000. Surely you can see what that says about the level of confidence here.

The emperor is clearly not wearing any clothes.

There's lame horses that get better odds in races than what is being offered to me if Tether collapses (and even recovers in a few days after that) right now.

The peg just needs to collapse for a tiny fraction of the next year for them to win this wager. Why wouldn't anyone take such a guaranteed profit? :)

And to be fair I doubt it's the loss of money that scares Patrick, it's the USDT/USD price on May 21st 2023.
> It turns out that this is not the source code. As with so many other things in Python, there's a special case you have to know about: there's a separate C implementation of the operator module. :-/

I actually kinda like that Python often maintains 100% compatible pure-Python implementations of various C modules. It's definitely niche, but I have sometimes found myself trying to work out what a module is doing (e.g. with the fancy new PEG parser) and I find it far easier to read Python than C.
It’s so subjective as to make the question meaningless, but: to me the gentoo irc community is so good that sometimes I ask them questions that I know not to be distro-dependent when I use other distros.