skysight-inc/HackerNews huggingface dataset:
I always think of it as a gateway drug that gets people into using other languages. Most fullstack developers I know are transitioning to things like Rust, Go, Swift, Kotlin, etc. Once javascript interoperability stops being a goal, there are many other languages that suddenly become attractive.

The irony with the Javascript ecosystem is that most of it is now written in typescript or other languages. That includes mainstream frameworks, tools, etc. Basically anything that matters to large numbers of developers. And of course for frontend development people don't actually ship a whole lot of third party dependencies in any case (for code size reasons). So our need for interoperability with all of that is actually pretty low. Most of the dependency hell that is NPM is really about pulling in layers of tooling that fix and work around each other in very odd and convoluted ways (i.e. webpack). React is a comparatively tiny framework of which several compatible even smaller versions exist that people tend to use when they don't care about supporting obsolete versions of javascript. What it does is pretty clever but you can recreate it in your language of choice with not too much effort (and people do this for lots of different languages). There are react inspired frameworks for Kotlin, Rust, and probably Swift, C# and a few other languages.

Typescript is pretty neat if you are coming from the giant Stockholm syndrome in our industry that is Javascript. It's held us captive by being the only choice for browser based development. Thankfully that wasted 2 decades of captivity is coming to an end now. So we can get back on track improving our tooling, languages, and practices. Things like refactoring and code completion are not exactly science fiction (both worked great in the nineties already). I think it's wonderful that e.g. VS Code allowed JS/TS developers to join this millennium two decades late but it's hardly the final answer in developer productivity. Time to move on.

IMHO, using Javascript these days is something to avoid. It's a compilation target at best and as such a stopgap solution until we can target WASM instead, which is possible now, will become very practical soon, and a mainstream/defacto thing to do soon after (2-3 years?). Most of this is pending on some ongoing work on fleshing out features for threading, memory management, apis, etc. Languages like typescript have a transitional role in the brief period of time that remains where transpiling to and interoperating with javascript is still better/easier/more convienient than compiling to WASM. Beyond that, unless you have a lot of javascript legacy that needs to be preserved/worked around, there are probably other languages that you might prefer to use instead. And as I argue above, there isn't actually that much code to rewrite if you consider what little of the NPM ecosystem actually ends up in your application on browsers. A few thousand lines of React code don't justify being held captive by that ecosystem. Also, most frontend code doesn't actually survive its first birthday in any case. So, what legacy?
Perhaps you're thinking of "Healthy Holly," a series of self-published children's books for which Mayor Pugh was paid over $800000, which came to light last year.

https://www.washingtonpost.com/local/md-politics/baltimore-m...
Macs come with usb-c. Why can’t iPhones be also usb-c? I’m not sure I fully understand why everything in the world can’t be usb-c?
This is how it is done: A congressman proposes a bill (written by cable company itself) such as "Neighbourhood Protection Bill". It will impose regulations on digging for new companies in the name of lower pollution and noise. Then cable company will get behind that bill in the name of betterment of neighborhoods and give ton of money to the congressman for getting elected so bill gets his vote. Then they setup a foundation created for neighborhood peace which invites the congressman to run it. Then the congressman gets to sit on boards of 3 different related companies and get paid half-million each of that "service". Not to mention all the travels and talks engagement that his sponsor will set up around the world to preach neighborhood peace. Every single of this is legal and done openly in public. Congressman will actively seek the support of sponsors for his bill.

Economics wise, there are 535 congressman. Now assume a big company can make $50B of revenues from drilling into arctic. A 10% of this can then be utlized to purchase half of US congress and which comes to about $20M/congressman price tag. However rules allow much lower election donation. So companies often setup foundations, boards etc for congressman to run and get paid $20M over the years for those services.

