skysight-inc/HackerNews huggingface dataset:
Built-in map and vector types are generic.

E.g. map[int]*MyType

Using interface{} is quite common in the absence of sum types (or inheritance with base class). I guess interface{} is like Object in Java.

It's not worse than Python or other dynamic languages that many people are fine with. The run-time panics when asserting that a type is something it's not.

E.g. https://go.dev/play/p/c4hx8HSiB8I

That said, no, it's not optimal and could be better (IMHO).
..to take care of all the small spiders who wish to become big one day.
no! there will be only one! BIG SPIDER
This site would actually has a decent font size and a responsive layout (within reason, code snippes will have additional line breaks) but your browser (like all mobile browser) is intentionally pretending to have a larger desktop viewport and scaling down the result. The way for the website to disable this unhelpful behavior is include the following tag in their <head>:

<meta name="viewport" content="width=device-width, initial-scale=1">

It is unfortunate that mobile browser developers have decided to break usability of perfectly fine websites just to provide a workaround for the rare site that has a rigid table-based layout. It is sad that this workaround is still the default now that mobile browsers have a dedicated desktop mode that can be used for such sites.
Ask HN: Is There a Place for Generalists
I am reading through a thread on how to scale a company, and one of the points is replace generalists with specialists. How can a generalist optimise for a long term career.

In tech , how can one thrive as a generalist?
https://twitter.com/Codie_Sanchez/status/1526912303890849796
then you really have your work cut out for you!
There is no "official" way of doing this (as I imagine it will scare people away). You have to export your watch history as JSON that contains watch date and video ID. Then you obtain API key from google and iterate over all video IDs and add up video lengths. Yes, this is inaccurate for cases when you scroll thorugh a video and not watch it completely.

For all of this there were multiple projects on github that do all of this + with plots.
https://www.bloomberg.com/opinion/articles/2022-04-19/the-st...

> Here is how an algorithmic stablecoin works. You invent two tokens, call them Dollarcoin and Sharecoin. ... The process is sometimes compared to algorithmic central banking, where the central bank maintains the value of the currency (Dollarcoin) by adjusting its supply.

> On first principles this is insane.
“Conservatism” is a tent with a lot of different groups, most of whom dislike FDR for somewhat different reasons. There’s small government conservatives like you mention. There are legal conservatives who are animated more by being sticklers for the rules than opposition to government social programs per se. There’s also lots of folks, maybe the biggest group, who like the New Deal but resent FDR judicial appointees for their tendency to ignore clear Constitutional limits on the federal government one hand, while on the other hand reading in lots of restrictions on state moral and social regulation that aren’t so apparent in the Constitutional text or history.
I'm the author. I'll add this in a minute, but all those enhancements can be turned off. According to a developer on the Discord I just spoke to, there's a set of options that makes the game very closely resemble vanilla morrowind.
I sincerely didn't expect that from all the negative comments. At some point HN/reddit started confusing healthy skepticism and alternative views with being an... downright negative and rude.
I am surprised that this got downvoted so quickly without comment. I'd genuinely like to know what the downsides of doing it this way would be. Having to manage your own SSH keys seems like a problem, but I don't know what the others would be since my needs aren't very big.
I use ssh, and a script that manages ssh keys and system user accounts, with a umask change and some symlinks. This means I can add read-only ssh access for deployment keys. The remote address would be of the form ssh://{clientname}[-ro]@domain:port/~/repos/{reponame}.git

The [-ro] gives the readonly access. I use git-shell to prevent normal ssh access to the server on those accounts.
He is not right in the head, that's pretty clear from all that he's said and done. What I mean to say is that someone sane could've handled it well. iirc freenode was already "taken over" by the guy who sold it to rasengan years ago and nobody noticed.
say BTC rises from $30,000 to $300,000. two scenarios:

1. 10% of all BTC holders want to cash out. nobody lost their keys, so 2M BTC hit the “supply side” of the market.

