skysight-inc/HackerNews huggingface dataset:
For me this year AoC was a lot less fun that last year. As soon as the problem required reading it multiple times to figure out what it's even asking of me, I just gave up. Might be my own state of mind or the puzzles being more tedious, I don't know.
it's gruesome. I love westerns but in a way this is some kind of anti-western. Captivating however, in the same way 'Heart of Darkness' - Joseph Conrad , is.
I always put the clutch in when starting my car. On the bike I trust the neutral switch, which you are right, I shouldn’t.

It had to be in neutral to park but no guarantee randos haven’t crawled on it. So far the switch did it’s job.
I think comments should be used much less than we have propagated for years. First, idiomatic code often doesn't need any comments at all. Second, every project requires some level of documentation, but the documentation should be a high-level abstraction of the code.

So the documentation is the easy way for humans to understand what is going on and when I want to know the details, I can jump into the code. And just if the code itself is so complicated or its implications are not easy to understand (which should rarely be the case), then comments should be used.

However, the problem with this mantra is, that the original authors often don't know/want to know when their code is not simple enough ;-)
I don't understand how they are hard to find. It's trivial to find where the file was moved from.

What I truly care about is why something is the way it is, what is the rationale behind it, how it works with other parts of the codebase, what problems it solves, what is tricky about it, what to pay attention to and so on. I don't care at all about the code that was written and an explanation to it because this I can read myself in the code. The best place I've found for this is a code commit because it can tie different parts of the codebase together and add a lot of context to a change. I commit heavily and don't squash. A long comment in a commit that contains all file changes related to a certain feature, bug or whatever adds a lot more information than a comment in one file. When other people do it, it helps me a lot more than chasing their (outdated) code comments throughout the codebase.

But if that doesn't work for you, then don't do it. Just don't be dogmatic and dismissive. I accept there might be situations and codebases where this doesn't work.
Whether it is fair (or not) is a value judgement. All I said was that the comparison was done poorly.

Those choices together with single-threaded memory-intensive benchmarks (esp. those sensitive to memory latency) is problematic because the whole point of using a workstation CPU like the Threadripper Pro is for multi-threaded performance with a wide memory bus (sometimes NUMA). And they make a big deal out of it, emphasising the $50k price tag to paint the M1 Pro/Max as some sort of "Dragon Slayer". If they did a more rounded comparison including stuff like kernel compile times, etc. then maybe they are justified, but as it stands it's just unprofessional.
Can't you predecode speculatively, then redecode if you see a compressed instruction? Also I assume the bottleneck there is instruction cache, no?
I had Covid in September, it was like common cold, I would not even doubt that it was Covid haven't I lost sense of smell and taste.

I had fever and runny nose for 2 days, and felt fatigue/lack of energy for 3 more days, I was like new afterwards.

But it took weeks to regain smell and taste like it was before, that was the shittiest part of Covid.
Gosh, is it now so de mode to do something just for the fun?
Suppressing duplicate requests in web services
I feel like that was a plot point in Ubik as well.
Yes sure. Send me and email to linh at anve.re
>If you don't want companies to use your code for free, don't publish it for free. If they violate the licence, presumably it is a case for the courts.

this is assuming you have the resources to :

a) know the theft happened

b) follow up in court.
Misbrands
This is a fantastic book though I read it 15 years or so ago now. I should re-read it. I also have 'Love in the Time of Cholera' but haven't read it yet. It was the first magical realism book I had and have read. I found the family tree at the beginning or the book essential as the names are all very similar and it's easy to lose track.

Highly seconded.
Ah, the familiar Facebook approach.

For years reddit was unusual in not offering an official app.
That's a great idea. I've been doing this just to rationalize my laziness, but now it makes sense. However, I'm not sure those are valid forever as you can simply delete the .git folder, can't you?
Agreed. But I also discovered that in some domains local jargon doesn't correspond well to its English translation, or is not available at all, which is likely the case in law and accounting. In such cases, I go with the local language.
I wish they added ads to the API instead, and required 3rd party clients to display the ads in the similar way as the official one.

