skysight-inc/HackerNews huggingface dataset:
IIRC the JVM optimizes very aggressively based on runtime profile, and just adds traps to the optimized-out paths to collect new runtime profile.

Imagine code like this, where at runtime foo is always null

if (foo != null) {
foo.bar();
foo.baz();
}

if foo is always null the compiler will just remove all of the statements inside and places a trap there. If foo happens to be non-null (say, due to external environment changes) then the it hits the trap and the whole method is deoptimized and goes through the profiler again.

The optimizations in the JVM are quite fascinating - https://advancedweb.hu/profile-based-optimization-techniques...
I imagine javascript engines employ similar techniques
Not for technical reasons though.

Also: I've used Rust at work. In fact, I learnt Rust because I was processing a lot of data at work, and needed a fast language to do so in a reasonable amount of time.
Are they using a Facebook dependency? FB has a couple of libraries popular for use as UI libraries.

I didn't think they phoned home, but I could be wrong.
> Also, this is a detailed simulation, so things move a lot faster if you're not spending CPU on graphics.

Nonsense. Rendering a grid of 2D tiles is exceptionally fast, so much so that converting font data into tiles is how you make text grids go faster!

And even if you do have a slow method, you can just run it on a different thread.
Fair enough-- for me a lot of the joy of the game is in using it as a collaborative story teller and filling in the gaps it gives me. Having underspecified graphics gives me more freedom with my mind's eye, but I can understand that not everyone approaches it the same way and wouldn't get the same out of it even with a lot of effort.
I'm curious how you feel about coronavirus memes.
...provides evidence that curcumin is an unstable, reactive, nonbioavailable compound and, therefore, a highly improbable lead..."
https://pubs.acs.org/doi/10.1021/acs.jmedchem.6b00975
Vigilante justice is not the answer.
pg makes a similar argument here : http://www.paulgraham.com/re.html
I seriously doubt cars cause a "racial divide" in any reasonable way.

As for whether I think it's a "reasonable tradeoff". I don't know, but maybe because it's not brought up as controversial by society. This is not a good reason, I suppose, but I haven't really thought about it. I guess I'm mindlessly mimicing the ethics of people around me.
Ask HN: HN or work-alike as self-hostable site?
I'd like to be able to host for a rather different community a site that works much like HN. As near as I can tell the site's source is unavailable. Is there anything FOSS that works similar to HN?
People just dont get exponentials. They don't understand that if you get a total of a million cases in a week's time, most of those cases appear on day 6. They can't see how 1/7th of those cases turns into a million. Every country should be hoping that whoever calls the shots understands math.
Actually that's not true in this case. I believe it was the CDC who said only use our test. I'm not from the States but I believe the CDC is a federal agency isn't it?
We need finer-grained party platforms—so, more of them—so issues that might otherwise advance easily don’t become hostages to wedge issues. But for that we have to make structural changes so more than two parties can stably exist at once—or else so that no parties can stably exist long, I guess.
Being able to run mid-/end-game in grand strategy games (Crusader Kings 2, EU4, Stellaris, Civilization) at a fast speed single-handedly got me to finally build a desktop PC.