2. 10% of all BTC holders want to cash out. half of them lost their keys, so only 1M BTC hit the supply side of the market.

this is the way it makes a difference. in the latter scenario, BTC spot price would likely reach a higher value.
Hello fellow addict!

Other than just blanket banning stuff (which never works for me), I've tried to make reducing my technical consumption into something interesting. Listening to podcasts on an iPod adds friction, as does writing on an old Psion device. I bullet journal too, it's a maintainable balance right now. Even reading books, any book, nothing technical or what I "should be learning" if I'm not up for it. They're all a nice experience, with (for me) just enough tech involved for it to be sustainable and fun. I've failed too many times to just ban stuff or "not look at a screen".

I love the outdoors when I'm out there, but when someone suggests to just go outside instead of watching a video or playing a game, I just feel guilt and resent the outdoors a little more. Old tech has been a nice, interesting bridge.
I've seen memes showing a news headline "doctors baffled by microplastic in human lungs", juxtaposed with an unrelated headline that mentions face masks are made of the same plastic.
I'm still running gitosis over here because of technical baggage. If I had the time and energy to escape it, I'd move to gitolite.
I’m curious if anyone knows what approach Owl takes to making sure float arrays, complex arrays, etc. are unboxed. (Or if it leaves them boxed.)
As I mentioned in the other thread, I do not think it is useful to use grant price when discussing comp with other people because it is not actionable. People joining Google today cannot rely on another 200% stock growth.

And even if you managed to hit your sign on grant at just the right time, you still were below the proposed “easily 1-2M”.
upscale on iron intake instead
"come over here, this side of the pasture is slighly less kafkaesque"

I think using Apple as the reference here is the wrong kind of baseline shift.
I still get stuff done, but also lose so much time to mindless online consumption.

I read about resetting dopamine receptors, but it's quite hard. A bit like losing weight.
Memo to the Global South: It’s Time to Reboot the Non-Aligned Movement
>also have to factor in Google's size - at a billion users, they're bound to have a lot of unhappy ones, even if they would be perfect

Sure, but the things that Google does to make some of their users unhappy and the total lack of recourse Google makes available to them are decidedly far from perfect. That some people are going to be unhappy no matter what is beside the point.
Creator of HelloInbox here. A bit of context for those who are wondering.

Frustrated with low open rates, I deep dived into email deliverability and discovered a lot I didn't know (and I'm in tech). Fixed and tested everything and tripled my open rates to 65-80%.

As a side-project I decided to build a free checklist and toolkit for others to follow. My goal is to reduce complexity as much as possible and I think I've done to a degree but there's still a lot work to be done especially for people who aren't as tech savvy.

If you think this can or cannot help you, please let me know, I'd like to know why.
Neighsayer.
Happens on any site that uses canvas rendering, especially pdf rendering
Unfortunately, not everyone knows it's a myth. Many people still believe it.
We may just as well call it the InterCage at this point.

Nets are for trapping prey, that part has been completed a long time ago.
> east being more inclined to tear down intact city blocks

I thought this was the other way around in the divided Germany? Many beautiful buildings were torn down in the West to be replaced with modern ones (like in so many other European countries), while East was poorer and couldn't afford the same so ending up with keeping the historical buildings. I've learned that this is the reason for places like Regensburg having an intact historical centre.
As I understand it, the complaint about the "administrative state" is that administrative agencies have the ability to regulate and assess fines or other judgments that should properly be part of Congress and the court system.

For example, the Federal Reserve can assess fines without going to court, like: "Federal Reserve Fines Deutsche Bank $41 Million for Deficient Anti-Money Laundering Program" - https://www.wsj.com/articles/federal-reserve-fines-deutsche-...

Did the First Bank of the US have regulatory abilities and the ability to access civil fines?

https://en.wikipedia.org/wiki/First_Bank_of_the_United_State... says it "did not set monetary policy, regulate private banks, hold their excess reserves, or act as a lender of last resort", which would suggest the answer is "no".

