skysight-inc/HackerNews huggingface dataset:
I work at Rakuten and my perception is that they do not really value engineering much. It is just a cost to be minimized.
I’m a tad disappointed by how limited the op-z is in comparison. I thought the pocket operators were amazing, so amazing I bought my friends some, but the op-z was a bit underwhelming honestly.
It seems weird to me because governments like to drive demand for their own currency by requiring taxes to be paid in that currency.

If you let people pay taxes in assets then demand for dollars would drop, and that’s a big source of American soft power.
Ah, memories. Visiting India, my company driver used to get upset if I actually answered his calls, since that would cost him money. I soon learned to decline the call and call him back instead.
> A productive investment in infrastructure [must]:

> 1. cover the costs of the infrastructure investment,

> 2. pay for the ongoing operations and maintenance of that infrastructure,

> 3. create enough wealth to ultimately pay for the rehabilitation and replacement of that infrastructure, and

> 4. provide a return so that our communities can increase their consumption (i.e., improve their quality of life).

#3 is a duplicate of #1, and #4 is certain if #1 and #2 are achieved. So really just #1 and #2 matter, and I do agree with those two—but how do you measure the ROI? Are we any good at estimating infrastructure construction, maintenance, and deprecation costs, or measuring (and taxing) economic impact of said infrastructure? My impression is no, because if we were there'd be tons of companies out there building toll roads and railways instead of the government having to will infrastructure into being.

If the author's so concerned with Chinese ascendancy, maybe look at how to get the 1.1 billion extra people the United States would need to compete. (Hint: immigration.) Unless they think there's some magic sweet spot beyond which each additional worker is more liability than asset to the economy?

From the site, it's clear what Strong Towns is against ("wasteful" infrastructure), but less so what they're for (Self-sufficient-at-zero-growth infra? Agile Manifesto approach to infra?).

Speaking of manifestos, I'll leave you with this: "[Capitalism] has subjected the country to the rule of the towns. It has created enormous cities, has greatly increased the urban population as compared with the rural, and has thus rescued a considerable part of the population from the idiocy of rural life." -Marx
Frankly, one of the best things we could do to help this hypothetical future language be adopted is to have precedent for Linux using another language.

We're really trying two things here - getting Linux to use some Rust, and getting Linux to use some other language, with an independent compiler. That second part is pretty significant by itself (we've had discussions about build systems, compiler ABI bugs, etc.), and even if we were just trying to add C Except Different, it would be a major project on its own.

Once we've figured out how to make them interoperate and what the ground rules are (architecture compatibility, where new development goes, whether the new language can be mandatory, release timeframes, etc.), a third language will be on much better-explored territory.