I bought the best single-threaded CPU perf I could find at the time (https://www.cpubenchmark.net/singleThread.html) and put it in the smallest case that could support it.

End-game Crusader Kings 2 takes two seconds to simulate each day on my 2017 Macbook Pro. My desktop PC can simulate half a year in that time. I can also play on the largest Stellaris galaxies.

Sooo much more enjoyable when you can run a simulation as fast as you want. Now I can actually finish games instead of bailing at mid-game when things start to slow down.
Donate Delivery
This isn’t even sarcastically funny.
Sed facila. Nenio malhelpas vin uzi vortoj sxati "vieila" (de la ina formo de la franca por maljuna) por "maljuna", sed multoj parolantoj de esperanto eble komprenos.

Lojbano probable havas sistemo por vortoj tiel. Vortoj havas multojn lokojn en la "loko strukturo" de la vorto. La vorto por iri estas {klama}, difinita kiel:

{x1 venas/iras al celita loko x2 el deirpunkto x3 tra vojo x4 per rimedo/veturilo x5}

{lo klama} estas la viro de iri

{lo se klama} estas la celita loko

{lo te klama} estas la deirpunkto

{lo ve klama} estas la vojo de vojagxi

{lo xe klama} estas la ilo de iri aux la veturilo

Multoj lokojn por substantivoj signifas tion {klama} estas kvin vortojn!

Sed Lojbano havas la senvoĉan veluran frikativon (/x/ en la IPA aux "kh" en araba). Estas malfacila por anglalingvanoj.
Did all of them

We would usually program the bass ourselves for the type of music we made but the progressions were battle tested decades earlier
Same here. Podcasts have really helped me stay sane since I started working remote and living alone a few years ago. And there are enough out there now that I can play different types for different moods or purposes.

When I'm doing serious work, I (maybe counter-intuitively) often put on a lighthearted/silly/dumb comedy podcast, and it serves well as background noise. I don't feel any need to pay close attention or rewind if I missed something.

When I'm doing a slow, rote, boring task, or something not too important or mental energy-consuming, or if I'm just in the mood, I put on a hard science or philosophy podcast (Lex Fridman, Sean Carroll, Eric Weinstein) and listen pretty attentively.
Thanks for the kind words and positive vibes. Glad you like it, and I hope it will be useful!
I would love an expert's thoughts on whether something like MathJax/KaTeX can take advantage of WebAssembly for faster rendering. Seems like a perfect use case to me.
Dotmixtape – beach vibes for ur home office
fortnite is better
Indeed, not linking this discussion to `std::move` which is half the reason to do the copying at the callsite is a big oversight.

And not pointing out that a `foo(const std::shared_ptr<Widget>& widget);` should most likely become a plain `foo(const Widget& widget);` with a `*widget_ptr` dereference at the callsite.
It's not that simple, because up to some point, precarious work outcompetes non-precarious work, reducing the later one.

You will see all kinds of arguments and researches, but actually nobody is really sure about what that point is, and if it is a net positive or negative for workers. To make it worse, Brazil is in a kind of unique situation because official work is extremely regulated, while precarious work is well accepted and widespread (and not as new as you think), so one can not even apply the lessons from most of the world.
I think the answer is not so clear in the case of that country.

And I think the very fact that people are not being able to tell that right away tells about the times America is in
It's interesting to me that you focus on the 'high' meaning of sewi, because I've always focused on the 'religious' or 'divine' meaning. So I would hear "lawa sewi" as something like 'religious head' or 'religious leader'. Probably my first parse of "soweli pi lawa sewi" would be 'the rabbi's cat' or something, rather than a giraffe. Or I would imagine an animal whose head is similar to some concept or representation of divinity. :-)

mi wile e ni: tenpo lili la mi mute ale li ken tawa tan tomo awen pi mi mute!
I think I understand what "socialism for the rich" is supposed to mean, but I don't understand how it relates to socialism.

> Socialism is a political, social and economic philosophy encompassing a range of economic and social systems characterised by social ownership of the means of production and workers' self-management of enterprises. [wikipedia]
Run ARM Apps on the Android Emulator
There is already a pretty excellent 3D isometric front end for Dwarf Fortress. The name eludes me but it's well known within the community.

However - I found that many parts of Dwarf Fortress disappointed me (and I was hyped as heck to play it - given that I'm a fan of Nethack, DCSS, Cataclysm, and basically any rougelike or rougelite). The game just feels extremely unfinished. Adventure mode is a total joke. Performance is totally garbage. The creator refuses to open source his game (no one will laugh at you man!). The documentation is horrific (no one quite knows how some of the BASIC SKILLS work or what they do)

It's got the potential to be a true gem, but right now, it's like an uncut diamond in the rough.

Might as well just play Rimworld. Rimworld solved every single problem that Dwarf Fortress had and its world is more compelling to me.
When is an X% increase in GDP per capita worth a Y% chance of death? Illegal migrants perform this calculus every day. Their decisions may be instructive.

You don't see people crowding onto fishing boats or hiking treacherous desert to escape Europe ($38k). We can probably afford to fall to that level. It'll be a major lifestyle adjustment, but a doable one.

Looking down the scale to Latin America: Chile, Panama, and Argentina are pretty okay (~$15k). Less so for your typical American middle-class suburbanite, but people have good lives there. Even Brazil is decent (~$10k). But once we start pushing into Mexico, Colombia, Ecuador, etc ($6-7k) the natives start accepting pretty significant risks to get out.

US GDP per capita is about $60k. Although it will be a terrifying shock, we can probably fall to about 10% of that before things are truly desperate. But once we're talking about killing more than 90% of the economy: yes, people might in fact prefer death.
Thanks a lot, I'm really glad you found it useful!
If you use cage traps instead, you can set up a target range to train your crossbowdwarfs.
Show HN: Gotch 1.2.0 – A simple, elegant and lightweight HTTP client for browser
You know that Bertrand Russell was a socialist/communist right?
If they did, it would raise a ruckus.

There's a lot of developers that rely on these dependencies, and just blocking them would cause a major backlash.
Show HN: I Fixed Apple's Broken Weather Dashboard Widget
It's the reality though
Swift Logging
Hi HN!

This is one of those things that became a bit of a rabbit hole. When I started out, I was just futzing around—I didn't think this widget would actually be fixable—and then once I saw it starting to come back to life, I felt the need to finish what I started.

But also—I have an emotional attachment to Leopard-era macOS, in a way I never have with any other piece of software. I've spent a significant amount of effort over the past year downgrading my life to 2013-era OS X 10.9 Mavericks, and I wanted to have a fully working system at the end of it. Dashboard is a pretty important part of the OS, and this is a signature widget.

A majority of the code in WeatherParser.js is original, and it comprises the bulk of what I wrote. By contrast, I don't understand how most of Weather.js works, and I tried to edit it as little as possible.

Some tidbits HN readers might find interesting:

• The original widget sent a zipcode or city name to the weather provider as input; DarkSky only accepts coordinates. This meant I had to both (A) add another API for reverse geolocation and (B) somehow hold onto the city name so it could be displayed later. The latter may have actually been the big

• I can't figure out what the two big arrays at the beginning of weatherParser.js actually do. They seemingly map weather condition numbers from the API to the names of specific weather icons—but relying on those numbers results in the wrong icons being displayed. (I discovered the right numbers via trial and error.)

• Users of very old versions of OS X (10.8 and older) ran into SSL issues connecting to DarkSky. My suggested workaround: https://forums.macrumors.com/threads/i-fixed-apples-broken-w...

• Timezone issues are fun: https://forums.macrumors.com/threads/i-fixed-apples-broken-w... I was originally calculating the day of the week via Javascript's getDay(), but this doesn't work when users are viewing the weather for a location where it's still yesterday or already tomorrow. Simultaneously, I actually forgot how the original widget was supposed to work, which caused me to misinterpet user bug reports.
In the 3.5" space, "shucking" the enclosures off desktop USB storage devices almost always reveals a SATA 3.5" hard drive.

Kind of surprising that the drive control board in the Passport has the USB connector built right in. It makes me wonder a few things:

1. What are volumes like for 2.5" spinning rust drives? I understand that the vast majority of 3.5" drives go into servers, desktops, or storage devices where they operate on a SATA bus, so the small volume of USB drives are most cheaply made with a housing that uses the economies of scale of that industry and adds a USB conversion motherboard. A decade ago, I would have said most 2.5" drives are used with SATA connectors in laptops, but who's buying laptops that don't use solid state storage anymore?

2. What's the cost difference for a drive control board with optional pads for both SATA and USB, only one installed at a time, vs one that only supports SATA?

3. Can you pull off the control board and replace it with one from the same lineup that uses SATA, like you would in a data recovery operation where some IC on the board burned out? Or is the mechanical component also specialized?
Build a solution for the Covid-19 crisis (April 3 – 5)
Qqqqqqqqqq22222222
Yea if anything a republican will run on this next now that Trump has shifted the party around.
And for mobile readers ;)

# libc6-compat needed by outdated grpc-tools

# we get

# sh: node_modules/grpc-tools/bin/protoc: not found

# can be removed if we remove grpc-tools and assume an existing protoc for dev

# i.e. developers would independently intall protoc in order to generate

# grpc-web

# we install separate from the packages above to avoid a failure noticed on

# 2019-11-01

# apk update && apk add protobuf grpc gcompat libc6-compat

# ERROR: unsatisfiable constraints:
# musl-1.1.20-r4:

# breaks: libc6-compat-1.1.24-r0[musl=1.1.24-r0]

# satisfies: musl-utils-1.1.20-r4[musl=1.1.20-r4]

#RUN apk add libc6-compat
So basically you are demonstrating that the method is more complex than OPs, with absolutely no benefit, which I think was the point.
I have no desire for a new computer. I just wonder whether in the future these small annoyances are going to become non-trivial hindrances to my work.
The library translates into MathML which might not be supported by your browser. There is a ‘MathJax polyfill’ option you can opt into below the output.
> ignore that pile of bodies over in the corner.

“That pile of bodies” is mainly the elderly and terminally ill, demographics that society already seems to have little problem ignoring. Even now the worry among most of the population seems to be that those demographics will overwhelm the health system, preventing everyone else from getting medical attention. But this could be solved by triaging, which is rumoured to already be the de facto standard in Italy (i.e. if you are over 60 and show coronavirus symptoms, other patients take priority over you).

The longer the lockdowns in various countries go on, the stronger I think societal pressure for solution 1) – with triaging to avoid overloading the health system – is going to get.
My question was rhetorical. I was responding to the headline.
There's no guarantee that option 3 can be accomplished in the US. We might aim for it and realize that we're only accomplishing #2 and now inflicted maximum economic damage on top of it.
Economic conditions have real and immediate health consequences too.