Other apps weren't used to (just) bypass the ads. They offered unique interfaces that an official lowest-common-denominator app never will.

Killing of the API also killed a ton of fun projects that played with the data. These API integrations weren't a threat for the official app. They even were an ad for Twitter itself, showing how much happens on Twitter. Twitter tried to keep this aspect alive, but the butchered API and lost developer goodwill killed off the toy projects too.
Teach me your ways. Any major tips besides getting lucky?
> A lot of good comments in this thread mention that you should write comment about intention (“why”), not implementation details (“how”)

Erm, that's what I said above. I don't believe that's controversial.

And neither is the fact that if there's a 30 line comment above a 100 line function, perhaps the function should be reduced in size because it's clearly complex. In fact, IDEs such as Intellij will flag it for complexity

Commenting for the sake of it, especially due to poorly named functions and variables is a code smell. Code is for the reader. The compiler doesn't care if your variables are two characters or twenty.
Same here, though I usually use the AGPL for extra freedom.
It would also be cool to see the average color of each body of water (ocean, sea, lake…)
377 kb Yandex
I use self-reflection and internal dialog when I notice I'm feeling judgemental, to drill down to what has created the discomfort. Once you understand your own reactions it's much easier to talk with others. I'm not always aware until later but it works then too as a retrospective. Most people are open to walking through their beliefs with you as long as they feel safe from risk of attack. Apply the same kindness to yourself.
"AAA games" (or rather any 3D games) typically use lossy image file formats which directly map to the hardware-compressed GPU texture formats (like DXTx/BCx in DDS or KTX containers), QOI is an interesting alternative where lossy formats don't work well though (e.g. pixel art).
That do not answer my question. Is SeExpr + Python better than Canvas + JavaScript. If yes, then how?
After I am done with the CPS-1, I am considering documenting the Neo-Geo. I have no found really good documentation so far but maybe you can recommend me some?

Email me at fabiensanglard.net@gmail.com
Which people go out and urge for looting?
I agree that it is quite easy to grasp the format in terms of implementation.
It seems basically like writing a image VM that accepts byte code. I think that could really be a way to specify many file formats more concicesly. If e.g. you chose the correct automata/transducer class one can easily e.g. specify some hedge grammar based XML file format and get a binary representation. Starting from grammars as a spec it is typically more difficult if you want to derive an implementation.

However I e.g. wonder from reading the concrete spec why you e.g. cannot differentially change the alpha channel leading me to the question what happens if images have different alpha levels.
Show HN: Liar's Dice AI from reinforcement learning
Subsea Cable to Connect Asia, Europe, and North America Through the Arctic
I’ve started using VS Code with Python recently.

There was an unpleasant surprise in that Pylance silently pulls unvetted third-party typings with not even an opt-out—resulting in typing mismatches across versions, in addition to generally exhibiting too implicit of a behavior for my taste. (Coming from Python pre-typings originally, I have grown to appreciate TypeScript’s model where user is asked to install typings explicitly if missing.)

So I ended up using VS Code with Python extension but Pylance overridden as disabled, and with mypy and flake8 installed in your environment (and enabled in VSC) it actually works fairly well, showing errors and warnings from both.

Can’t remember whether I had to edit settings.json or not, but it took some time to hunt down relevant settings.
After Deepmind released their "Player of Games", I decided it would be a good Christmas project to make an AI for a game I've always loved: Liar's Dice (or Dudo).
I realized there was a really simple way to implement Counter Factual Regret Minimization (CFR) with a value neural network trained from self play.

The code is on https://github.com/thomasahle/liars-dice . I will try to write a blog post about how it works later.