(I do actually think that Rust is pretty close to ideal for the Linux kernel as it currently exists, though! As I argue in https://ldpreload.com/p/kernel-modules-in-rust-lssna2019.pdf / https://www.youtube.com/watch?v=RyY01fRyGhM , a lot of Rust constructs happen to match idioms and abstractions that the kernel uses with C. But yes, there's a lot of research on both good kernels and good programming languages yet to be done.)
my dog certainly knows the words 'outside', 'treat', and 'friend' (for dog friends). she also knows 'go say hi', which is permission to approach a stranger (more in hopes of treats than pets, if we're being honest).
Bizarre syntax, crazy resource paths, whole directories just to define one function, etc etc etc.
TTS: Fast Text-to-Speech for All
Check out silero-models, available in colab with 10 speakers, running 3-4 RTS on one CPU core:

- https://github.com/snakers4/silero-models#text-to-speech
- https://habr.com/ru/post/549482/
https://vscodethemes.com is pretty good too.
Not to mention that becoming rich usually requires participaing in some kind of scheme that transfers money from vast number of people poorer than you into your pocket.
Coinbase is not just a retail exchange for crypto, just like your bank is probably not just a retail bank.

There is a whole professional services coinbase for institutional investors, custody, etc that has a huge potential.
If you are unclear between AMF (bed nets) and AI Risk, and you find AI Risk dubious, then donate to AMF. It sounds like you're complaining that your choices have been pared down to two, and you don't like one of them.
I can't give you any links because it's not open source code, but there was a bug fix in 0.790 named "Don't simplify away Any when joining union types" that caused me some problems with bad annotations in the existing code: The annotations implied that Any was possible, but it wasn't, but it got dropped from the final Union by the bug so we never had to handle Any. Dataclasses have had some backwards-incompatible improvements as well.

But the big culprit is typeshed. Something will get new/fixed annotations and suddenly you aren't handling all possible return types in your callers, or whatever.
SpaceX raises $1.16B in equity financing
It's interesting to read this article in these times of side-channel security exploits --- and remind yourself that covert channels are very difficult to completely eliminate, not just inside computers.
You don’t need to use bitcoins to use signal for messaging.
Load Scripts Asynchronously
We know that German, Swedish, etc, descended fron the same old language that English descended from, and the pronouciation of those languages is very similar to the pre-shift pronounciation of English.
I initially downvoted this. I've reversed that and decided to reply.

HN is bigger than it used to be which has helped introduce an Eternal September effect, but HN is the funnel for YC. You need an HN handle to apply to YC.

For people interested in starting a business and applying to YC, there is potentially millions of dollars at stake. Especially in the beginning when it was smaller, your comments here were used to help them evaluate your application to their seed funding and business mentorship program.

Lots of latecomers seem oblivious to that function and think it's just a silly discussion forum. But there are people who still know better and the people who understand that what you say here can make the difference between becoming the next Reddit (a YC company) or Dropbox (another YC company) or never getting anywhere with your business dreams help skew conversation here in a more serious and respectful direction than you are going to find on most forums that really are just discussion forums and that's it.

That's not what HN is. HN is the foyer you have to get through to have any hope of joining a large and powerful "old boys club" that has created many millionaires in a relatively short period of time.

Being an ass here is a good way to be politely turned away without ever knowing why: "Sorry, not YC material." Because they pick which applications to approve and fund primarily based on the people, not the idea.

That's not a secret. They talk about it incessantly. Anyone who doesn't know just hasn't paid attention to the huge volumes of info they put out about their application process.

Their "No assholes" rule is widely known.
Ansible looks fine when you start, but gets painful.

You need to write idempotent ansible from the start. No excuses.

Then you would implement a retry logic in ansible since your cloud APIs will fail for weird reasons or you really must wait that a resource in AWS is truly ready before you run another task. ( for example vpn gateway in AWS must be ready and then you can attach a vpn connection, or a route53 zone record has to propagate before you do something with it. But in the meantime your other tasks can continue in parallel. Only the vpn tasks needs to wait)

Then after a while with all your resources created with your idempotency implemented in ansible, your code will roughly first check ( with timeouts, retries) if you actually can skip tasks since there is nothing to do. The checks increase, your playbook takes longer and longer to execute. Maybe you try to parallelize it in some way.
In the meantime a colleague of yours executes the same playbook in their machine or pipelines, and now you see weird side effects. Maybe you start implementing some locking behavior.

At this point we did not do any code reviews yet and we did not answer the question: “how should the infrastructure look like?”

This especially means: how do you actually delete resources with Ansible? So you Start to introduce a kind of “state” for your resource.

So, if you squint hard enough, idempotent, resilient, parallelizable, thread-safe, fast ansible with a state is what terraform solves.
If you look at tools like terratest you even get to do unit/integration testing for your infrastructure code.

So as soon as you are more than 1 person handling infrastructure following best practices like code review and testing, without getting insane, use terraform.

If you are alone and don’t want to follow the above best practices, you still have to be very good in writing idempotent, resilient ansible code.

My hypothesis is that the intersection of people who write high quality (idempotent, resilient) ansible code but people who do not care about code review/testing, is quite small.

Once you do not work in isolation any more, either in a team or as a consultant who needs to hand over their work (and Teach people how idempotent ansible works), I would favor terraform any time.

You could even call ansible from terraform if you need some ansible integration, where ansible has a nicer api for you. But let terraform handle the retries, state management and ansible could just be the executing part. So ansible is more like a fancy bash script/function which you call in an orderly manner.
STT: Fast Speech-to-Text for All
Fast STT models rivaling Google

- https://github.com/snakers4/silero-models#speech-to-text
- https://github.com/snakers4/silero-models/wiki/Quality-Bench...
- https://habr.com/ru/post/519562/

Disclaimer, this is my project
What I find interesting is that users voting on other's comments seems to have become the assumed best way of organizing user-generated content. In my mind, I think the question isn't "do we allow or disallow down votes," but "should we even let users vote?"

My impression is that voting systems ultimately end up as popularity counters, and that in and of itself can skew the motivations of participants. Additionally, there's motivation to maliciously hide opposing viewpoints, late-comers rarely get to meaningfully participate due to their "score" starting lower than longer lived and thus higher scored content, and well-intentioned discussion about contentious or nuanced topics can easily get buried.

What the "best" way of sorting user content is will surely depend on the goals of the platform, but if deep, informative discussion is the goal, maybe using a popularity contest isn't the right strategy? Perhaps giving the users choices of sorting by new/old, most/least discussion, most/fewest replies, etc... might be a better option? And/or some other non-vote driven method? Of course you'll still need good moderation and a way to flag inappropriate content where a user's ability to flag is kept in check by some combination of the length of time that user has been active, his/her level of participation with the platform, and the number flags said user has received, but overall I suspect this would keep the general user's focus on having actually productive discussion instead of trying to get that dopamine hit from making a well-liked comment.

I should also say that I've been mostly pretty pleased with the quality of discussions on HN and I appreciate the good moderation and the general populace's desire to share quality information/opinions/thoughts. But I do wonder what will happen if it becomes "too" popular and if there are things that could be done to keep that focus on quality discussions even in the face of a massive influx of users.
The coins stored on Coinbase (and other crypto exchanges for that matter) are at all time lows, people are self-custodying their coins and using them on decentralized protocols where they don't have to trust centralized 3rd parties. Coinbase is just one player in the whole space.
To be fair, Behringer is priced right, great prices for low quality gear.
> "I like the idea of paying to downvote"

This reads to me like charging people to pick up trash while they're out walking. Voting is a mini-act of trying to improve the site for others by sweeping trash comments down and out of others' way and lifting good comments up to prominence; who would pay to do that? Who would think it reasonable to expect people to pay to do it?
The true story of how the FBI cracked the San Bernardino shooter’s iPhone
Not too different from the 1s and 0s in your bank account. I bet you use cash for less than 1% of your transactions. Everything else is 1s and 0s.
hundreds? try thousands.
Because someone who created an account yesterday is no better or worse than anyone else.

I've been here for well over 10 years and this place has always been filled with complete buffoons and parasites.
A lot of things are jargon that are not terms of art. When I was practicing law, a lot of people in my legal circles would jokingly refer to their spouses as their "domestic associates". That's not a term of art, but it is lawyer's jargon or an idiomatic expression.
>I'm glad to see more corporations stepping up and enforcing laws and morals.

You mean enforce your view on morals. I suspect you would be less happy if corporations enforced the morals of the quakers on what you were allowed to do.
Pair AI Explorables – Is the problem in the data? [video]
I once had someone try to tell me that python was "untyped" - I guess people assume a lot when they come from a first-class statically-typed language.
Biden's jobs plan is largely a fig leaf to the poor rural voters that believe America has left them behind.

Initiatives like 100% rural broadband are less about making the most efficient use of resources, and more about attempting to bring some money and jobs back to bumfuck America.

The author makes the mistake of framing the Jobs Plan as inefficient in the goals it was designed for. It's not. Everybody knows investing in podunk towns that peaked half a century ago is a "waste of money". The Jobs plan contains these measures in an attempt to reduce the vast inequality between these places and wealthy "hub" cities that produce an ever increasing majority of US GDP.

Will it work? I have no idea
I can't seem to find the exact quote, but

> Dynamically typed languages are actually statically typed with precisely one type: hash table.
DreamCoder: Growing generalizable, interpretable knowledge [video]
> Like, what is your "I don't care for subsidies" threshold?

People that have a higher standard of living than me seems to be a reasonable cutoff, why should I live in a small apartment but pay for your gluttonous lifestyle in a McMansion?

I'm all for a bit of wealth redistribution, but from poor to rich is the wrong direction.
It focuses on tech stories from other countries besides the USA (but written from a distinctly US point of view).

Top stories on the front page right now:

* Fighting brain drain and creeping authoritarianism in Russia’s techno-utopian village

* A defamation lawsuit in Singapore sets a dangerous precedent

* Peru’s surprise presidential front runner has fewer than 8,000 Twitter followers

* The mysterious user editing a global open-source map in China’s favor

No thanks - I'll stick to reading international media.
It's important to distinguish between sorting in code point order and sorting according what a user would expect for their language. However, sorting in code point order (which is actually equivalent to sorting by memory comparison for UTF-8) is enough to build an inverted index data structure, commonly used for fulltext search. And just like FridgeSeal asserted, the memory footprint of the text representation has performance implications for such an application.

(Source: I wrote a search engine library.)
That unnecessary secrecy/deception angle I've never heard before, but it's a really good one; totally agree!
AFAIK, using copyrighted data to train does not necessarily make the trained model "toxic". "Authors Guild, Inc. v. Google, Inc." case [1] is viewed as a key precedent for this view.

[1] https://en.wikipedia.org/wiki/Authors_Guild,_Inc._v._Google,....
This is not a thing that a court can authorize.
I see what you're saying, and you're right, I am mistaken. Thanks!
projectM

https://github.com/projectM-visualizer/projectm#readme
It's a bus, rather than point-to-point. Schemes to address devices on the bus separately exist. You could call them "channels" even. RS-232 can't do that, as it isn't an electrical bus. Respectfully, you're confused.

Since tty's are fairly well married to a serial port, adding an ioctl() (or similar) that would switch channels would seem likely. RS-485 would provide a way for that to work not just with ptys, but with real physical devices as well. With reasonable backward compatibility.
Ukraine was a repeated experience https://en.wikipedia.org/wiki/Budapest_Memorandum_on_Securit...
Stacks (YC S14) is running an Accelerator program
The newly announced Stacks Accelerator program is accepting applications for the first cohort until May 14th, and the program is set to run between May and July of this year.

This is a 3-month mentorship-driven program looking for teams that are solving real-world problems and building projects unique to Stacks.

More information can be found on the accelerator website and in the announcement presentation, but in general, the program provides:
1) workshops with experts
2) a network of 50+ mentors
3) dedicated EIR for each team
4) demo day with investors and media
5) alumni community lifetime membership
6) experienced accelerator staff(including Trevor Owens and Alex Novosad)
7) up to $50k, no valuation cap