For example, in 2010 US unemployment briefly grew about 6% to a total of 10% in the US and there were 40,000 additional deaths from cancer alone[1]. When you consider heart disease, other indications, drug abuse, and suicide, the numbers are much greater. The often cited number of 40k for each percent unemployment may not be far off if these factors are taken together.

This trend also holds true in the OECD where social programs are more common because there are still budgetary constraints on centralized healthcare.

[1] https://www.thelancet.com/journals/lancet/article/PIIS0140-6...

Edit:
Here is a Meta-analysis showing that the risk of death was 63% higher among those who experienced unemployment in the US AND Europe

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3070776/
More please....
>I f the creator cared, he'd make it longer.

I'm sorry, and would like to know how to put it another way to not sound aggressive, but this point is absurd[1].

Length (in this case runtime) of the resulting product has little to no relation to the amount of work or value put into it and its development[2].

1- I'm not even sure why'd you use code as an example, because it is the easiest counterexample to your point. Hundred-line programs can be trivial exercises or crucial pieces of engineering that make or break entire products or businesses (if code should or not be copyrightable is another discussion).

2 - Somehow this discussion also reminds of the time a bureaucrat asked me why I was taking twenty hours to 'read a paper' when it was only a few pages long. I told him it likely took the authors a hundred hours to write six pages rather than sixteen so I could read it in twenty hours instead of two hundred.
A Doctor Was Assaulted on Her Way to the Hospital
You think Zoom is doing it for fun? This is a revenue source right?
It would be hard to formulate a one-size-fits-all solution even if you were talking about relatively modern systems.