If correct, that would mean it's not part of the "administrative state".
Given the current hubub, you'd think that such studies are the first thing we'd hear about.
I started learning Japanese about two years ago now and now all of the time I used to waste watching YouTube is spent watching YouTube in Japanese as language practice. It's still the same activity but is at least somewhat productive. I barely go on Hacker News too, since it feels like more of a waste of time ("I could be studying Japanese right now!").
This produces a self-unpacking executable that drops all the assemblies somewhere and then runs it. There can be surprising side effects. https://github.com/dotnet/runtime/issues/59715

And check the small print on your platform as to whether it's really single file not requiring any other dependencies alongside it.
> Maybe one of the human gut bacteria could be modified to also produce this enzyme?

Fantastic, now I can not only eat the food, but also the packaging!

Can we get one for cellulose too? Then we can eat pizza while it's still in the box.
It's possible to dislike both.
Among other things, what's happening with Google is the same thing that happens with Facebook and Apple and so on. They got too big, and they don't care, so there are few to no humans involved in human-facing, human-affecting decisions. Humans don't scale well or cheaply, so they automate. Things go sideways as a result. No one cares, because they're too big to have to care about this anymore, and they've switched into parasitic extraction of revenue instead of caring.

And, of course, because they're so huge, any problem that affects a "tiny fraction" of their user base affects a whole lot of people.

They have the resources to not have these problems. That's the bit that should be leading to barbarians at the gates, but, isn't.
Yes, I understand. They prey on the weak, but we are not weak.

They have also threatened me several times over many years.

They will not last long now.

https://gauravgiri.com/for-the-record/an-abusive-relationshi...
Most of the people that I find on IRC are 40+.
You can have virtual game worlds (like a MMORPG) that can't ever be turned off, by nobody. That means your items will last forever. 50 years from now, your sword will still be on your backpack. Can't say that for company-hosted MMORPGs like World of Warcraft, because these companies might go bankrupt, close servers, update items, etc. Not a cure-the-cancer colonize-mars hype level, of course, but it is still an interesting neat thing you can do with blockchains.
I really like AquaMail but the free version is ad-supported and the paid version is rather expensive.
Surprised these horses prefer QWERTY and not BOVINE layout
> Software engineering as a field moves at a glacial pace.

What other industries have you worked in that move faster than software? My experience is that the rate of change is so high and fast in so many areas it's impossible to keep up. Meanwhile in other industries version control still hasn't even gotten as far as track changes in word!
This isn't quite the same thing as trying to scale like Google though. Low latency is very important for usability regardless of how many users you serve. How easy it is to achieve depends more on the geographical distribution of your users than on their number.

If my app has a handful of users that are split between the US and Europe or Asia, and the app is 90% reads, then the distributed DB approach of fly.io or Cloudflare makes a lot of sense. It also adds considerable complexity though, so it's obviously a tradeoff.
> 3 hours daily throught the year, for several years.

So, less than the average amount of time people spend watching TV?
Now, if they would also introduce a way to disable GC and do manual memory management, C# could tackle more systems programming, too, becoming the supreme Jack of All Trades. It's used for: backend, desktops, frontend (with Blazor), desktop, mobile and even microcontrollers.
This is interesting and potentially useful, but by far the most depressing part is the last instruction, when faced with a wall of never-ending logs:

At this point, your best shot is to gather all the data like I hinted at above, and to intelligently engage with the support community of your Android distribution or custom ROM that you would want to fix on your device. Channels to do that could be any of Internet Relay Chat (IRC), an on-topic Subreddit, some bulletin board on the Word Wide Web, a discord server… it’s on you to figure that out.
All calls for censorship should be taken down.
He had a history, he threatened a school but nothing was done. Seems like they are trying to point fingers when really we have a serious issue with treating mental illness and mental health. No one wishes to address the elephant in the room.
There are multiple physical card APIs, costing around 50¢ + shipping to provision cards. All you need is a photo ID and e-signature to start issuing unlimited cards with any name stamped on them in less than 10 minutes.

