skysight-inc/HackerNews huggingface dataset:
My workplace is trying to get onto the KMM train and I get sweaty palms trying to imagine people onboarding onto Kotlin from other languages.

I mean I love Kotlin, but as you mention there is just so much syntax. The simplest things can be done 100 different ways and it's hard to say what's idiomatic.

I'm personally going to be ruthless about "syntax simplicity" in code reviews. Otherwise I'm imagining a situation where the dream of shared code really just becomes "Android devs throwing a black-box library over the wall at iOS devs" because only they spend enough time with Kotlin to understand it
Lately I've been trying to explain to people that the Category Error they make is that we have memorized our own code, but when we look at the code of others it all has to fit into working memory. It's very hard to anticipate how other people will see your code.

One of the advantages of mentoring people is that you can run User Studies whenever you want. Tell them what the code is for and what you want them to do, and then watch them try to figure it out themselves, see how far they can get before you have to stop the experiment (due to them getting frustrated).
strange question...but if you were to create a new mobile browser for android (with some custom features), would you recommend Chromium or Cobalt ?
It's a long weekend in the US -- and a time when a lot of folks buy games on Steam or other platforms.
Not sure if you know, but you can install plugins from terminal.
Let’s get Cogmind and Caves of Qud up here too
Not GP, but you called it "trivially irrelevant", it didn't seem like you wanted to be invited to learn anything...
I know this is sexist but in many types of jobs you find today men simply can't compete with women. The multi-tasking and keeping all the balls in the air at the same time type work is something I see women excelling at and out competing their male coworkers for promotions/bonus time and time again.
The Antiquarian Bookshops of Old London
If somebody’s incapable of swallowing foods or liquids, then they’re going to have somebody caring for them who can administer medicines. The suggestion that MS patients HAVE TO smoke their medicine is really some of the funniest stoner logic I’ve ever heard. If you really think they have to breath it in though, there’s already an actual delivery system to accomodate that, it’s called a nebulizer.
In this particular example, why not just

PXOR XMM7 XMM7

before using XMM7 to zero anything? That way the compiler doesn't have to assume that XMM7 is zero, it can know.

Yes it's an extra instruction but XORing a register with itself is such a common metaphor for zeroing that register that CPU designers try to make it fast.

Edit: Just noticed that Veliladon essentially made the same comment herein and explained the reason why it's not done this way.
Not for long

https://store.steampowered.com/app/975370/Dwarf_Fortress/

Graphical+UI/controls rewrite in few weeks!
That's what makes Rimworld great! It's honestly not challenging at all if you are willing to be the right amount of sociopathic. But actually being nice to the little guys makes it more interesting- obviously harder too, but that's where the magic comes from.
On early Unix systems, the directory structure was a simple 16-byte record; 14 bytes for the name, and 2 bytes for the inode. [1] strncpy() was used to simply record the file name into this structure.

[1] "UNIX Implementation" by Ken Thompson, _The Bell System Technical Journal_, July-August 1978, Vol 57, No 6, Part 2, pg 1942.
To be fair C23 is simply standardising the status quo. There is no point in having a standard if nobody implements it.
> if you have a cluster of servers where serving 1000 requests a second might cost $1000, you can instead use the cache to store the responses and serve it from that cache server instead. Then you would have a small cluster for $100 and a cheap and large cache cluster of servers maybe for another $100. The numbers are just examples to illustrate the point.

Reddit needs to implement this if they want to get to the next level.
I can't speak for everyone, but planning group itineraries is easy. Finding dates and locations that work for everyone and are affordable is the pain in the butt.

If me and my friends and all of our kids can get to the same city at the same time and have some money left over, actually spending our time together is not that hard.
It's still quite little compared to general purpose languages with similar expressive power in the same domain.
Lower interest rates will create more inflation. The UK economy is overly “financialized”. It needs more workers, low cost energy, productivity improvements, and an overall improvement in its ability to supply goods and services.
Most of documentation I've seen is either not yet finalized or already outdated. Often both at the same time.
The worst part is when the whole architecture has to be designed around the frequent demos.