It starts learning from completely random play, but after about a million games the model is close to the Nash Equilibrium. The pytorch model is converted to ONNX runs entirely in the browser.
The 3995WX is a 6 grand chip. Not cheap, but you don't need to pay 50k for a workstation if you're going to compare it to a Macbook. That 1TB of RAM will be a much more significant part of the cost of the machine, but you could never get that in an M1 Mac so the cost is a useless metric.

I can't tell if these tests make use of multiple threads or not. I don't think they are, because the 128 threads should absolutely crush the 16 threads of the 9980HK.

If it's not, Apple's flagship chips are sorely losing to a chip that's been optimised to bring multicore performance by sacrificing single core performance. It'd be like bringing an F1 car to a dirt track and measuring performance against a rally car, and still losing to the F1. That wouldn't bode well for an M1 Mac Pro at all, unless there's some serious GPU power hidden in there that an AMD GPU wouldn't be able to provide at a similar price.
NASA’s X-ray boom arm for black hole studies extends in orbit
Silly because the two types of income are not fungible in my mind. With a job, I am a mercenary of my time and the income will dry up immediately if I decide to stop (let’s set aside the long tail effect of investing the savings). With a successful side project, it becomes a very passive income, like many people mentioned below.

Ultimately I guess I am genuinely jealous of people clawing back their own time, while I am working incredibly hard with life passing me by, that’s it.
I think 'The Magus' may be my favourite book of all time. And it's the only Fowles I've read. I did lend it to someone that hated it however ! :)

Secret History by Donna Tart also recommended.
Good question. Should we apply this axiom (and resulting benefit of the doubt) to power structures / organizations? One way to look at it is: which approach is more likely to lead to a better understanding of the problem and thus the solutions?

If we are curious, we can ask questions like: what are the root cause incentive structures that led to anti-social actions? and: What systematic adjustments can we make that disincentivize such actions in the future? I think that these questions lead to a more broad perspective on how to address problems. Where a judgemental approach narrows the possible solutions and opens us up to the cure being more deadly than the disease.
Same here. I use .md files in Sublime Text, which I keep in Dropbox, and I access them on my phone with Obsidian.
I am not too knowledgable about Scala, but I think they only promise source-compatibility, so they are free to swap out the resulting binary to a more efficient implementation if the semantics are correct. Hopefully they did anticipate JVM-native value classes.
MOD files ;)

(but seriously, MODs can encode hours of audio into kilobytes, the downside is of course that they require a special authoring process which seems to be a bit of a lost art today)
No tips, it’s truly all about luck. My job is not particularly difficult or anything, I mostly herd cats all day without producing much, as I am at the whims of massively over engineered systems that are almost impossible to comprehend.

The only thing I would say that can affect your luck is to always say yes to any opportunity that has a chance of taking you forward, even if it is incredibly uncomfortable. A couple random decisions I’ve taken in my life that affected my luck:

- Relocate at a young age to the US from Europe, leaving a promised incredibly cushy job (imagine well paid, for local standards, European tech job with 60 days off a year etc) for a crappy internship at a no-name American company, with no promises whatsoever. I relocated entirely by myself, leaving family, friends and (ex) partner behind. I am still separated from them.

- Took some risks in my career, joining early stage startups to build experience while most of my coworkers would call me crazy for taking a 50% paycut from the job where we were all “stagnating” maintaining old systems.

- Accept new work opportunities even if they mess up your life. They said: “Do you want a job for a 50% raise in NYC?”. I said: “Yes Sir, I’ll be there next Monday and throw my San Francisco life down the toilet, break my expensive rental lease and convince my girlfriend who lives with me that we will have a long distance relationship for a while”.

- Live a frugal and minimalist life like a college student, it’s easier to take bets in your life when you don’t have a mortgage/car/kids and your monthly expenses are under $3k in a very expensive city.

Most people I know would say a sound NO to all the above, and I’m not saying they would be wrong in doing so.
Quite a few here read this in 2021! It was a bit of a bleak read in 2021 though I'm very glad I read it as it's one of the best (if not hard going) books I've ever read.
It's interesting how from one side Swift seems to be trying to be higher level (for example the actors) and from the other it seems to be trying to be lower level too. It's like it's developped in a world where other languages don't really exist and adding more features to Swift is the only option to do something. Or developped by people that want to use it for everything, from low-level systems to high-level applications.