Notably, these cards require online funds verification and settlement for every transaction. Some cards you might get through a bank or major card company may not, for convenience sake. But these cards do, for the obvious reason.

They're essentially pre-paid cards that load instantly (at the point of transaction) from a larger balance the dev/company controls.

There are even multiple APIs for creating card issuing APIs, checking account issuing APIs, etc. These have itemized pricing that looks more like AWS/GC/Azure pricing and are more complicated to use, in the same way AWS is more complicated than running everything on a single Digital ocean droplet.
In my company CI is pretty trivial. docker build . -t projectname:branchname and push it to the internal registry. For one project I set up additional docker run step to run integration test (it used docker itself so it was not possible to run it at build time which is docker limitation IMO). I remember setting up complex jenkins jobs back in the past, but at this time usually all you need is to build docker container from your project and actual build configuration is inside Dockerfile. And this should not require complex CI (and I spent more than one hour setting up Gitlab CI for this simple workflow). Gitlab CI is powerful indeed, but needlessly complex IMO. If I would set up project for myself, I probably would downshift to simple bash script like I did CI 15 years ago.
The Dumbest Generation Grows Up (Book Review)
Some feedback:

"Helloinbox" should have an option to specify a DKIM selector.

It is not correct to only check for a "default" DKIM selector, since any other selector is just as valid as "default", which in turn means the guide should also be updated to reflect this.

https://datatracker.ietf.org/doc/html/rfc4871#section-3.1
Confidential Machine Learning Within Graphcore IPUs
As I recall the Dr SVD was the license on his second car.
He once left the car at SFO airport and when he heard I was flying
in, he asked me to drive it to his house (keys under the seat!)
What he didn't tell me was that it was a "stick shift" and I only once
before had a friend teach me how that works. After driving around
San Francisco for Gene I got better at it, but it was definitely scary at times.
:-)
Part of the problem is naming. They got it right with Path/PathBuf, but str/String is really confusing.
I touched on that. Their search is highly gameable now, they don't care about correctness anymore. Youtube has incessant ads and their recommendation system sucks - I have to turn it off
Worth noting that inference in "traditional" statistics and ML/AI/DL isn't really that different at some level. In both cases you have an inverse problem; in one case the parameters are about a group or population (e.g., something about all cats in existence), and in another it is about an individual case (something about a particular cat).
I've never understood all the praise Netflix gets for technical excellence (not that they're bad) for running a video streaming site while Youtube does the same thing about as well with the added difficulty of taking in user submitted video with all the technical and legal troubles that entails. I'm far from one to praise Google, but Youtube is an amazing service.
Car production costs did fall dramatically in their first decades. Production learning curves tend to be log log over cumulative volume. So the early gains are gone. It’s easy to forget that mass production of automobiles has gone on for a century.
The time for that was the beginning of the pandemic.
I'm guessing here, but I think the author's intent was to share knowledge that's generally applicable in other software engineering environments, rather than learnings that might be specific to Google (those could be both curiosity-building and/or also frustrating for other people to read, if they don't have access to the same systems).

Similarly, it'd likely be possible to learn many of the same findings at other companies -- Google (and the author) have been fortunate to encounter lots of tricky scaling and human issues in technology, and to evaluate potential strategies to deal with those, and it's good to see that knowledge shared.
Knowing that HN is generally against it, I say it anyway: I recommend religion and religious teachings which address this and many other daily worldly issues perfectly. Christianity and Judaism both have excellent resources. Religious scholars have actually been the best psychologists but are generally dismissed by non-believers.

Edit: for those asking for specific recommendations. It’s always best to find your own path according to the religion of your parents and environment. However, I can suggest that you investigate Mussar and look up some books in English.