Announcement Presentation: https://www.crowdcast.io/e/stacks-special-announcement

Accelerator Website: https://stacks.ac
You want equality to return False for unrelated types for when you have dictionaries with heterogeneous types as keys.
Not sure if I agree with the author's equivocation, but it's still not an effective use of resources (i.e. land), in that a large piece of land in the middle of a populated area is "developed" but in an empty and useless way.
Govt doesn’t get any money from the interest paid. The underlying asset can eventually be sent offshore, put in trust or whatever, and never be taxed.
GiveDirectly has a lot of experience with cash transfers through M-Pesa and similar systems. I don't know exactly how much corruption they have to confront, but they might be better at cutting through it than you'd think.
> It looks like Logica code isn't actually translated to a (large) SQL query, but Logica code is dynamically interpreted by some interpreter that calls into a SQL database as the virtual machine.

Actually, I might have jumped to a wrong conclusion. I really don't know if that's what happens here, but if not then it would imply that recursion isn't actually driven by the evaluation mechanism, but by Logica creating enough tables for a given program to ensure that iterative evaluation of rules ends up with a fixed point result set. Not quite sure. None of the other examples show recursion in the SQL output itself either.

Well, at any rate I'd like to learn more about the actual mechanism here but they are a bit light on documentation.
apparently nobody else sees a win here either.
I imagine Erdogan will use the proceeds for a good cause, such as himself.
> (A harder problem is Japanese — Japan really got screwed over with Han unification, so choosing Shift-JIS over any Unicode encoding is often best.)