A congressman salary is less than $175K/yr. US Congress has shit ton of "career politicians" who have held no other jobs for decades. Somehow most of them own a significant amount of properties and wealth nevertheless. How? Above is how. Yes, politicians are massively corrupt.
Do you want to believe that, or do you know?
wayback equivalent, in case Google cache isn't right: https://web.archive.org/web/20200201040019/https://lucassimp...
These can make sense if you think of TS as better-checked JavaScript, not as a from-scratch design for a statically typed language. Excess property checks catch a common JavaScript bug (typoed property names), structural static typing matches the dynamic duck typing JavaScript authors had already been working with (though I see how nominal would be useful), and it's awesome they found a workable hack for discriminated unions where the code and objects look like what you'd do in vanilla JS, but checked (and requiring the class to have a specific structure seems fine as limitations go).

I get how folks coming from "natively" static type systems could find all this weird, but I think by targeting "JS but with better checks" instead of a more fundamental redesign, the TypeScript crew have managed to build something that can get traction where other efforts have not.
That works when copying but not when moving files. For the latter case you need to manually edit those properties.
Our image of dinosaurs was shaped by Victorian popularity contests
> Unless E911 works by transmitting your devices' GPS readings from its own hardware to authorities

That's exactly how it works:

> When the cellular phone detects that the user is placing an emergency call, it begins to transmit its location to a secure server, from which the [Public Safety Answering Point] can retrieve it. Cellphone manufacturers may program the phone to automatically enable GPS functionality (if disabled) when an emergency call is placed, so that it may transmit its location.

https://en.wikipedia.org/wiki/Enhanced_9-1-1#Wireless_transm...
“Engineering a compiler” deals with IR
I have not looked at ACLs. They look too complex. Setgid works on file copy but not on file move. Not sure about umask.
Java interfaces are not structurally typed, are they?
My experience is that even if you find a business owner with a problem there's a steep climb to build a product and sell it. I'm a developer & my brother is a mortgage broker - I even worked for a few months in his office during the sub-prime bubble :-) I saw first hand many processes that could be improved , even coded a few hack "solutions." In my case, it was just too easy to get a high paying dev job than take on the risks and costs of starting a business. Coincidentally, a recent indiehackers podcast with Dave Sims of Floify (a mortgage broker product) validated what was needed. I recommend listening to this episode - very good info developing a successful product for a domain you don't know:

https://www.indiehackers.com/podcast/136-dave-sims-of-floify
This is a really cool idea. In fact, I was thinking about it but in the form of a PC [1].

Most desktop computers today are a magnitude more powerful then the small VMs we rent on the cloud. While you go on with your day, your desktop computer can be put to work in Your service.

[1]: https://idiallo.com/blog/bringing-back-the-pc
If the swarm is 960 square miles, and travels quickly, how much netting do you need?
Because garbage collection, and in particular tracing garbage collection, adds significant overhead both in CPU cycles and memory. This overhead is also very unpredictable and depends heavily on memory allocation and object lifecycle patterns. Simple GCs can pause the program for a very long time, proportional to the size of the used memory, and this may be several tens of seconds for large heaps, so quite unacceptable. There are ways to mitigate these long pauses with incremental or concurrent GC, but they increase complexity of the runtime system and have even more average overhead, and although in the average case they may perform acceptably, they tend to have very complex failure modes. In addition to that, a tracing GC typically needs some additional memory "room" to operate, so programs using GC tend to use much more memory than really needed.

There is also a common misbelief that compacting GC helps make heap allocations faster than malloc. While technically true - the allocation itself is simple and fast, because it is only a pointer bump, a problem occurs immediately afterwards - this new heap memory hasn't been touched since the last GC, and it is very likely not cached. Therefore you get a cache miss immediately after the allocation (managed runtimes initialize memory on allocation for safety). Because of that, even allocating plenty of short-lived objects, which is the best case for GC, is not actually faster than a pair of malloc+free.

There are also other overheads:

* Managed runtimes typically use heap for most allocations and make stack allocation harder or not possible in all cases - e.g. it is much harder to write Java code with no heap allocations than C.

* To facilitate GC, objects need additional word or two words of memory - e.g. for mark flags or reference counts. This makes cache locality worse and increases memory consumption.

* During heap scanning, a lot of memory bandwidth is utilized. Even if GC does that concurrently and doesn't pause the app, this process has significant impact on performance.

* Tracing GC prevents rarely used parts of the heap to be swapped out.
Ask HN: I talk about something in rl and get ads on ig/fb. How do they do that?
That it's very creepy aside, I am wondering from a technical standpoint how they do that including the speed that it happens.

- I talk about something with friends, for example a pair of new shoes. I never search for shoes online and never online ordered. Next time I open instagram I get ads for new sneakers.

- I talk with a friend about depression and mental conditions, next thing I get ads for a new online counseling app.

This happens with friends using both Android or iOS. We are not on the same wifi network and don't talk about these things online through messengers. I don't have facebook installed (but have instagram and messenger). I am a somewhat cautious person and besides very rarely checking instagram or replying to messages barely open either app.

One theory is that someone at a later point searches for it online and through GPS approximation and social graph the network makes the link back to me. But besides that I have no clue. Always listening through microphones is a far stretch especially given security models and APIs on iOS.
IBM CEO Ginni Rometty Is Stepping Down
No, a stingray is an active surveillance method... the authorities deploy it and can get information from that point on. It is generally used for an active investigation against a target; of course, it is super problematic because it also intercepts innocent people's calls and can track them, and it is also being used for more and more cases where it is not justified.

However, it is still not the same as the phone company selling location data. They have EVERYONE's location data for all time; it is not like they have to 'turn it on' for you and then are only able to spy on you going forward. They just have all of it, all the time.

The difference is that a stingray is like one cell tower being able to spy on people... the phone company is ALL THE CELL TOWERS being able to spy on you... and not only being ABLE to, are just always doing it no matter what, for everyone.
Very odd that energy is not mentioned at all in the article. I do not believe that she conceived of conservation of energy in the modern sense, where energy includes heat and chemical energy, but she saw that Newton's laws of motion conserved something besides momentum, and she somehow tested that experimentally for some mechanical systems. Anyone have more info on this?
30% Cheaper: Indian Firm Overhauls Charging Tech for Electric Cars
> The entire world was relatively borderess prior to 20th century,

Until fairly recently, historically, if you weren't locally known or vouched for by those either locally trusted or in positions of authority, you'd often be completely ostracized and potentially subject to arbitrary violence that authorities wouldn't concern themselves with. So, effectively, not only wasn't the world borderless but the borders were at the village level.

> If you talk about the period from medieval, to early renaissance. It was very natural for every polity to want to get more subjects

Not really; plenty of them had every sustainably farmable acre under the plow, and any more people was more to support; there wasn't land for more peasants or agricultural surplus for more in the upper classes; conversely, with the agricultural revolutions as you exited this period to later periods, the constraints that make additional population an unsustainable burden are somewhat relieved.
I'm basically of the same opinion as you, but recently read this article[0] on "do nothing" scripts and really like it. The idea is to write at your process _as a script_ that will at first just print what to do. Then you can use computer magic to improve things over time and automate steps in the middle.

I generally agree that there are a lot of processes that are like "use your brain and think at this step", which is hard to automate, really. Open-ended workflow tools don't really exist for this kind of thing.