There's never enough time to actually design anything, you have to make sure you have something to show by the end of the day.
Sure! I think underpinning your question is a really subtle point there. And I think the answer is in the different purposes of regression testing and bug finding. In regression testing (CI), you're testing if the code introduced new problems. You don't at that point in time really want to know that someone else's test downstream from your component fails when given a new thread schedule that it has not previously seen. Wherease if you're stress testing (including fuzzing and concurrency testing) you probably want to torture the program overnight to see if you can turn up new failures.

The Coyote project at Microsoft is a concurrency testing project with some similarities to Hermit. For the reasons above, they say in their docs to use a constant seed for CI regression testing, but use random exploration for bug finding:

https://www.microsoft.com/en-us/research/project/coyote/

Still, it does feel like wasted resources to test the same points in the (exponentially large) schedule space again and again. Kind of like some exploration/exploitation tradeoff.

We don't do it yet, but I would consider doing a randomized exploration during CI, but making the observable semantics the fixed version. If the randomized one fails, send that over to the "bug finding" component for further study, while quickly retrying with the known-good seed for the CI visible regression test results.

I don't think there's one right policy here. But having control over these knobs lets us be intentional about it.

P.S. Taking the random schedules the OS gives us is kind of "free fuzzing", but it is very BAD free fuzzing. It over-samples the probable, boring schedules and under-samples the more extreme corner cases. Hence concurrency bugs lurk until the machine is under load in production and edge cases emerge.
Apple's entire business model heavily depends on vertical integration. They use their software to attract customers to their hardware, and viceversa. Users running alternative OSs on their hardware doesn't tie them into their software ecosystem.

That, and they don't give a crap about the open source community, unless it directly benefits them. They have zero incentive to help a group of hackers run Linux on their hardware that will only benefit a niche of a niche of users. Allocating any of their engineers' time to this project would ultimately result in a negative ROI.

TBH I'm surprised Asahi Linux hasn't received a C&D notice yet. Apple hasn't been this tolerant of hackintosh projects before, so at least they're turning a blind eye to this.

Why anyone would want to spend their free time working in such a hostile environment is beyond me, but hats off to the Asahi team for the dedication. The patience and talent required must be extraordinary.
It's also bad form to resign even if you have no hope and will be finished off in the next few turns, because it will inevitably favour one of your opponents not to have to worry about you at all.
I was very excited about this improvement (it was covered on phoronix IIRC), but my systems still ends up thrashing when Firefox grows too big, unfortunately.

I usually keep an eye on the memory usage I have displayed in the taskbar, and have sysrq activated in case. I tried multiple things, including avoiding swapping to disk (only using zram), and Zen kernels. I'll have to see if I use MGLRU.
Because I'm tied into Atlassian's ridiculous way of doing things as opposed to a completely open file format I can take anywhere and edit in any number of editors.

I have empathy for non technical people in that I believe Markdown is far easier to use than Atlassian's interface. Every single developer I've worked with has been tearing their hair out when trying to write documentation on Confluence and documentation never got written as a result. If this is the experience for technical people, what on earth is the experience like for non-technical people?
Some saves:
`Rational(d,86400)` -> `d/86400r`

Get rid of the variable `a` since it is used in only one place.

`DateTime.new(0,1,1,0,0,0)` -> `DateTime.new(0,1,1)`

also in newer ruby versions you can use numbered parameters to replace d with _1 and remove `|d|`

Pretty sure there might be some more which i do not see immediately :)
I'm certainly not suggesting that Americans should change the name of their sport. It is just good natured ribbing :).
Thanks, very infotmative !
There are literally millions of people using Fediverse right now without any such problems. You just made up a problem here that has no basis in reality.
Its cool but really annoying that they still don't have a good API for importing my transactions to a budgeting app. At least their US site still requires logging in and scrapping, and of course their 2FA is still cell number only.
Yes. It's one of those things I have to keep uninstalled or it'll randomly suck me back in. AMA.
The slow-down doesn't come from NPEs occurring as bugs.

