skysight-inc/HackerNews huggingface dataset:
So basically, using Rust is also entirely pointless as soon as it needs to call into non-Rust code (like operating system shared libraries)? ;)

On a more serious note: IME most memory corruption issues in C and C++ are 'side effects' of the sloppiness of those languages (like not catching overflow, missing range checks, problems arising from implicit type conversions, sometimes just not compiling with warnings enabled, etc...).

Zig enforces much more correctness (to a point where it is sometimes annoying to a C coder, but one quickly gets used to it), and it even does this when building C/C++ code (just by using much more 'picky' default compilation options than C/C++ compilers).
I don't quite see how's that obscure; it's a standard circular buffer. The fast/low latency communication part comes from the busy wait (and L3 cache communication).
UK intelligence recycles “think of the children” argument for borking encryption
> sparse population

> low population

These are not the same thing. Switzerland has a pretty dense population. The section with low population is the Alps, where you're not going to put trains anyway.

https://www.atlas.bfs.admin.ch/maps/13/de/12614_75_3501_70/2...

Most people that live in remote areas have cars anyway, since sometimes busses only run twice a day. It's a tricky problem to measure "access to public transit".

(The BFS is an amazing source for information, they publish all kinds of statistics)
Nice! I'm curious to see where you take TablaM. I agree that the relational model is not nearly as well represented as a basis for programming language semantics as one might hope.
Weary = tired

Wary = cautious about

This long lecture is making me weary.

He was wary of drunk people with an attitude.
This was the blog post that got me introduced to APl. It’s a good intro!
Looks easy and obvious, but getting the ankle and hip mobility required to squat properly this is quite difficult for us who spend most of their in front of computers. When I started lifting, my squats sucked, and I didn't even realize before I hired a trainer who told me. I had to significantly reduce my squat weight and start from scratch paying attention to doing deep squats with good form.

It took me about a year of consistent mobility training to get the ankle mobility and hip internal rotation required to squat right.

Though if you wear lifting shoes that's a nice shortcut. It can reduce the mobility requirements significantly. I prefer to squat without lifting shoes just because I want to be able to do it naturally, and I don't compete or anything like that.
But what if you took the contaminated soil around Chernobyl and shot it tens of kilometers straight up into the air, so all the radioactive isotopes get taken away by the wind and aren't a local problem any more.

That's how coal plants operate.
Sprites mods – A tiny Pinball Fantasies table
In 2021 this IKEA gateleg table [0] cost $199 [1].

In early 2022 it was $229 according to my records, but never in stock at any IKEAs near me. Presumably because of all the crazy supply chain/lumber problems, the IKEA shelves were largely empty.

By the time it managed to get back in stock, the price was $259 [2].

Today it's $279 [0], a 40% increase over its 2021 price. I don't even know how low it was before 2020/pre-pandemic, as far back as archive.org goes it's $199.

[0] https://www.ikea.com/us/en/p/norden-gateleg-table-birch-9042...

[1] https://web.archive.org/web/20210227021124/https://www.ikea....

[2] https://web.archive.org/web/20220422144639/https://www.ikea....
I have written many tools that do something like this, very useful.

Just gotta be careful with memory leaks, so (for a TS example) you might want to do something like this:

const promiseMap<key, Promise<any>> = new Map();

async function keyedDebounce<R>(key: string, fn: () => R) {
const existingPromise = promiseMap.get(key);
if (existingPromise) return existingPromise;

const promise = new Promise(async (resolve) => {
const result = await fn(); // ignore lack of error handling

// avoid memory leak by cleaning up
promiseMap.delete(key);

// this will call the .then or awaited promises everywhere
resolve(result);
});

promiseMap.set(key, promise);

return promise;
}

So that the promise sticks around for that key while the function is active, but then it clears it so that you're not just building up keys in a map.
Concurrent tries with non-blocking snapshots [0]

Say that you have a dataset that needs to be ordered, easily searchable, but is also updated quite frequently. Fast accesses are a pain if you decide to use traditional read-write locks.