I'm glad that this is happening in the open, lots of smart people are working on it and sharing their insights, design decisions and code.
What is so scary about an alternate currency? People have different currencies all around the world. It doesn't much matter what you use so long as it facilitates trade. People are so brainwashed into trading their time for glorified food stamps that they don't see there is value outside of money.
Product segmentation probably
> gnu coreutils where the program "true" which simply returns a successful status code on run, is hundreds of lines in C

Looking at [0] it seems to be 80 lines, as it's doing argument-parsing (for --help and --version) and stream-management.

[0] https://github.com/coreutils/coreutils/blob/master/src/true....
But no systemd distro is saying “we want to dump systemd but we can’t because it’s too tightly Coupled” are they?

Or maybe the maintainers are I don’t know do you have links to show this is the case?

Systemd is used by all major linux flavors because it’s the best solution for the problems it solves.

The distro maintainers are too smart to be stuck with systemd against their will.

And it’s linux …. make a better solution, if it’s truly better it’ll be used.
Yes, I engage the hand brake usually.
That can happen if you have an A and a v next to each other and no kerning. Although "from" in the (cursive) line below does seem kerned.
There is so little actual information on their site, like what are the complaints?

A walk out, and the timing, implies retail employees but the issues faced by retail employees aren't the same as generally gets covered by the apple #metoo stuff, which is generally corporate: Engineering, Design, HR/Management, Marketing, etc.

I'm not saying that I don't believe there are issues that need to be addressed, I'm saying that their website isn't doing a good job of saying what issues they are actually protesting.

They have a specific coverage on compensation and wage transparency, which I'm not sure (again I could be wrong) is a huge issue in retail, as retail wages are much less varied.
Here you go ;)

https://floooh.github.io/qoiview/qoiview.html

A QOI decoder should fit into a few hundred bytes of WASM at most, maybe a few kilobytes for a "proper" polyfill.
I never work on FOSS. I work on software because I need it for me, and make it free for others to use. The question of whether it's worth it is moot, as yes, it's worth it because I need the software for myself.
Japanese university finds Alzheimer's drug effective in treating ALS in mice
List<Cat> cannot be a subclass of List<Animal> as that would imply I can do list.add(dog) into that list.

You probably know this, but I'm replying in the hope it clarifies things to other readers. The way it's expressed in Java is List<? extends Animal>
> So how can you possibly talk about what caused you to measure a particular direction when apparently it was magically due to this thing that has no visible connection to it?

You mean a connection we can measure.

as i understand, our measurements rely on what we know and what we know relies on previous events. Its like what and how we measure something is simultaneosly determined by that something. We can't measure the size of a cat's soul because we don't have instruments for it but if we invent the instruments there will be no other choice than measuring them in a particular way the soul allows us to measure it.

Don't know if it make sense at all, but i tried to make sense of it.
Lot's of IDEs and external tools do very basic git integration ¯\_(ツ)_/¯

I think JetBrains is probably the best of the IDEs
That is not justification enough.

And given this particular industry, there shouldn't be a need for anyone to give away that much to their employer. Simply walk away and find another position.

And before it is mentioned, ofcourse there are niche situations where that one and only position with this requirement is available and nothing else. But those are outliers and not worth mentioning.
I always thought my job was thinking, not writing? It should be about finding a good solution to the problem, not cranking out code like a madman.
Here are some numbers from Denmark covering Omicron infections:

About 90% of positive PCR tests are in fully vaccinated (double or triple). About 8.5% are in unvaccinated.

About 75% of the population is fully vaccinated. About 24% is unvaccinated. Why are the unvaccinated underrepresented in Omicron infections?