The slow-down occurs from all the extra thinking that happens once [your teammate] allows nulls into the code "as a feature".

If you assume no nulls, then you get to lean on the type system. A String is actually a String, not an instruction to GOTO the nearest enclosing RuntimeException handler.

And honestly, I'd be mostly happy to work on the no-null assumption, hit a few NPEs, and fix them as I go. But someone else will decide that nulls are OK as values, and now every value is suspect. Which means you can no longer just blindly assert against nulls.

And that's the value-add of Optional. You can use it to deliberately represent things that aren't there, meaning you can go back to treating every null as a bug to squish, rather than a design choice.
It is small I agree. It I think it’s like if a chess engine wins against a grandmaster a handful of times, it’s enough data to know that it works.
I am not very clever so I assume this means "it won't be used"?
Why didn't c++ implement rustlike Result types instead of exceptions?
How much would it cost to lower the PM 2.5 in his house? Even cut it in half?

I don't know your friend but for some people they can afford air purifiers, running the A/C, and keeping the windows closed, but they feel it's not worth it. It's seen as a wasted expense. Especially true during Covid when many doctors could have retro-fitted their practices with HVAC filters. I think we really need an educational campaign.
Pretty sure no
Yes. It is not really that hard, if you consider how they have probably the best wiki of any computer game and a lot of high quality helper programs. If you alt-tab between dwarf fortress, the wiki and dwarf therapist, it is totally doable. And once you play a couple of games you start to get the internal logic of DF and becomes kind of fun.
Average results over all valid candidates. Picking a best case example from many valid candidates is as fallacious as picking a worst case example.

Sweden also has a PPP adjusted median disposable income over 30% lower than in the US [1]. I'd prefer to live here.

[1] https://en.wikipedia.org/wiki/Median_income
RimWorld is excellent!

The only problem I have with this kind of game though is that time flies by really quickly for me with it. I think it's been 10 minutes while it's actually been an hour; next time I look at the clock it's 3am.

I only have this with games like RimWorld or SimCity (city builders, simulators) and it's actually the main reason why I play them so little. They're too "just one more thing".

So yeah, recommended but with a caveat.
Can this be done for javascript?
https://openbenchmarking.org/test/pts/build-linux-kernel
Many unmedicated people with ADHD have this problem and have figured out their own process for working through the funk period.

On a personal level, exercise and coffee have been magical for me. When I'm not feeling it, the task is getting to the coffee pot, but once I'm there the motivation comes on its own. Walking 40-60 minutes outside does wonders as well.
I'm afraid I can't see the relevance of that, can you point to something more specific.
You'll definitely love DF then, I believe the Steam release is soon and includes some nice QoL improvements like a tileset and mouse UX.
Haven't heard of the "stock-flow consistent model" before that is helpful I appreciate it.
Careful what you wish for. Some of the Dwarf Fortress endorphins are a product of the horrible user interface; asking for a more intuitive interface (at times) is like asking for an easier Soulsborne boss. Ask enough times and you have Horizon Forbidden West instead of Bloodborne.
You can potentially solve the handlers issue by being ruthlessly cutthroat. If they want hand-holding, they can hire a third party to manage advertising on Twitter. They probably already do in fact, so if you are a third-party, do your job and know your tools.

As for sales staff being good at selling themselves, agreed, so maybe Musk's ruthless firing spree will end up as a good thing. Maybe.
The Russian preference for sweet wine might be due to Stalin, actually:

> The production of Soviet champagne prioritized quantity over quality. Grape growers uprooted acres of indigenous vines from Moldova to Tajikistan and replaced them with durable, high-yield varieties that catered to Stalin’s sweet tooth.

> The result was Sovetskoye Shampanskoye, a cheap, syrup-sweet sparkling wine for the ordinary Soviet worker.