This statement needs more support. I think “screwed over” is a bit harsh, since I’m not aware the impact on Japanese was anymore than the rest of CJK. Despite the Han unification controversy, Unicode has been heavily adopted in Japan. The space requirements are basically the same as all CJK. Half-width kana is heavier since they are one byte in shift jis but they’re relatively uncommon.
How to resize an image view to fit a container view in SwiftUI
> all run by white European men in their twenties, I should say

Why should they say?
Can you inspect inputs from terraform resource attributes or data sources in the procedural evaluation?
Has anything changed for Intel chips? Or is it just for ARM? The ARM support is new but it is not quite clear to me whether there is any difference for Intel.

> which features full native support for Mac computers equipped with either Apple M1 or Intel chips

Looks like there are some more details on general changes in [0].

[0]

https://www.parallels.com/news/press-releases/show/pd16-for-...
Wow, I think my experience has been different. Redditors seem to pile on a 'wrong' opinion and downvote to oblivion, whereas HN seems more evenhanded to me. I'm sure it depends on the subreddit though.
Sure. So it's possible to focus on getting rich and then never give back. There's a solution to that, which is continuing to give a percentage of your income.

Some people are quite charitable and give 10%. I'm a little more selfish and give 1.5%, but this is already currently helping people.

Is it really pie in the sky idealism if (statistically) I've saved around 6 lives to far, (and helped many more). Still early in my career, and lots of time to go. I hope to cross 100 someday. But I started just as I graduated and have kept it up every year.