There’s a trade-off between having a manual vs. automated process in the best of circumstances. You might think intuitively that an automated process would be easier and more reliable, but depending on local factors for each of the databases, there might be issues like availability or locking that could make an automated solution more “fragile” than simply having an employee with domain expertise doing an update on a schedule. Reliably automating a process like this would require a lot of careful QA.

So throwing legacy systems into the mix would just aggravate this further. It may be that the cost/benefit of automating this just isn’t there. If it’s cheaper in terms of salary cost to do it by hand for N years than the one-time expense to automate, it may just not make sense to automate. (Obviously over an indefinite time scale it would almost always make sense to automate)
> not if they keep getting steamrolled by the opposite party when they insert their partisan clauses into an emergency bill

How have they gotten steamrolled? The Senate Dems won a ton of concessions, and the House Dems will win a bunch more. Getting steamrolled would be giving the Republicans everything they want just to get table scraps, which is what has happened in the past.

> Again, people are dying. This is not the time to use leverage.

People die every day. These "partisan clauses" will save more lives in the long run. Its silly to pass a bad bill to bail out the Cruise lines just to say we did something when we have the opportunity to help people. It's definitely not on the Democrats to reduce their demands on behalf of working people. The onus is on the Republicans to do right by the people of this country, fund the emergency measures we need in the short term, and pass the "partisan clauses" that will make sure people can survive and operate quasi-normally in the long term in case this isn't a quick fix.
The only one of these that I think doesn't work is lupa, which is a hole or opening, which doesn't necessarily have that much in common with a loop. I guess they could both be circular, but lupa applies to any kind of opening, circular or not.
Which is a very good practice if you're in control of the software receiving the error. But so much freaking software doesn't handle this correctly it's maddening and so sleep everything that touches it is the only safe thing to do.
> 2. Security. Not really. He talks about hijacking/terrorism, but these things won't have pilots or free movement on board. Everybody's going to be strapped into their seat for 45 minutes to withstand the forces and the rocket's gonna do all the flying.