Ctries are entirely lock-free, thus there is no waiting for your read operations when an update is happening, i.e. you run lookups on snapshots while updates happen.

They are also a lot of fun to implement, especially if you aren't familiar with lock-free algorithms! I did learn a lot doing it myself [1]

[0] http://aleksandar-prokopec.com/resources/docs/ctries-snapsho...

[1] https://github.com/mabeledo/ctrie-java
Wikipedia has much better info. Manchester Baby was 32-bit machine but only had 128 bytes of RAM and ran at may be equivalent of 1KHz. It did not had any other arithmetic instructions other than subtraction and negation so other operators must be implemented in software. The computer filled up whole room. A program to find largest divisor by brute force took just 17 instructions.
>Is (non-)determinism really the right concern here?

A massive one - there is a lot of code that implicitly depends on the order of iteration (think configurations/initialization). The issue might be invisible, and reproduce rarely in production only. The iteration order depends on the hash of the keys, plus the capacity of the underlying array.

In Java I advise to never use the standard HashMap in favor of LinkedHashMap. In cases where data density is important both are a terrible fit having nodes instead of a plain object array (and linear probe/search).
Write a blog, dude. This is ridiculous.
I didn't know this was a formal design pattern; I do recall having implemented this myself once, as a means to avoid double requests from different components.

Later on I switched to using react-query which has something like this built-in, it's been really good.
Rust has hidden allocation, no planned static stack analysis or limits on recursion, little to no control over how allocation happens, no ability to guarantee a panic won't happen and thus no ability for the programmer to guarantee eg. essential external resources are cleaned up.

The guarantees that zig seeks to enable (this being the key phrase, it does not guarantee them just by its use, nor has the project solved all the problems this entails) the programmer to provide are non-goals of rust.

Ie. the projects have completely different goals. The things zig want to provide would make rust unusable if it tried to provide them and vice versa.
>This is also why all high density cities are all expensive and housing is unaffordable and everything from water to power is expensive and public services are woefully inadequate.

No, they aren't. I live in Tokyo; it's very high-density, quite affordable compared to anything in America, and public services are all excellent. High density is how you get high efficiency.

>Shouldn’t every American city deserve top notch infrastructure that the states only reserves for high density unaffordable cities where jobs are concentrated.

No, because spreading everyone out means your infrastructure cost per capita balloons, and it's unaffordable for the government. If you want "top notch" infrastructure, you need to live near other people, not out in the boonies.

>Zoning rules exist for a reason.

No, they don't: they just make everything far away from everything else and prevent density. Here in Japan, schools, light industrial, residential, and commercial all coexist in mostly the same spaces. So it's not that hard to live within walking distance of work.

Maybe you should try traveling outside America sometime.
It's not that easy, who owns the most shares, where do the materials come from, where in the equipment do the core components come from. Usually those supply line disruptive component come from the US.

I know that the light source that ASML uses in their EUV equipment is created by US based Cymer. So if ASML doesn't do what the US says no more EUV for ASML.
Ever go to Scotland Yard? The one bar in town. Some CLMs (career-limiting moves) took place there (not perpetrated by me).
I'm glad Intel has been swallowing their pride on this one, I want them to succeed for once.

What really would drive me to support them directly would be (para)virtualization support via SR-IOV/GVT-g. Especially given Microsoft's recent stunts an increasing amount of people (including me and close friends) are evaluating moving to Linux while keeping a Windows VM around, but both NVIDIA and AMD seem adamant about keeping those features gated to enterprise cards (even thought it's a software thing, see community efforts to reverse this[1]) so they can charge ludicrous prices to businesses for those.

My opinion is that if Intel wants to get their foot in the door they should win over enthusiast by breaking patterns such as this one rather than try to compete exclusively on performance.

[1]: https://github.com/DualCoder/vgpu_unlock
I think he refers to the premium version of Waifu2x.
Perceptual & cognitive ergonomics
> Just means the restaurant wasn't very good to begin with.