“Musar is a path of contemplative practices and exercises that have evolved over the past thousand years to help an individual soul to pinpoint and then to break through the barriers that surround and obstruct the flow of inner light in our lives. Musar is a treasury of techniques and understandings that offers immensely valuable guidance for the journey of our lives.... The goal of Musar practice is to release the light of holiness that lives within the soul. The roots of all of our thoughts and actions can be traced to the depths of the soul, beyond the reach of the light of consciousness, and so the methods Musar provides include meditations, guided contemplations, exercises and chants that are all intended to penetrate down to the darkness of the subconscious, to bring about change right at the root of our nature.“
litestream looks super solid. would definitely consider it for a new project, if appropriate.
For youtube specifically, I found this great snippet for ublock origin. It removes (almost) all recommendations in youtube, which makes it much easier to quit after just one video:

www.youtube.com###secondary

www.youtube.com##ytd-browse[page-subtype="home"] #primary

www.youtube.com##.ytp-show-tiles.ytp-endscreen-paginate.videowall-endscreen.ytp-player-content.html5-endscreen

Source: https://pawelurbanek.com/youtube-addiction-selfcontrol
Aptible (YC S14) is hiring for our secure, compliant PaaS alternative to Heroku
Why wouldn't you try to make all 24 hours a day fulfilling? What is the downside? It's less realistic, sure, but it isn't impossible. That's the answer to "why does work have to be fulfilling?".
When asked why he does it Bertrand replied: Ça plane pour moi.
-Presumably you are familiar with the Finnish Mustikka liqueur already?

Lovely with a little lime and ice, but I agree - making your own is something else!
But those groups are particular ones that are also exposed to other environments that affect health so any discrepancy will be hard to attribute.

Also, doctors did not wear masks to the extend we did during Corona. They'd only wear them during some surgery, not the whole day including even outside.
I wish that Libera Chat would obfuscate user hostnames in the WHOIS...
> especially as you're already thinking about move/copy semantics in modern c++.

The thing is, you can get away with a reasonable sloppy and half-hearted knowledge of those things in modern C++, unlike in Rust, which is of course strict
I also use this method. Getting some front-end UIs to work with ssh is kind of a pain though.

That said, I think what the OP actually wants it a web front-end.
Set out a life goal. Think hard about what you can achieve in that time if you weren't watching videos. This is how you win.
I keep expecting mine to break, but hasn't missed a beat in 2+ years.
Startup idea: flavoured credit cards!
You miss the point

go build

and you get 1 portable tiny executable, provided it is 100% Go code, without any dependency on cgo or OS APIs not packaged into the Go runtime.

These solutions did take off, how do you think Unity games for PS, Xbox, Wii, Switch, Windows 10 UWP, and Xamarin apps for iOS/Android get delivered?
It seems to me that Rust takes a very conservative approach to memory safety - the borrow checker gives you a set of things that are safe, and you figure out how to do stuff with the lego blocks that are given. Over time, as the compiler gets better and better, safe Rust will probably be as powerful and expressive as any other programming language.

I'm looking forward to see how the language develops further.
It’s still possible to automate cert minting. For example, you can have your own internal CA that’s not connected to the Internet.
Ouch indeed. NetGuard was such an amazing app! It was so useful, not only as a Firewall but also as a debug tool! :(

There is no replacement, at the moment.
Google makes boatloads of money, but somehow they cannot seem to implement a good people-focused review system for whether or not apps are malicious. "But that doesn't scale", I hear you say. They could simply hire more people, that scales fine. It's quite simply that Google has never been a people company and the culture has never shifted from engineering first to people first. It is a shame, because this leads to an ever more shitty experience for the humans using their stuff.
I realized I never donated. Usually I do this after using an app for a bit. For whatever it's worth, I feel bad so I will do this now still. If you are in the same situation as me:

https://email.faircode.eu/donate/

IBAN DE31 1001 1001 2620 6925 85 - name Marcel Bokhorst - description FairEmail