skysight-inc/HackerNews huggingface dataset:
Generics in Kotlin
Does this work on mobile? When I past a link it seems to clear the input.
It's funny, you actually see this broken incentive system everywhere once you start looking for it. Here's a quick example from outside the business world.

I've been playing with Duolingo. The main incentive is seeing your "streak" increase (the number of days in a row you complete a lesson). You are allowed to make five mistakes total every day on the free version. If you struggle with a lesson, you might use up all five of them, in which case your streak will die. Duolingo allows you to spend points to buy a new thing of five "hearts" (the traditional video game lives). So you have a fairly strong incentive to make sure you always have a cache of points.

Once you blow through some easy incentives in the first few weeks, there aren't that many ways to get points (besides completing more lessons, which you can't do if you run out of hearts). One of the main ways to get points is to do well in the bracketed competition system, where you are compared to 49 other users you are grouped with every week.

Unless you're in the top 3 (hard, because there are a handful of people who treat Duolingo like a full time job), you don't earn any points from your bracket placement. You only earn points from going up a bracket at the end of a week (top 10). Once you reach the top bracket, you don't get any more points. So the system is actually incentivizing you to repeatedly drop down one bracket so that you can climb it again.

(Interestingly, there's a very easy time-zone based trick to get yourself much easier competition because their matchmaking algorithm is unintelligent. All weekly competitions start at midnight UTC on Monday morning, which is what allows the trick to work. I managed to get top three finishes in a pretty high bracket without much work. Been meaning to write this up...)
Believe it or not but some of us still have dumb watches and clocks. I have a dumb clock in my bedroom, on my oven, and below my tv. I don't want to buy a fancy clock. I just want the clock to tell me the time and I don't want it connecting to my network just to be accurate.
Stop thinking about jobs and look at the possibilities in a field, for someone who is expert and able to innovate. That is, identify what areas/activities truly interest you, then look at the leaders in that field and figure out how you could be one of them.
How the Russian government accidentally blocked its own websites
This is my main account. I have no reason to be ashamed for wanting a safe, harmonious, beautiful homeland for my great great grandchildren.
>Twitch.tv is something that amazed me that it became so big.

Monetizing loneliness is how social media companies grow. twitch just has a strangle hold on a specific community that no one else thought of.
I have prepared for my kids smooth gradual "helpers" in Minecraft - I did place command blocks for them first, later I created server mod with custom commands and teach them to write commands. They learnt to try and combine stuff in "command line" and they loved it. It worked great for them, I believe they acquire basic procedural knowledge sofar but they don't reach "java" level yet. I'll see.
Apple denies Parler’s request for re-entry to the App Store
In that situation, the third-party that is actively collecting and transmitting the data becomes a controller and is subject to regulation.

Under the predominant data transfer model, the third-parties cede responsibility by making the data transfer an active behavior by businesses. Ad tech companies can say "We didn't actively collect the data from customers - we passively received it from businesses." That makes a huge difference in term of regulatory compliance.

That said, this has been the most common data transfer model for years. "Data hoovering" is a misconception that allows millions of businesses who actively send customer data to Google/FB to shift privacy criticism onto the platforms.
Interesting point about the info bubble. Hope people had backup/replication plans. The expensive but good side of this might be that OVH will look carefully at their setup and prevent future versions of fires like this and customers will check over their backup/replication plans.
It'd be interesting (though probably impossible to do) to find out how many people didn't have plans setup for this kind of thing.
Haha, it just doesn't work on my old samsung n130 that I still use sometimes, probably due to an unsuported opengl version.
Salesforce cancels huge downtown office lease in SF
AutoDevTech | Developers, Data Scientists | Full-time | Seattle/Remote

We’re building AI/ML to fundamentally change the way devs write code: giving customized, actionable feedback, and researching bugs by learning from existing coding patterns.

We’ve got funding to assemble the early team and are looking for motivated, versatile developers and data scientists that want to build the initial tech/product at an early-stage startup.

Contact careers@autodevtech.com for more information.
Ok, I've upcased the IP. Thanks!

I'll even give you guys leading lowercase, which breaks the usual HN title conventions. Don't let it go to your head.
The idea of focusing diversity isn't at odds with focusing on competence. The premise is that certain groups of people who do not fit the stereotype of a male, nerdy, white or asian programmer are often assumed to be less technically competent because of their appearance. As an Asian male, I can't tell you how often people assume I'm smart just by appearance alone. This leads to a hiring process that does _worse_ at hiring component engineers. Even if they are hired, the company culture might not be inclusive enough to retain them - e.g. lots of women leave the industry for that reason. This also leads to a _loss_ of talent.

It's true that some companies might do diversity poorly and hire solely to hit diversity numbers. I don't personally feel good about that. However, in practice I've seen companies that focus on diversity adopt the practice of putting more effort into reaching out to diverse candidates, but have the exact same hiring process & hiring bar applied to them. Those reasonable companies don't make the news -- after all, the unreasonable stories tend to be the ones that get attention.

Again, it's not to say that your concern never happens. However, framing diversity as if it was fundamentally at odds with competence, especially in a completely unrelated thread about a programming language, does a disservice to both diversity _and_ competence.
An advertisement?
Not sure if you are arguing for or against time zones. Here's my two cents.

I work with a team spread over 11 time zones and talk to them constantly on Slack and email. Time zone math is simple: just add or subtract the offset to see if it's a good time to ping them. I know where people are already. Hard to see a problem with this.

The one thing that's really confusing is daylight savings time. That is a mess and should be eliminated, because every major region does it differently. It's a mess even within regions like the US, where the word "capricious" comes lightly to mind.
Competence and professionalism are not quantifiable; diversity is. Hence, when a $manager wants to improve $project (for a raise), they will invariably try to push for diversity.

This is in the context of open-source projects where identity does not matter (and is often not known).
The 737MAX burns 15% less fuel than the 737, which is the entire reason for building the MAX.
Where are the kanawa tsugi (金輪継) prefabs?
Sublime text used to have a pretty decent Go plugin, but the repository looks abandoned. VSCode has an ok plugin I'm not really a big fan of the editor itself. Outside of that, there's the Jetbrains Goland editor which looks decent but I'm not going to pay for.
Whats the idea you copied?
Google and the core Golang team are getting increasing political and allowing it to leak into the language / infrastructure of the language such a running banner ads for political causes on the main the docs site, https://golang.org/doc. It's not surprising that this makes people feel less welcome.
Ask HN: Compensation across EU/US and freelancing opportunities
I'm a Python backend engineer with around 5 yrs of freelancing experience. My current gig pays me £20/hr and since I'm living in a low COL European country, that's pretty good. The job might be coming to an end soon and I'm considering my options.

I want to hear your thoughts in terms of compensation. First, is £20/hr on-par with other companies based around London for my level of experience? Does it differ for employees/freelancers? Are there countries/specific industries across the EU which do remote work and pay well? Or should I focus more on the US market and specifically SV companies?

Thank you for your thoughts.
It is and on RISC-V 0 (16-bit bits and 32-bit) are an illegal instruction. Jumping to zeroed page is obviously a bug so this is the correct behavior.
"Diversity is our strength"
When the news comes out that a major company has signed a deal with a cloud provider, it's that they've committed to spend $X over N years. Presumably the deal would be renegotiated if their usage changed dramatically, but it is not actually variable pricing.
Because it's the traditional marker for midday. You said yourself that different people want light at different times of day, so trying to accommodate people's needs like that will always fail someone. Why not skew as close to traditional time as feasible, if all we need to do is agree on one standard?
I am not saying that the type is unusable. Plenty of high profile software has been written with C strings too yet we almost universally recognize them today as a mistake.

What I'm saying is that the design flaws of net.IP, the absence of which would have benefited the whole ecosystem, fall into a familiar pattern that can be learned from. It is good to see that addressed, even if by third parties.
> Is a sperm cell alive?

The unfertilized eggs of bees become drones, so they must be alive. As a side effect, this indirectly make bee-like insects evolve a lifestyle with a big colony with a queen.

In fungus, most of the life is as haploid (i.e. a single copy of the chromosomes, like sperm and eggs) instead of diploids (i.e. two copies of each chromosomes, like most of our cells.)

In some ¿unicellular organism? [I can't find a good link now] the haploid and diploid versions are almost equal.

[And plants are also weird, some have 4 or 6 copies of the chromosomes instead of 2.]
I had to reply to you on investment banks. "Look at IBs for examples by the boatloads".

I hope you dont imply banks in general have a culture problem, more than aviation or bakeries ?

Cutting corners is a result of a cultural dysfunction that happens everywhere. The reason why you feel you care about IB is because salaries are high and it was easier to blame them for 2008 than blame the culprits (easy loan policies, millions of voting adults jump on speculative loops in real estate, specialized lenders lying on loan application, US gov exporting securitized debt to Germany, etc... IBs just were a middle man taken by surprise in an ocean of shit everyone was swimming in happily)
The Mises institute, a rotten lair of willful lies funded by the oil industry. I have no idea this misinformation gets posted here.
> (It will take rockets a long time to get to the volume of operations that enables them to match airplanes. But in the long run there is no reason that rockets can't become that good.)

You know, I've read about easy rocket transportation in science fiction for decades. I'm reading _The Man in the High Castle_ to my son now, and it's an example of this.

But I honestly have trouble buying it, and I'd love if you could tell me why you believe it.

For one thing, it will take ages. I'm having trouble finding good numbers, but I think a reasonable SWAG is that there have been on the order of 100 million airplane flights in human history. Rockets have decades of catchup.

And rockets have an inherently worse failure mode. Many airplanes that fail during flight can still land. I don't think this is true of rockets. Failures are vastly more likely to be catastrophic. Is it possible to ameliorate this at all?
Or have the company just define and post business hours that work for them, like all retail companies do.
For anyone wondering:

"The Vitis HLS is a high-level synthesis tool that allows C, C++, and OpenCL functions to become hardwired onto the device logic fabric and RAM/DSP blocks." [1]

The link also has some code samples and timing diagrams.

[1] https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/intr...
I went to see Tarantino’s The Hateful Eight projected in all its original glory. I didn’t like the experience: the jitter, the scratches, the flicker of the blindingly bright snow... And the movie itself didn’t seem all that good.

I watched it three times on a blue-ray I bought a year later, and I loved everything about it, every time.
"The good news is this means the recruiter is incentivized to help you negotiate higher pay"

Not really. Like realters, "Real estate agents do not generally represent the buyer," says Florida real-estate attorney Barry Ansbacher. "But buyers think they do."
Was about to mention Intercom’s startup offer, then found similar offer on your site. Just submitted the form
Breeder sells Python with three smiley face emojis on it for $6k
Is law enforcement in the area such that cameras would be a real deterrent?
it's not a "japanese thing", it was done already everywhere else in the world

i don't understand this pseudo fascination for japan

also, it solves nothing, it is an excuse to not focus on the real problem

the housing market and the insane amount of speculation around it
The solar part, I'm very unconvinced about.

If solar becomes 100x cheaper than today's energy sources, but bitcoin mining still pays a large reward, bitcoin miners will just use 100x more energy, right? They're in a race with each other, it doesn't make sense to leave any extra hashrate capacity on the table since if you don't use it, somebody else will and they'll get more of the block rewards.

Maybe that's fine, since solar is still zero-emission, but surely there's still some cost to producing that energy (such as the space taken up by the solar panels, the cost to make and replace them, etc). Otherwise it'd be free, not just cheap.
Would you be interested in collaborating with someone who has an idea and is on the business side of things? You can always add onto others ideas when working together.

I’d be interested in collaborating if you are.
Exactly. I encourage everyone to become a digital hoarder yourself. See a cool blog post? Assume it will be GONE in 5-10 years. So make a backup PDF copy, and throw it in dropbox. In 5-10 years if you re-encounter that page, and the internet archive is missing the page, you'll be delighted to find it in your own archive, and you can be the one who restores that information to the world.
My first printer was an Anet A8, which lived in the garage due to the noise. I used Octoprint with a webcam to keep an eye on progress, both to abort bad prints and to know when it was done.

I now have a Prusa Mini, which is quiet and small enough to live in a cupboard in my office. It's far more reliable and the print time estimate is so accurate that I don't need Octoprint any more. It also has a USB port instead of SD card, so walking across my office with a USB stick is a viable alternative to sending jobs directly from my desktop browser.

So I guess it depends on your printer - if it's noisy, large, unreliable or you have lots of them, Octoprint is a godsend.
There are people who accept less than a world record

You only have to walk into any local gym to find people who do terrible things to themselves for no more than an Instagram selfie
I guess it depends quite a bit on usage types. I don’t use many web apps, don’t visit many product and landing pages. Probably 90% of the sites I visit on mobile are news sites, blogs, recipes and similar, all of which usually fulfill the basic assumption that there is more content than what fits on screen. Top of my head I can’t actually remember having recently visited a site that had all there is on a single screen.
Would you think the same about speculative social science? Some nerds find theoretical physics especially cool for its own sake, as opposed to say pure philosophy, but this is not most people's position. They think even space exploration, something much more concrete, is a waste of money. Your value judgment is right, and theirs wrong? They're the one having to clean the literal toilets. The thing also is that quantum mechanics was developed with a fraction of today's money being spent on physics.
I love physics. But going back to university sounds like a nightmare. Those halls squash large swaths of neuro-atypicals and swallow you with debt. Luckily we have the internet now and we can learn by ourselves.
Blog Post: Functional Programming in Kotlin
e followed by down and enter produces the following for me, its downright essential snippet code to be on a single character entry for golang:

if err != nil {
return |, err
}

I can't believe how much I need this, on the one hand I love how error handling is explicit, but also the amount of times I handle an error and just pass it means the above code is used a lot.
As a memory aid, Slonik means "little elephant" in Russian, and probably other Slavic languages.
Be real. It is evident that you have created a throwaway account in the last hour for the purposes of making white supremacist comments such as this one on Hacker News. I would prefer if you left, but if that is not something you are willing to do, then I strongly encourage you to demonstrate a modicum of integrity by attaching your name to your comments. If white nationalism is truly something that you believe strongly in, you won't be afraid to do so.
Twitter sues Texas AG to stop “retaliatory” content-moderation probe
Sebastian, the other founder of Userflow, here :)

You'll also be able to build much more advanced and in-depth flows with Userflow, not to mention checklists, launchers and surveys.
I am a bit confused, the only thing I've claimed is that making processes isn't necessarily something you can do because they use up non-negligible amounts of RAM. Sure, for a small static site this amount may not be a lot, but for most websites a hundred MB or more is the norm per tab. When browsers first started going multi-process memory usage ballooned because of the overhead, and while improvements are continually being made keeping everything in the same process would still be of significant benefit to memory usage.
Not just engineers. At various companies I have required every member of the management team to attend one sales call per quarter (enterprise sales; for non-enterprise, a customer).

The CFO is always the most interesting: they rarely really have strong domain knowledge of the details of the company's product in the market (they know what goes into making it!) and learn a lot about how our customers think of our product.
Oh, hi! Original author of Agate here.

The code in Agate is a bit weird, because it started as a 100-line toy server I wrote for my personal use. A lot of the early code was optimized for conciseness rather than maintainability. It also had various micro-optimizations that were probably totally unnecessary, just because my idea of fun involves minimizing allocations and copying everywhere.

As other people started actually using the code, and submitting feature requests and patches, I mostly gave up on minimalism as a goal. The newer code is more focused on maintainability, but it's still mixed together with the old code.

My favorite thing about this project is that, as the community grew beyond my own motivation to manage it, the most active contributor @Johann150 stepped up to maintain it [1], and has done a great job!

[1]: https://github.com/mbrubeck/agate/issues/6#issuecomment-7677...
I read it again - and enjoyed it again (as much as one can enjoy a cautionary tale). Really I'm just curious how such old articles come back to the front page.
Mushrooms can eat plastic, build houses and ease depression
A security-critical webapp written in C! Is there an audit report from anyone who's been at it with a fuzzer?
Or arizona

Also I know Colorado is mountain and it's always either -6 or -7 but on any given day I have to look up which it is. It's not a reflection of my intelligence.
slonik has no knowledge of the pg schema, so it cannot help with this.

You may want to look at something like https://github.com/adelsz/pgtyped. The downside is that dynamic queries are more challenging.

We have been looking at moving over to pgtyped, but it will be a hard transition because we do a fair amount of building up queries at runtime.
The analog nature of binary sex is also a fundamental limitation of biology.

From an information theory standpoint it's fair to model any deviation from the male/female poles as errors in the goal of reproduction with recombination through meiosis.

Your idea of what's technically correct here doesn't survive scrutiny. Errors and ambiguities invalidating abstractions is the behavior of a mathematician or a philosopher, not an engineer.
are they paying for more than basic cable?

I know with my family we aren't
My parent may for netflix
My sister pays for HBO
My wife and I pay for Disney/Hulu (also espn came in the bundle but none of us watch sports but there wasn't a option to not get it)
we all share accounts and each have our profile.
We each have our own amazon prime account but that's more for shipping, with the streaming as a nice bonus.

I will get a free trail to other services and cancel them after i finish what ever show i wanted i couldn't get on the other pay services. which reminds me i need to sign up for a free paramount+ trial for the next batch of star trek seasons.

then there are all of the free streaming services that are ad supported (pluto IMDBtv etc...)

Honestly though other than a few prestige shows (Witcher, Mandalorian, Wandvision, Picard) and reruns of 90 and 00 sitcoms (scrubs frazer freinds) when i cant sleep, or star trek binge when my wife pulls a weekend evening shift at work I don't watch that much tv.

Mostly I just listen to audible or watch youtube
I think that's exactly what I said? This contrasts with the medical school where I guess in theory you could reapply, but large parts of your application are going to remain the same.
I have a few of them blinking next to me. They are fine albeit documentation is severely lacking at the moment, but once you realize how cheap they are compared to the alternatives, new possibilities open up.

Interestingly it's based on a 3 stage core from SiFive, not the RocketChip.
You might be having too many very small moves, which will hurt print quality as well from micro start/stops.

Watch 30-ish seconds starting at 2:57 here: https://youtu.be/Hvw3DrVAeTA
Honest question: how well do HLS tools actually work in practice?

Maybe this is completely wrong, but I have this gut instinct that they must be extremely brittle. That's based on being a CPU/GPU compiler person and knowing, for example, how many difficult problems are still out there for automatic GPU code generation. I find it really hard to imagine that with all the additional challenges you get with FPGAs, that you'd be able to make this really work for anything beyond the most bare-bones examples. (But I'll admit that I don't really know what I'm talking about.)

Anyway, it's good that it's open source. Hopefully more of the magic will be open to public inspection now.
I feel I didn't explain correctly, yes all schools teach algos and data structures, but elite schools literally have a white-boarding class as well, Which is a slightly different situation, not impossible to overcome for one without access to it but acknowledging that people are coming from different places is worth noting, no?
It's highly unlikely any of your problems have anything to do with working from Windows. You're likely to experience the same problems on MacOS.