Or that the local market won't support higher prices. Some communities just don't have the disposable income to spare.

And even McDonalds is closing stores:

https://www.statista.com/statistics/256040/mcdonalds-restaur...
Sounds like the prudent way of handling your example T-intersection is to rebuild it so it is no longer a T-intersection, or to move it in a way that forces people to slow down (e.g. by turning it 30 degrees, with curves leading into it, or by setting up a roundabout, or by moving it into a position where you see the crossing road more easily).
How hard would it be for a Chinese company to create something similar / find an alternative design with similar functionality to this:

https://personalpages.manchester.ac.uk/staff/p.dudek/scamp/

?

All an idiotic ban like this does is prevent this design from being put into commercial use.
Today, there are over 758 million internet users in India with ~700 million smartphones. In fact, the average data consumption per user per month in India is the highest in the world at ~13.5 GB and Indians spend almost 6.5 hours per day online.

Talking about its initiation towards being digital and its impact on the market is tremendous. Over the course of the last decade, India has laid down the digital infrastructure pipelines – so much so, that today Digital activity has become part of daily lives of over half the country and has enabled India to circumvent the challenges posed by its poor physical infrastructure.
Why would Linked Hash Map be a obscure one? It's been a part of java collection framework for over 20y. It's a standard for LRU caches as well.
Funnily, the YC startup mentioned abandoned their idea (https://www.linkedin.com/posts/jagathv_launch-hn-gallery-yc-...).
Typically true, but we know of a few prominent freedmen from the ancient world that wrote books: Aesop and his translator Phadrus, Epictetus, Phaedo of Elis and Marcus Tullius Tiro, the secretary of Cicero.
Succinct Trie
http://stevehanov.ca/blog/?id=120

Super effective way to store a searchable list of items, like a dictionary of words.
You make this entire IT thing sound like a bad idea. The mess we've made of it...

> U.S. court order

If only it worked like that.
Good luck with banning. Politicians will never destroy their main source of income.
That is indeed very interesting!
China already moved in the Semi conductor equipment space years ago during the trump trade war phase. From what i gathered they have secured 28~14nm nodes with almost complete domestic components and materials and non sanctionable component and materials.
Rust has had to implement limits on recursion already as part of async. It seems feasible to extend this to other code. And local allocators are also being worked on.
Anecdotal evidence does refute the point that "it’ll never actually work a linux laptop".
Their GPUs should also work really well in linux, since you don't really need DX11/DX9. All games with those graphic APIs get translated to Vulkan by [DXVK](https://github.com/doitsujin/dxvk) anyways.
It's really important to get good advice too, sometimes your gym-buds can see you're not doing it right, but they don't know it's because of mobility issues so they just think you're not listening.

I was lucky to keep my mobility from rollerblading and riding as a kid, so when I moved into powerlifting after 5 years of mostly sedentary computer work, I was still pretty loose.
> Why does this step always come last?

Sometimes comes first but the outcome is the same regardless.

I was once brought in to sit on early discussions with a consulting group. I pointed out very real problems with their ideas about how to solve our problem. That was on the morning of day 1. I was explicitly uninvited before day 2 for "not being a team player."

3 years later we were in court suing this consulting group for millions.
from the repo readme it looks like the owner is burnt out from the project and that there's much to do. I wouldn't get your hopes up unless you're interested in helping out!
> It seems like the US is happy to wallow in its own crypto scam waste while other countries are more efficient with how they allocate resources in their economies.

You probably aren't from the US, but we don't have a top down rule of how resources are allocated like other countries. It is a free market, so if someone wants to waste their resources building electric cars or a search engine - they are more than welcome to do so.
Also the earnings chart shows a clear upwards trend, so 72k is not really an outlier. Fwiw, I liked the previous design better. No idea how the codebase looked like though.
Asahi is Linux on M1. Parallels runs atop OS X which uses different page sizes
I've recently updated waifu2x and I've seen it now supports lots of algorithms for different use cases and contexts and it also supports other tasks like frame interpolation. So could you briefly explain in what is cupscale better than it?
The thing is that all of those are avenues for fraud and scams. And very little else. Even the apparently honest actors in the space seem to get wound up investing in fraud and scams somewhere down the line.

> It's so tiresome.

Yes, isn't it? Can we regulate this space under the same rules as other finance yet? Or do we need Joe Public to be ripped off for a few more billion first?
I heard from a chemistry researcher that it is also common in that field to give vague descriptions of synthesis procedures in order to allow authors to churn out more papers.
Succinct Data Structures
https://courses.csail.mit.edu/6.851/spring12/scribe/L17.pdf
Zig has a canonical format where braces match indentation.

You could probably make some simple tooling such that you never saw braces.
I don't think there's any point addressing this through the Zig community. It's self-selecting for people who think this is perfectly fine.

Public discussion of it is much more effective.

Best case scenario, they take notice at the wider world meme'ing Zig for such irritating quirks and realise how many potential users they're losing. An OK case scenario is someone maintains a fork. Worst case scenario is they don't change, no one bothers with a fork, and very few people bother with Zig and general.

Ball is in their court. I would hate for them to cut their nose to spite their face, but I suspect they will unfortunately.
> If you could systematically reduce the speed on all urban/suburban streets to no more than 20 mph (actual driving speed, not posted limit), it would be a huge safety win for humans living in those places.

What evidence is there that the attrition we see from car accidents is actually a net-loss for society?

Furthermore, is safety the highest priority, or is it balanced with other concerns, including road efficiency?

If safety trumps all other priorities, why don’t we just eliminate roads altogether. We can mandate that everyone wear inflatable sumo suits, assign a personal “safety monitor” to every individual, responsible for ensuring they do not make unsafe choices, and then monitor the safety monitors to make sure they’re correctly monitoring everyone else.

Or, we can accept that life has risks and that “accidental” death isn’t actually the worst thing on a societal level.
It's understandable, but at the same time it also feels like they are pushing away the very people who should be their core customer base.

My paid subscription ends later this month and it isn't being renewed; I'm reverting to the "free" subscription. I'm prefer not to. I would like to pay them for the service they are providing, but like many SaaS companies they have created a pricing structure that does not have anything in between "free" and "very expensive". GitLab might be value for money if you use every bell and whistle in the tier you pay for, but if you don't the value proposition does not seem to be there.

I understand that I'm likely not one of the corporate "whales" they are after, but I would like to think that there would have been a solid, if less profitable, business in providing services to the smaller outfits as well. They have lost me as a customer, and not because I want to be cheap, but because I can't justify the value of their updated pricing model. I would even pay for some of the open source projects I host there because I don't like to be a freeloader, but again the gap between "free" and the first paid tier is simply too great.
OMG, you had the perfect logo in front of your face! Did you really not see it?

Look at your Black-Box, the simple arrow, simple, clean, perfect. That could be used in your Website design too.

Your animal was horrible and the new Airplane logo is senseless, cause you have "Pilot" in your name, but that has nothing todo with an airplane!
That was my immediate impression as well: no differentiation. The new site does look modern and it inspires more confidence, but the old brand had a clear personality that should’ve been preserved in the spruce-up.
Such consulting companies are on paper quite well suited for these kind of jobs: you can easily ramp and down teams in a matter of weeks, consultants already have experience with your project, they do have experts in all possible areas. Additionally, usually upper management in both companies already know each other so if you need something why don't you go and ask a person you know about this? I actually think it's almost sells itself.
Accenture & Co. won't tell you though that the experts will only stay for the first week in the projects (afterwards they need to go and honeypot a new customer), and they won't mention that the developers only need to pass a behavioural interview for getting hired (absolutely no code required) and that they have a constant massive turnover so that people stay usually in your project for 3-6 months, or that there is basically no coder that has more than 3 years of experience.
The agency was a JS abusing their client so idk why you would just lash out at new great technologies when they weren't part of this.
And 40 years ago a much larger part of the world still lived in poverty, communism was still a big thing ruining the lives of many, and don’t forget the stress of the Cold War. Also pollution in big cities like London or New York was a much bigger problem than today, and overall safety in US large cities was worse than today, lots of crime.
Hey, there's a great article in the knowledgebase about Pages and Blocks in Hypernotes. If it's still unclear to you afterwards, feel free to ask a more specific question :)