So I suppose the next question in my rebuttal would be to ask what alternative you suggest?
I remember a guy telling me he was shorting Google after it IPO’d because of the volatility in yahoo at the time. I told him that was a bad idea.
I wouldn't go that far, despite having made an early decision to support only UTF-8 in my own software.

UCS-2 is in fact broken, but UTF-16 is a valid encoding of Unicode, which can be implemented correctly. So is UTF-32, although I can't imagine why anyone would want to use that one.

I can imagine why someone would want to use UTF-16, though: interoperability with Windows, where it's the native encoding. It isn't "wrong, period" to do Unicode in a way which is more convenient for the platform.

There is, of course, a ton of work to really implement Unicode correctly, and UTF-16 and UTF-32 can make it tempting to do the wrong thing, instead of biting the bullet and implementing all of the many ways in which codepoints coalesce into grapheme clusters, and making sure all functions for working with strings can recognize the distinction.

But it certainly can be done in any of the full encodings.
The article mentions that MyPy and PyType use two different type system models and therefore may report different errors.
Does it make sense to use both of them on a large codebase?
I've been working with MyPy for a while and it has gotten pretty good and fast. Assuming PyType is a valuable tool, I think I'll try adding it to our CI pipeline and see if we get new typing errors.
Its amazing to me that despite our enormously powerful PCs and wonderful modern software tools we still rely on foundations built in a different time tty, awk, even bash scripts.

Half the time its great to work with such finely tuned Darwinian survivors, the other half I want to start again. Doing helm k8s yaml templates makes me wonder if its possible for us to write something simple and clean that could replace those old building blocks.
Comparison is the thief of joy indeed.