It isn't just the cabin that is a potential terror threat, but a huge part of the supply chain and operations/management.

If these are built on water, a distance from land, it should be possible to construct a nearby floating rectenna to crack and cryocool hydrogen and oxygen for propellant via beamed energy from a solar sat. Granted, there is a fair bit of infrastructure requirement, but with interest rates so low, compounding interest isn't a big deal, like it was in the original SPS calculations.
I've been messing a lot of with Blazor (an implementation of wasm support for .NET) and it was possible to write decent CRUD stuff with it, but tooling support isn't great yet

It's tricky to develop "standard" frontend when support for hot reload isn't "by default","dll's" size is far from being small and having to perform workarounds in order to manipulate DOM.

I think it needs to mature - both wasm and blazor because all of those issues were said to be addressed
I have PiHole as well. How to verify that FB SDK requests are blocked by it?
Their warnings are wrong.
I think it'd worth reading that page again with an open mind. If you really read through that and thought that there are no fatal issues that's fine, I don't agree, though I doubt there's anything that anyone could say to change your mind.

But I will retract and restate. The Labor Theory of Value is taken seriously by Marxists because they require it, but in terms of expert opinion it's long since been rejected. If you don't care about expert opinion and are willing to listen to ideologues then you will find compelling feeling arguments for the whole shambolic mess that is Marxist ideology.

The Labor Theory of Value isn't a single flaw in Marxism, but one of dozens of serious points of incoherence. Marxism is an anti-empirical archaism of the Victorian era. Marxism is built on a dialectic that literally cannot reveal truth. Marxism makes many predictive claims that are false. Russell took apart the contradictions and irrationality of Hegelianism a long time ago and ended Hegelianism in the Anglo-American philosophical world because of it.
I have to say, agressiveness of USA capitalism is shocking to watch.

moral bonus: ability to 'explain' it that is just because you can claim unemployment benefit.
Inspired by the Overcast variant of this kind of tool, I built a very basic browser based version using canvas and various web audio/video apis. It was fun to build over a couple weekends, but it ended up not being usable broadly due to speed (runs in realtime linear) and browser limitations of file export types (webm in chrome). If ffmpeg could reliably run in wasm, there could be alternative approaches. I concluded after I built it, I should make a headless non-browser version and it would be more usable, but haven't gotten around to it.
Another related urban legend in the marketing world, the flip side of this anecdote: A low-calorie, healthy soda called "Tab", sold in the USA in the 70s, once sold a version that actually tasted good (Tab Orange). Sales stalled. It turned out that the people who wanted to drink Tab didn't want it to taste good. They wanted to feel healthy and virtuous. If it tasted good, they would not feel like they were sacrificing for health. They later repackaged Tab Orange as Fanta Zero, and it did well.