Source: https://www.dr.dk/nyheder/indland/status-paa-coronavirus-lig...
squash merge is evil
My theory is that the keywords used make it easier for the authority to search for when the keyword has been used/disclosed. There is counterintelligence value that is lost if the name of the secret blends in too much.
What works for me is to assume there is always an explanation, then go look for it.

Could be anything from an actual good reason to do it this way, or some other factors like cost, or maybe even just lack of time, or the best of multiple bad options.

Postpone judgement until you have a good understanding. You could still come to the same conclusion but it will likely be much more nuanced.

Basically empathize with whoever build it or was involved.

Also design/build stuff yourself, do user testing and get feedback; it’s humbling haha.
Dude, you're making a million / year. You could move right away to a cheaper area and do whatever you want. I'm pretty sure you do realize this, so...
No it doesn't. At least git tracks and follow renames
Ye I believe that fundamentally the check "am I pressing the clutch down" is simpler than "did I put in neutral" when cranking since the former requires no memory.
Yeah, in my hypothetical, the rich just become ordinary citizens, the same as everyone else, free to earn their way in life on their talents without wealth or lack of affecting their success in life. This is actually a factor in the overall increase in efficiency.

Historically though, offer them that option and they'll prefer using their wealth to start a war.

Examples:

Free the slaves -> no -> civil War, slave rebellions.

Let me vote -> no -> civil, revolutionary and independence wars.
This is the unintentionally funniest comment I've seen all week (sorry googlers)
To me, it's not a problem that my code is used for commercial gain. I use the MIT licence (a permissive licence). The key thing for me is that it doesn't give companies a competitive advantage, rather it puts companies that don't use it at a competitive disadvantage. It's thanks to Open Source that I'm writing this on a system that uses 100% Open Source software (okay, maybe the BIOS isn't). A good thing about Open Source is that if a company uses it, they're more likely to report / fix bugs, which helps everyone.
Rust and Spark(Ada): Software Reliability for Everyone
Why wouldn't they come out and say it?
captive audience!
On some intel CPUs charger included with Macbook does not not satisfy CPUs power consumption. So if you ran CPU on 100%, it will use battery to get extra power, and macbook will eventually die, after battery reaches 0%.

This is not how you design "workstation". Macbooks are just toys.
I’ve already been in that situation and choose every time to pay the tax, keep things clean and straight forward. Our financial advisor used to poke fun at me and my business partner for how straight laced we were.

In year 7 of the company we got pinged for a random HMRC PAYE audit, we passed (with a couple of minor infractions that we simply didnt realise about - like buying bacon sandwiches for your staff every Friday is actually taxable) but it was still pretty stressful. If we had done half the stuff people had suggested we do because “everyone does it” we would have had a much worse time in that audit.

Yeh I have self employed friends and other directors who may or may not be as buttoned down as they should be and I’m sure they will be fine but I’m not wired that way and it’s treated me pretty well in life so far.

I hear from many people that my opinion of them matters to them a lot, that they follow my lead, that they loved working for me, that they think “what would Simon do here?” which is worth way more to me than skirting some rules for an advantage at the cost of my credibility, integrity and self respect.
This is great. I just wish this clumsy wording was a bit tighter:

> the whole website is contained within a single HTML file.

Because, it's not. An HTML file, a CSS file, and some PNGs. What's interesting is there is no JavaScript.
Your exhaustive test suite is the technical documentation.
You appear to be content Id claiming the add revenue of the people that use your music for "free". Calling that "royalty-free" and saying that the music is "free in exchange for a credit/attribution" feels a little misleading.

It is royalty free if they stump up the up front cost, but the idea that using this music will cause you to lose ad revenue on your YouTube videos should be front and centre.
Do you have a link to the extension? I looked for something like this a while back but couldn’t find one.
This benchmark isn’t single threaded, it utilizes all the physical cores found in the machine, 64 on Threadripper and 10 on Mac.

See the source for details: https://github.com/unum-cloud/HashTableBenchmark/blob/00f94c...