skysight-inc/HackerNews huggingface dataset:
The C# team for several reasons decided "rock solid" pattern matching was a higher priority than discriminated unions because good discriminated union code needs good pattern matching. In the last few versions of C# I think pattern matching has gotten really good. List Patterns finally exist now, and that influenced the new iterable collection initializers, which are also pretty good now. Last I checked, the C# team was still debating Dictionary/Hash key lookup Patterns and Dictionary/Key-Value initializers, and that's maybe my last big request in pattern matching other than native discriminated unions, of course.
Ask HN: Who do I contract to write a EULA?
I have tried googling this to no avail.
It's just sugar to turn functional style into .Syntax(), but because of that the tooling is very nice and things like LINQ can be a fluent API instead of LISP.

You can call it a hack but IMO you get the best of both worlds.
Learn something other than react web development. That market is SATURATED.
In 2001 (or 02?) I remember visiting a clearance warehouse like this in Ottawa during the post-dot-com-boom crash and it was where all the west-end startups and network tech companies had dumped their furniture after either going completely out of business or emergency-downsizing.

It was wild, I have a picture somewhere of a high-school-gym-sized room just filled corner-to-corner with plastic-wrapped Aeron chairs...
That's cool. Thanks dude.
>to claim "the language doesn't allow simple things such as checking for a file's existence" (which is false,

That's not what I wrote. I said there's no _built-in_ way to check existence of the file. A reasonable interpretation of "built-in" is for an obvious named function such as "File.exists()" _without_ cobbling together extra workarounds and hacks -- whether those workarounds include re-purposing other VB built-in functions with On Error ... or using Win32 interop.

> in VB, [...] would at worse be comprised of a exception handler (on error ...)

That's an example of what I meant of not being built-in to VB. I should have been more clear. We were using different meanings of "builtin".

In any case, the following "pure" VB code to check for file existence is not found on Google or Bing search but I still have it from my 1995 archives and copied it here. It has many lines of code (instead of a simple "one-liner") because it tries to cover all the edge cases. And yet with all that defensive code, there's still a hidden timebomb of a bug in it. Can anyone spot it? The code is unmodified from Visual Basic Programmer's Journal. In contrast, the alternative using Win32 interop with OF_EXISTS doesn't have the bug.

Dim strTestFilename As String
strFilename = Trim(strFilename)

' To avoid problem with known bug, don't pass root directory to
' the Name function
Select Case Right$(strFilename, 1)
Case "\": strExistsFilename = "Root": Exit Function
Case "\.": strExistsFilename = "Root": Exit Function
Case "\..": strExistsFilename = "Root": Exit Function
End Select

On Local Error Resume Next ' Enable error trapping for Name function
Name strFilename As strFilename ' A trick to see if filename/path is good

' Now check the resulting err code of the Name function
Select Case Err
Case 5 ' Illegal function call
Case 53 ' File not found
Case 58 ' File exists (maybe)
strTestFilename = Dir$(strFilename)
If Len(strTestFilename) Then
strExistsFilename = "" ' It's a file
Exit Function
Else
strExistsFilename = "Dir" ' It's a directory
Exit Function
End If
Case 64 ' Bad filename
Case 68 ' Device unavailable
Case 71 ' Disk not ready
Case 75 ' Access denied
Case 76 ' Path not found
End Select

My point was that C# builtin File.Exists() is a lot simpler than that.
All breeds have breed-specific issues, but saying that Poodles have similar issues to brachycephalic breeds is just silly, those are different orders of magnitude of suffering.
Those things are fart boxes, and they get unusable by lunch time.
I remember when I was looking into this at one point in time. I was trying to figure out a good implementation that didn't require you to store multiple different positions. The most I really ever got was a reverse order transparency [1] which employs some stuff similar to the article.

My plan was basically render everything opaque first, then render transparency front to back till the layer became opaque (discard all pixels under an already opaque pixel), and of course exclude everything further away than the depth buffer of the opaque layer.

Might be interesting to actually go and finish the implementation to test it out, I just never had a good test scene with a lot of transparency (with an opaque layer since half my benefit comes from that.)

[1] https://www.shadertoy.com/view/msyGDR
I am building website analytics. I wouldn't call it "SaaS", because it's not a service, but a product:

- UXWizz (https://www.uxwizz.com) - Self-hosted analytics with heatmaps, session recordings and A/B tests

- WPLytic (https://www.wplytic.com) - Self-hosted WordPress Analaytics plugin
> When that trick can't be used, I think the most efficient method would be to clamp the top of the address so that the max would land on a single guard page.

If you are already doing a cmp + cmov, wouldn't you be better off just doing a cmp + jmp (to OOB handler)? The cmp + jmp can fuse, so it's probably strictly better in an execution cost sense, plus it doesn't add to the critical data-dependent chain of the load address, which would otherwise add a couple of cycles to the address data chain.

Of course, it does require you have these landing pads for the jmp.
Similar story when wolves were re-introduced to Yellowstone:

https://www.yellowstonepark.com/things-to-do/wildlife/wolf-r...
> Did you confuse the file with it's containing directory?

No.

> Citation needed. https://learn.microsoft.com/en-us/dotnet/api/system.io.file.... doesn't warn of any such thing.

https://learn.microsoft.com/en-us/windows/win32/api/winbase/...

OF_EXIST: Opens a file and then closes it.
You didn't pay any taxes. Paying for your visa application is not a tax. Your sense of entitlement is sickening. The US does NOT owe you anything.
Love this!

Also for those interested in auto-moving chess boards, see the Go Chess project:

https://www.indiegogo.com/projects/gochess-most-powerful-che...

It takes a different approach: 1-4 "robots" under the board moving pieces around - with the goal of being able to reset the board or setup a position super-quick!
I get the sentiment, but there really has to be a better way than letting some mod overlords determine what I may be allowed to see, even going to far as to not just taking my autonomy to choose, but to even hide the existence of the choice.

I am sure you see my point.
Thanks for that. Handy. I think I’ll have use for that myself.
This definitely has a GPT smell, at no fault of the creator. Reminds me of a PR i reviewed about a simple security patch, where the description said "The following changes have been implemented to strengthen our role-based access policies and system security" - Like yeah, it's security patch. A small tweak to his prompt would probably do the trick
Okay, sorry. The repeated "monstrous" and focus on how bad it is (which I genuinely disagree with - it's absolutely fine) rubbed me the wrong way.

> and if you aren't fortunate enough for your F# codebase to be mostly Tasks instead of async the you'll have to actually care.

My expectation is that async-based methods are not exposed to consuming from C#. If they are - this is unfortunate. The ideal state is to modernize the implementation and mainly rely on task CEs. Async CE has its advantages in terms implicit cancellation propagation but flowing down a cancellation token explicitly is usually a more pleasant experience than in other languages. Nothing that stands out as monstrous, and if something is - it has to do with the way a particular GUI framework implements it and not the language and platform themselves.

Last note on sync over async - threadpool can deal with it just fine. It has detection mechanism for this which proactively injects threads when a worker thread is expected to be blocked that bypasses regular scaling through hill-climbing.
Using different protocols for emergency call predates any caller location information.

The main drivers at the time were network coverage (your SIM might have no coverage, but a network you are not allowed to roam for ordinary calls in has) and congestion (emergency calls can preempt ordinary calls).
This bullshit independence is one of the most fundamental and important concepts of probability theory and that other nonsense is also relevant cause especially with statistics it's easy to concoct a model which only seems to be correct ... but in fact isn't.
Congratulations, you're above average!
How to Give and Take Advice
Lately, I often think about that drawing where three people are at a table. A blue-collar worker (mine worker or construction worker), a black sad looking black person (immigrant), and a rich guy in suit.

The blue collar worker has a single cookie on his plate, the immigrant no cookies at all, and the rich guy a plate full of cookies. The rich guy with his plate full of cookies, looking at the worker, points to the immigrant. “He wants your cookie”.
In the referenced paper https://arxiv.org/pdf/2201.00094 in section 2 they give a couple examples for why not ray tracing. Also FWIW they used an RTX3090 in the performance comparison section.
D'oh! Thanks. I had indeed interpreted the person they were replying to as talking about authorship rather than printing …despite them saying “printed”
I'd take this with a grain of Silurian Salt, but there is some fossil evidence that a Tyrannosaurus Rex or two healed from injuries significant enough that surviving them would almost require help from somebody.

The fossil of Barbara[0] "shows a particularly bad break, which goes right through the site of the tendon attachment, so most probably the tendon would have been torn off the bone [...]" If you're a very large two-legged creature a break like that could be a death sentence, but the fossilized break shows signs of healing.

Sue[1] is one of the most famous T. Rex fossils and she shows many healed injuries including broken bones and bacterial infections. It's highly possible that her species is just incredibly tough, but it's also possible that they took care of each other to some degree.

[0] https://www.iflscience.com/meet-barbara-the-pregnant-t-rex-w...

[1] https://www.newscientist.com/article/dn1393-sue-postmortem-r...
> "An unhappy gopher and plant near the gopher enclosure fence"

i do like it when they take slight liberties with their captions. fantastic
'I just can't': Why so many consumers are sick and tired of online shopping
"PS5 Pro surplus means some scalpers...?"
> Why would they take hours?

Thermal throttling. I have personal experience with that: once I received a laptop which was missing the four screws holding the heatsink. It took over half an hour trying to boot Windows before powering down due to overheating. Since I'm not used to Windows, I thought it being very slow (on the first boot, which sets things up) might be normal, but suddenly powering down certainly wasn't, and the BIOS event log pointed to the culprit.

The issue is that AFAIK it does not reduce the clock rate; it runs at the normal full clock rate, then when it detects the temperature went over the limit, it pauses the CPU for a while to let it cool down. With a missing CPU fan, that might be enough, but it wasn't enough with the heatsink detached.

> That's why nobody noticed: because they didn't take hours neither to boot nor to do something.

It's normal for servers to take a while to boot (before even getting to the operating system).
> Just read Kununu reviews of several Austrian companies.

I'd rather suggest to go to the Arbeits- und Sozialgericht[0] and listen to some real cases, they are public anyway.

[0]: https://www.justiz.gv.at/asg-wien/arbeits-und-sozialgericht-...
I would have clicked even faster if the title had "with Wavelets"
> For example, customers arrive at the grocery store in clusters due to traffic lights, schools getting out, etc.

You're kind of just describing seasonality components and exogenous regressors; RNNs do actually function quite well for demand forecasting of this type but even simple models (Holt-Winters or a Bayesian state space model or something) can be really effective
I get it! Keep it up
Frustrating article to read. I think the answer to "why" is implied here:

> This extraordinary ability is a direct consequence of their isolated island home, where there are only limited freshwater sources.

The real answer is: they drink salt water because fresh water is scarce; it's their only option.
Zach Blog: Riding the Curves of Cyclical Time
The problem is Siberia releasing carbon, that’s pretty clearly and well defined. I don’t know what other “more efficient” solution we could possibly have. Sometimes nature is the best solution to the problem.

It’s no different than reintroducing beavers into areas to reduce wildfires. Nothing we’ve invented so far is a better option.

https://coloradosun.com/2024/04/19/fighting-wildland-fire-wi...
The CDC has measurements: https://data.cdc.gov/NCHS/Post-COVID-Conditions/gsea-w83j/da...

Answer is a bit more of 1% young adults have significant limitations caused by long COVID if I read it well. 2024 data.
Then I don't understand. Like the sibling comment said the really "problematic" character in TSV is the line feed. But a tab can occur as well.

The format that I described does not already exist in the form of TSV. And further based on your original comment I would have thought that both TSV and this format would be discarded as not-useful.
I don't have a problem with poodles, but breeding them wasn't a conservation effort. Not everything we do needs to be, but I'm concerned that programs like this one suck air from programs that could actually make progress towards real conservation.

If they framed it as a poodle-breeding effort I would be unconcerned.
The Wasting of Time
no, no, sorry. nothing to do with US election, bro ;)

it's a general situation we're experimenting in Italy, where most of these websites have a common desing
Wouldn’t a mix be better?

ie top up a smaller battery at stations and do the initial pulling away from station on mains?
I went camping with an EMS/Paramedic that did a stint at McMurdo station. He rode along with the fire crew, and one of their main off-base jobs was working ARFF on their rather difficult runway. IIRC, some of the planes would intentionally drop fuel pods, which then need to monitored while they burned off.

https://www.faa.gov/airports/airport_safety/aircraft_rescue_...

Ultimately, EMS/Paramedic spent most of his time performing his secondary duty - clearing the runway of penguins. They were not allowed to touch them, so they were instructed to keep their hands in the air and shimmy sideways in order to shoo them to safety. He did demonstrate this penguin shooing dance to us around the fire, which led to him gaining the nickname Zoidberg.
It would be really amazing for ai folks if they would crack a book on HPC open every now and then.
That sounds like a justification for something they want to do for other reasons (like attracting funding).
Tariffs Won't Work, Just as McKinley's Didn't
We use this at work, steer clear. Support for Windows is an afterthought.
I'm sure OP just threw out poodle as a reference to all inbred (purebred) dogs. I have actually had this on my mind a lot lately, and I was telling my wife about how the wild dogs I've had experience with in the Middle East and Africa seemed so much stronger and capable than pretty much any dog in the west, probably because there is still some survival-of-the-fittest going on there.

I used to have an AKC golden retriever that died of osteosarcoma at 14, and had a non-functioning pancreas since he was about 2, which meant he had to be supplemented with enzymes his entire life. The eugenics movement in the couple hundred years really has ruined dogs in the western world. There are so few people who breed responsibly that finding them is a huge chore. I'm inferring that what OP meant by "same impulse that led to the poodle" is this impulse that created all these genetic monstrosities. People need to let go of the "pure bred" idea in my opinion.
Every startup I’ve worked at has bought furniture through one of these businesses.
There are warehouses like this in all big cites, and are open (ish) to the public!

I helped get some stuff for a small business earlier this year, and picked up an Aeron for myself while I was there. It was in a legitimately bad neighborhood and there were multiple layers of electronically controlled doors to go through, then you sign in and wait from someone to come down and get you, and you ride a massive freight elevator up to the floorspace.
Great tip! Would love to not have to maintain a headless script. Just set YouTube-dl to update on a cronjob.
Handle Stakeholder Expectations: Tips for Effective Communication
Algebraic Blindness
Unfortunately the post is just a markdown file in GitHub but I found it worth to read despite the presentation.
Obsidian Web Clipper
> 1. make an unlimited contract

That's a good one :-D

> The statute of limitations is 30 years.

It's actually 10 years. I thought it was less...

> 2. sue when you'll leave anyway

So that's actually a good strategy! Just note that there are certain deadlines, see https://wien.arbeiterkammer.at/beratung/Wohnen/altbaumietenc....
> Source?

https://cgejournal.biomedcentral.com/articles/10.1186/s40575...

> It would be a guide into what behavioural factors in modern elephants were evolved versus learned. Obviously not pristinely. But it’s another data point.

But couldn't you do the same thing with an RCT?
Electrotaxis of Self-Propelling Artificial Swimmers in Microchannels
The weights are only provided on demand, presumably only after you seen a bunch of agreements. I don't think copyright matters.
No one looked at siberia's carbon emissions and said "let's revive the mammoth to solve that problem". They started with the mammoth resurrection program and then found a justification for it.

That doesn't mean the justification that they found is necessarily invalid, but the reason why solutions in search of a problem are problematic is that the chosen solution is rarely the optimal one because it wasn't designed for the problem—the problem was designed for the solution.
This Nature paper has more info: https://www.nature.com/articles/s41467-024-52811-7

> The Cat Ba langur also exhibits several unique non-synonymous variants that are related to calcium and sodium metabolism, which may have improved adaptation to high calcium intake and saltwater consumption.
Perhaps, but trains that can draw electricity and use batteries means that less costly infrastructure needs to be built, as the article states.

Also if electric lines fall down again conceivably things be got working again quite quickly. Although putting the lines back up and closing it so the maintenance staff can safely repair would still need to take time.
> for some reason they disappeared

Octopodi be tasty.
Developing Software in a Forest vs. a Desert
If capitalists (and other citizens) behaved, no government would be needed.
This looks great!

I have a very minor feature request: MIDI loops! Add a button on top of the device: Press once to record, press again to stop. Quantize on/off available via the app.

Awesome stuff!!!
I fully agree. How many IQ effects in studied populations are actually created by the use of IQ tests?

Consider how infiltrated IQ-like assessment in throughout society, selecting for doctors, lawyers, postgrads -- military, police, etc. Then consider what data is offered as evidence that IQ 1) exists, and 2) causes observable measures in real-world outcomes. Filtering on the test becomes evidence the test is a measure of anything.

The application of "statistics" I dislike the most is where these feedback cycles exist, and large swathes of academia have some extreme responsibility here.

Whole fields of gene-traits studies were created over decade+ and then disappeared overnight as actual sequencing took place. All the rigour and splendour of "statistics", and then poof when science was done, it disappeared.

Since there are basically no scientific theories of human psychology, society, and the like -- gluing together correlations here should be seen as prima facie absurd. The alternative? Rely on expertise, and build resilience-to-failure into the system and tolerance for higher variability.

Human expertise obtained in domain-specific environments is vastly superior to the species correlations of surveys written by idiots who've never done any actual science.
i have worked in startups, and i don't mind the pressure that comes from the high risk a startup is taking, but when i see a 500+ employee company with a job ad that says "you strive in a high pressure environment", then i wonder just what kind of pressure they are talking about.
Thanks a lot for posting this. I am working on Chord Chart Memo [0] which is a tool for entering and transposing chord charts and this algorithm might come in very handy for naming the chords entered through the application.

What we're doing right now is essentially a hard-coded database of chord names. Every single new chords requires a new entry into this database, which currently makes adding chords with many accidentals impractical. Your approach of tracking the accidentals separately to the database of chords seems very useful and it may allow me to add 'jazz chords' into the app!

[0] https://tiniuc.com/chord-chart-memo/
I assumed the latest weapons are GPS guided, and just zero in on a long/lat coordinate. Though I guess that would be vulnerable to jamming/deception so maybe they do use visual guidance systems.
That's a good point. For a sufficiently young human it would be considered sophisticated.
> If you look at the geography, if you look at the political climate, just at the fundamentals it's not clear why Vienna is a large city

Sits on the Danube and was the capital of the Austrian Empire, so very important all throughout the 1800s. I'd say strategically located in Central Europe.

Then in the second half of the 20th C it was the gateway to the "East Bloc", the place where east meets west in terms of diplomacy, economic and cultural exchange, and of course espionage.

It has played a neutral role similar to Switzerland, which is why OPEC is headquartered there. It's also one of the UN's four major sites worldwide (along with NY, Geneva, Nairobi).

I spent a couple of years there; nice place to live; would happily return.
I am calling inexperienced developers inexperienced.
Are you literally suggesting that there are no inexperienced developers?

I am also saying that this thread is interesting and that inexperienced developers don't see the problem.

"very likely opens the file anyway" is not an argument.

"code smell" and "very likely wrong" are not arguments.

The reasons you need to stat a file without opening it, or do any other low level operation, are open ended and infinite. It's backwards to try to think up some specific invalid contrived example use case, and then say how you didn't need to do that specific thing that specific way, and so therefor you never needed that facility.

These are all quite bad reasoning and "inexperienced developer smell".
If you are experienced and still reasoning like this, that's unfortunate.
The surprising effectiveness of test-time training for abstract reasoning [pdf]
Which one would you recommend for the greater Boston area?