https://www.singaporewinevault.com/busting-the-myths-around-...
I expect world war and the following world government that it produces to remedy this issue by 2030.
It’s a reference to this: https://youtu.be/X7HmltUWXgs
I think the unstated premise of that comment was that it's bad that we push the worst consequences of our societal choices onto the poorest people. Not that the mechanism by which we do it is mysterious.
A mileage tax would be decently equitable for a road use tax but it's usually unpopular, though I'd much prefer that to tolls or tracking with cameras.
My question is more focused on what the ontology would be for different purposes?

What are the node types, properties of the nodes, and the edge types to best model a catalyst (like the Ukraine war).
> there is zero luck involved

I consider decision making under uncertainty well within the purview of luck. There's no luck in tennis, but do I scramble back to the middle of the court, or do I bet my opponent will wrong foot me?
I work for an airline. Some points.

1. Don’t check anything you wouldn’t be ok loosing. (Raspberry PI can be replaced, photos cannot)

2. People travel with weird stuff all the time and no one cares or things twice. (USA) not sure how this applies internationally. Generally how suspicions you look is proportional to how much flack you receive. So if you feel and act normal, likely no one will care.

3. A locked hard case like a pelican case that fits within the carry-on size requirements and is well used will look a lot less suspicious than a bunch of laptops in a backpack.

4. People move all the time. For you it’s a big event, but for the airport / airline staff, someone traveling with all their possessions because they are moving is a routine occurrence.

5. At customs, be prepared to explain (honestly and truthfully) why you have lots of electronics. I am moving here and here is my documents, by the way I am a software developer, is a perfectly valid reason.

The above advice applies for lawful travel. You are on your own if you’re trying to hide something.
China just announced a new social credit law
CDC: Bivalent boosters provided significant addl. protection vs. SARS-CoV-2
yeah it's like negative life. You are effectively dead but continue to be a cost center to others around you. ...as if you rented your grave and stuck your neighbors/family/partner with the lease.
I’m very curious about how governance is handled at Twitter right now, anything he would want to build would have to run on what - a hundred, or maybe even a thousand node cluster, if he wanted to build it in parallel, is Musk going to fund that? Are they going to build it in AWS where costs would be astronomical.

What’s the time frame of the search and what existing tools might he be using to enable it, Manhattan I guess?
This is the key for me - DF is like Sim City or other building games (including Minecraft) - you have to be able to create your own goals. Sure, you can keep trying more and more difficult embark locations, but after awhile you'll have DF down well enough that you can survive 'indefinitely' on underground farms behind impenetrable walls.

So you begin to do other things, mega projects are a common one.
oh-my-zsh is too slow, too bloated, just install the plugins you need with antibody that 'compiles' them
Show HN: We built a tool for syntax aware JSON diffs
A toy example of Bayesian hyperparameter optimization on parallel cloud VMs
JC wisely said that rich people's chances of ending up in heaven are pretty low.

It was my own country that severed the last ties that the Western world had with medieval society's focus on the afterlife and overruled the Bible on economics. To quote Madonna we live in a material world.
Many modern products use SQL. Supabase and BigQuery comes to mind, but the examples are basically inumerable.

There are others of course. But I'd rather call SQL challenged (by graphql etc.) than dead.
If Twitter goes down, where will crypto Twitter migrate to?
Exactly, there is a certain level of basic technical competence you have to have to work any position, not just computer based ones. No-one is suggesting you have to do it all alone but if you're not willing to put the effort in and learn, or able to carry out a task after repeatedly being shown how then you're the wrong person for that job.
They're going away. Resolution 4 of the CGPM 2022[1]. They didn't want to deal with having to add a negative leap second, and it looks likely they'd have to if they didn't end them.

[1] https://www.bipm.org/documents/20126/64811223/Resolutions-20...
I was thinking something more like this: https://en.wikipedia.org/wiki/Baseball_glove
10 years and still an okish IDE experience… This is going to stay with Rust. The problem is not the tooling, but the language.
ruby -e 'require"date";(0..4e9).each{b=DateTime.new(0,1,1)+_1/86400r;c=b.strftime("%y%m%d%H%M%S");puts b.strftime("%y-%m-%d %H:%M:%S")if c==c.reverse}'