Link:
https://help.zenkit.com/en/support/solutions/articles/430006...
How many technical books do you read per year?
The Pragmatic Programmer says that you should try to read a technical book once a month. I believe you should read at least 4 technical books a year but also agree that you should aim for 12 books a year.

So, how many technical book do you read a year?
Configuring suspend-then-hibernate is a pain on both Fedora and Ubuntu for different reasons: Fedora uses zswap by default and Ubuntu's swap partition is too small.
The agency I worked for used to offer a "special" for a brochure site. Basically it was a "website-in-a-day" deal. Customer comes to the agency in the morning, meets with designer and manager, and they agree a design (preliminary work has already been done on a logo). Customer goes for lunch, and the design is handed to two devs. Around 4PM the customer gets sight of what the devs have done, and goes home. The devs work on until say 8PM, and probably put in a couple of hours the next day.

Of course, there was then snagging; it wasn't really a one-day job. The whole deal was pretty inexpensive. We used Drupal with a custom theme.

I don't know whether we made money on these projects, but we did end up with a string of long-term customers.
Do any Ruby devs have an idea about how widely exploitable this vulnerability is? The GitHub issue mentions that a file upload could trigger this.

I'm guessing that's because the time zone is included in the "date modified" field, but that's just a hunch.

If anybody is able to quickly spin up a Ruby on Rails app with a file uploader, I bet somebody be happy to bang on it and see if they can get an exploit to trigger. (I'm headed to sleep now, but that will be a fun challenge to dig into tomorrow.)

If this turns out to be something impactful and widespread, I'll tweet/blog[0] about it and give a shout out to anybody that helps on a POC. Raising awareness so that people are aware of RCE vectors like this one is important for making sure people update.

(I'm guessing that somebody clever will figure out a "gadget-like" way to get RCE with this on a base Ruby install by loading in specific files from the disk. Ie, you will no longer need arbitrary file write access to the disk in order to turn this into RCE. That would scenario would make this CVE a much more widely exploitable attack, versus being fairly niche due to needing a more specific setup. I'm no Ruby expert, so maybe I'm totally wrong here.)

0: https://twitter.com/lunasecio
Lots of people with anecdotes of how useless/disastrous big consultancies are.

It's the old "nobody ever get fired for buying IBM". It is easy to justify this kind of outsourcing decision, these are multi-billion dollar companies and they must be that successful for a reason. Right? Whereas if you do something in house and it goes titsup, then the first question will be "why didn't you get an experienced consultancy to do it?"

So my question is how do we influence senior management away from the mentality of employing consultants as they default decision and instead look at all the options fairly.
You almost made even me fall for the bait. Congrats.
I'm surprised not to see this here: https://www.youtube.com/watch?v=9DWLv4tQsz4
"Accidenture" - I think it was a whole satire site originally, but can't find it now. It had been pointed out by some Accenture people I was on a course with.
Great to see them sending over an engineer for this one. Speaks to a kind of openness that's refreshing to see coming from Intel.
to help you understand: you wear a band t-shirt, you meet people who like the band.

the fact you think you're being highly precise and terse and laughable at best. the guilletes are absolutely pretentious as fuck. I assume for somebody like you, your favorite fictional character is Ignatius Reilly. something about feeling seen
What the Future Will Look Like from the 1920's
Yep looks like a serious economist alright...
also Ctrie: "a concurrent thread-safe lock-free implementation of a hash array mapped trie": https://en.wikipedia.org/wiki/Ctrie

So basically like HAMT but lock free.