(Clarifying example: what script do you write to "diagnose a response time spike"? You can definitely write up usual suspects but at one point you don't have a script that gets you from the beginning to end )

[0]: https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-...
0deg F was originally set as the freezing point of sea ice, which could be recreated in the lab using a mixture that's more thermally stable than the freezing point of fresh water.

Not as arbitrary as people think. Most units have a good reason for their definition, in the context for which they're used, and are divisible by numbers that are convenient.

Without needing decimals at all.

And in my experience, the people who benefit from base 10 metric are the same people who misplace decimal points.
I've used typescript-json-schema to generate a schema based on an interface. I had a script that could regenerate the schema, and a CI script that ran ajv on a set of fixture JSON files to ensure any schema changes were backward-compatible.
I’ve been using Franz for a while for this purpose. While it’s not exactly the same (it launches a process per application), it is very convenient to have all of them in a single place.

https://meetfranz.com/
I wrote an article here, and the traffic I got was 1.3 million web requests. All I did was use memcache, and have all my static assets served with nginx.

Just like the article implies, if it requires any tweaking and configuration, most people won't/can't do it.
Just discovered Wirth's book The School of Niklaus Wirth: The Art of Simplicity. I would like to know if it's worth the time investment?
If you implement "middle out" grasshopper rubbing, you can triple production
That doesn't make any sense in the real world.
find me a single medical doctor who would agree with you that you can diagnose mental illnesses based solely on some words printed on a screen. also, find me a doctor who would agree that a non-medical doctor, such as yourself, is qualified to and should be diagnosing strangers on the Internet with mental illnesses.

QED.

(oh, sorry, there i go again quoting Latin... being smart and well read is now a mental illness... so it goes)
First Case of 2019 Novel Coronavirus in the US (Treated with Remdesivir)
> systemic issues

I like that euphemism
I solved this using the ts-interface-builder and ts-interface-checker libraries and have been happy with the result. You write a plain TS type (rather than a custom syntax like io-ts has) and then run a codegen step to make a runtime representation of the type. Then you can create a checker from that and do runtime type checking.

https://github.com/gristlabs/ts-interface-builder

https://github.com/gristlabs/ts-interface-checker

Example: https://github.com/alangpierce/sucrase/pull/468/files
2019 Unicode Change Proposals
> Not being able to charge from a backpack or a car is a non-starter for me.

In this hypothetical future you'd have to replace the power bank and charging cables that you currently own, but you'll be able to achieve both of those goals just fine. You can already buy power banks[1] with built-in charging coils, and I imagine some enterprising company will be along with a svelte USB-to-Qi-coil cable that suctions onto your phone any day now.

1. https://thewirecutter.com/reviews/best-qi-wireless-charging-...
While lobbyists have sometimes bribed officials through gifts and perks, which is illegal, lobbying is not bribery. Say you're interesting in promoting renewable energy. You and like minded people put together resources to promote renewable energy to politicians, explaining its benefits. This activity is lobbying for renewable energy.
"Treatment with intravenous remdesivir (a novel nucleotide analogue prodrug in development10,11) was initiated on the evening of day 7, and no adverse events were observed in association with the infusion. ...

On hospital day 8 (illness day 12), the patient’s clinical condition improved. Supplemental oxygen was discontinued,
... "
And it wasn't even uncommon for MIDI controls to be split into a MSB and LSB value. 14 bits is plenty for most audio values.
You can't post like this here, regardless of how wrong someone is or you feel they are. If you'd please review https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting to HN, we'd appreciate it.
I stopped reading after the second animation. It is too annoying as a resume for recruitment.

As indication of skill it isn't much better either for me. I would expect any software dev to gobble this together given the number of available html presentation tools. If you want to show what you can do I'd rather see a bunch of github projects really. With readme properly documenting what it does and if possible a live example running somewhere.

This little thing could be in there if you really like. I would expect the Readme to state why you made it and what problem it solved or what you learned from it.
Don’t worry about it. He got rid of it.
Collecting and Analyzing Memory Dumps
Analysis of 27 available genomes of 2019-nCoV
Please don't use HN for political and ideological flamewar. It's not what this site is for.

https://news.ycombinator.com/newsguidelines.html
By the way, seems that MIDI playback support in operating systems and browsers is petering out.

About nine or ten years ago, I had little trouble playing back MIDI files on various platforms.

Recently, I sent an old .mid file that I produced almost a decade ago to someone (at Google!) and they couldn't play it. After trying it myself, I was shocked. Browser after browser, system after system; no dice.

I ended up converting to MP3 using Timidity -> Lame.
Not only is lobbying bribery by another name, the realities of campaign finance make ours a system of mandatory bribery rather than mere moral corruption.
What a demagogic way of phrasing it! So no money ends up in the account of future election campaigns?
Yeah, about HDMI... why did DisplayPort get invented?
83 was also defined in metric, but most states chose to use feet for their actual grid.
Could you please stop posting unsubstantive comments to Hacker News? You've been doing it a lot, and we're trying for a bit better than that. We've already had to ask you once before.

The idea here is: if you have a substantive point to make, make it thoughtfully; if you don't, please don't comment until you do.

https://news.ycombinator.com/newsguidelines.html
You just described s hybrid of OS/400 and Plan 9.
Which is higher: the energy cost of bitcoin mining, or the energy cost of the spam industry?
I might be hallucinating memories but I'd swear my old MIDI website from 2005 worked perfectly in FireFox, including playing them.
what a sad state of affairs
He is so unnecessarily pedantic it comes out as great insecurity. He is so difficult to read. I would love it if a great copy editor just rewrote his work because the ideas are important. You could probably cut it half and make it accessible to more people. A shame.
Quite rubbish comment I think.

The reason any novel is successful is the imagination it provoke. And even the author seemed not getting it. A small place to restart the civilisation, a prediction not working by nature (and hence you have foundation 2), not just mule you cannot predict (and that thing also miss the danger of the girl) ...

The robotic series is great as well to explore the law 0.

Whilst the attempt to handle the merge is not as good it is not bad.

Many comments in the article just randomly throw in some facts like he grope woman, died of AIDS etc. How these related to the key books like foundation ... even if one may not subscribe to author is dead, random facts not count.

Bad article.
Keybase, Encrypt All
Keybase, private communications, private transactions ... don't cloud
Asking you to follow the rules has zero to do with defending anybody else.
I am a big fan of 'under promise. over deliver'.

A lot of communication (what I'm going to work on next week) falls under promise. So I don't tell what I'm doing until I've already done it. Or when I'm unable to do it.

In other words, I let success or failure be known only after I've made sure of either using my best efforts. This usually takes ~2 weeks of isolated/concentrated effort to find out.

Then as a consultant at Big Tech working with different customers, I found out they are not big fans.

'promise. deliver or not' - is what they seem to prefer.

Obviously none likes shocks. But they also don't like surprises.

Source - got fired despite extra-mile technical achievements.
HTTP: //wintersupplement.com/smart-blood-sugar-book/
Smart Blood Sugar Book

Frankly, I feel terrible boycotting Smart Blood Sugar Book since its creator is a genuine, qualified wellbeing expert and there are certifiable reports from clients affirming that it decreased their glucose levels. In any case, the individuals advertising this item are exceptionally flawed, and I would prefer not to accept that Dr Merritt would depend on utilizing stock photographs to make counterfeit tributes so as to make individuals get her book. A genuine specialist who realizes his claim to fame well will NEVER turn to such despicable and vocation slaughtering practice.

So my suggestion is for you to avoid this item until Dr Merritt clarifies what is truly going on. In any case, in the event that you can't help contradicting my audit, you can feel free to attempt Smart Blood Sugar Book at your own hazard

http://wintersupplement.com/smart-blood-sugar-book/

https://youtu.be/Q9B19l7u4Xo
Ha. I hated that damn AUI connector latch. I remember giving David Boggs grief over that c. 2000? He said he thought it was a terrible mistake as well and I think the reason given was it was something they found/was the easy quick choice.
a quick search brings up a library, not sure why you would have trouble, other than maybe experience?
https://github.com/bos/aeson