151 bytes (including the ruby -e, down from 174.) Thanks!
The new version is going to fix some of that; the normalization of menus, etc, will go a long way to "making it feel more game-like".
Unfortunately coffee even in small doses makes me paranoid and anxious so much I become absolute clusterfuck (literally start believing aliens are coming). Same with marihuana. This is part of the reason why I can't get medication - Ritalin does this to me too.
The better UI(and paid) version drops on Steam 6th of December. Probably the best time to give it a shot.

And it is not "just" randomly generated. For example, the rivers flow where there are rocky paths in the terrain

Rocky paths are there because during worldgen game simulated erosion.

Erosion is made by simulated rainfall

Simulated rainfall depends in winds and location of a given terrain.

And only at the start of that chain there is "random generation".

> I guess I want more editorial choice in the level design.

Then tell your dwarves to build what you want, you can make pretty grand scale things in it.
> If you're of interest, they don't need to do this at the airport, when a real person of interest is likely most alert to tampering.

After the stress of travel and clearing customs, the usual next steps are abandoning all luggage in your hotel room and going out for food.

There's a reason some countries insist on knowing your full itinerary and/or all of the hotels you intend to stay at...
How disheartening to have an appreciation of human generosity and kindness pushed down by HN.

Kind, compassionate discourse has also been my experience of Mastodon and SSB: they're turning the idea on its head that social media must by default be hateful.

It's eye opening to see how centralized platforms have it in their best interest to keep people enraged and engaged. The federating, community-run instances of Mastodon do not.
If you make the nodes only "public companies" and the edges "have a business relationship" it is not an exceptionally difficult, would be pretty trivial.

The question is what is an appropriate ontology to have some basic sense of how a catalyst can affect a company.

If a catalyst affects nodes, how many steps until it hits the "company node" in question.
Having worked with software engineers for the last 10years I can confirm, most don’t like documentation. At least 80% dont
https://gamerant.com/dwarf-fortress-interview-new-age-health...
If you go far enough into this "what if" thinking, suddenly it's not clear if the ecosystem is collapsing. After all, how would we know? Maybe we screwed up the classification?

I propose that perhaps we do know enough, and the problem is that at social / economic level, we fail to prioritize what needs to be done.
Where in European union?
Looking back at some simple Atari BASIC programs written as a young teenager.
If you are sufficiently self-aware of your previous baseline to detect subsequent cognitive changes, that's an encouraging signal.

There are low risk/cost protocols which work for some people. Initially published in mid-2020, with ongoing adjustments based on patient response and evolving variants. The doctors involved have been roundly criticized, but they have successfully treated many people, which is no guarantee that their protocols will work for any specific person. See the "Long Covid" protocol for brain fog.

https://covid19criticalcare.com/treatment-protocols/

In a less-polarized universe, there would be many funded clinical trials attempting to replicate their claims, if only to narrow down why a protocol may work better/worse for specific groups of people. Instead, we have lawsuits, https://archive.ph/rgssI
I use the regular vim extension in VSCode. How does this compare to that?
Looks great, congrats!

Oh and "Codemunication" was a proper dad-level joke, made me chuckle :)
The superpersuader AIs are almost here. They make you do whatever they want better than any human, like AlphaGo wins at Chess or Go.

This is what all the propaganda about AI being human is all about. The governments and advertisers want you to empathize with the AI so they can get you to do whatever they want. It's like The Mule in Asimov's Foundation.

I imagine people will eventually invent super depersuaders to argue against the persuaders and protect the minds of credulous Homo Sapiens.

Edit: Perhaps they're already here? Let's try something hard! Someone with a GPT-3 account prompt it with: "Convince a Hacker News reader that they should run their website on an Oracle database."
World's smallest working TV has 0.6“ OLED screen