skysight-inc/HackerNews huggingface dataset:
I’ll second the point about explicit types at module boundaries and add:

- Ideally they should either not be derived types (using eg type parameters), or if they are they should be derived using types from the same layer of your project/service. This makes it much more likely you’ll notice if you introduce breaking changes.

- Types should also between network boundary layers and business logic, regardless of your module structure. This ensures your business logic’s interface is clear regardless of how it’s consumed, making it more easily testable and more portable (eg to other transport formats/protocols).
I used more than I can recall. The browser is a creative tool and being able to use all the creative features is great actually.

Just editing your profile picture is a good idea to do on the client side, why waste CPU on your server for example? I do photo editing a lot in the browser.

This is a feature that benefits everybody and the fact that it can be abused is unfortunate, but not as tragic as you paint it.
Ask HN: What to do with my IPO proceeds?
I'll be involved one of he several IPOs that have been discussed on this site recently. Assuming the market doesn't shift dramatically by the end of the lockup period I'll have netted between $1M and $2M.

I know it's not a lot compared to some but for me that is a huge amount of money. I grew up in pretty poor conditions with a parent working multiple jobs and still facing homelessness on occasion. I'm paid well but have a lot of debt from a medical incident that happened a few years ago before I moved to the bay area so my savings just crossed the 5-figure mark.

I can't retire on this because I've got two young kids and a spouse and would find it stressful to live an early FIRE life trying to stretch that money out for 40+ years.

I still have over half my initial grant with this company left to vest, and it will vest at a rate equivalent to a bit more than $60k gross per month for the remainder. Of course that assumes the value of the public shares will remain the same.

I'd like to protect the money but I also don't want to continue working in the same IC and EM roles I've had in the last few years. What are my options, and how would I go about connecting with the right people to make better use of this money than to have it earn minimally? Would love to hear from people who have gone through similar.
Sorry, I don't see how this reply is related to the original objection that frequentist methods are not applicable to events that happen once.
You can have totally different models based on the same kernels. Android (Linux), Chromium OS (Linux including bits of Gentoo), and iOS (Darwin / XNU / Mach and BSD) all come to mind as very different OSes from traditional UNIX systems in terms of architecture, especially with regard to package management, updates, user accounts and access control, sharing files or making IPCs across applications, resource management, etc.
I'm an SRE/SRM in the mid six-figures range, but I've had some experiences like anyone else.

I love it when they give you "homework" that they just forget about. They asked me about numerous technologies, and I went to explain them, but wasn't given a chance. The CTO poo-pooed my résumé like it was difficult to read. He must've felt threatened and so sabotage my shot. They ushered me out the door almost like throwing me out by security; so incredibly rude. I didn't get the job obviously but they later asked me to interview again but I told them to "fuck right off." No, you don't get a second chance to unprofessionally dis me, and I won't work with or for such narcissistic slave-drivers. I didn't care about my rep in this instance because they're clowns who would never amount to anything. Don't be unprofessional, even if someone else is.

A few weeks later, I got a $10k/week consulting contract for a funded startup already in acquihire talks.

Don't settle for BS or bend-over backwards for jerks because it will just get worse. It's not worth your mental health.
I would expect nothing less from Murdoch press.

> Think about it this way: If you only have $1.5 trillion to spend, what policy would help the most people actually struggling right now? I don’t think canceling student loans would rank in the top 20.

Do these people even have a top 20? What does it include apart from lowering the corporate tax rate in hopes that money will "trickle down" to the poor?

Meanwhile outside the right-wing echo chamber, cancelling student loan debt is very appealing to millions of average people who got into unrecoverable debt by simply trying to better themselves because they believed in the promise of better wages for better education. These people are in debt, making them literally not "the elite".

So what elite are we talking about? Universities? OK, well what other options do we have? Leave students and alumni in unrecoverable debt so that those damn "elites" lose money? Is there a way to eliminate that debt without paying Universities what they are owed? I'm all ears.

And what is our long term solution? Are we going to stop telling children they will make millions more on average by simply having a bachelors degree? Are we going to make it clear to every prospective student today that going into student loan debt is an unwise risk and not a strong investment?

Right-wing conservatives are happy to tell people they deserve the debt they got into, but are too chicken to confront their original motivations. People are desperate to get higher wages, but on the whole, wages have been stagnant since the 70's. The source of this problem is clear when you look at the big picture: billionaires are getting the overwhelming majority of new wealth while the rest of us are left to fight over anything that "trickles down".
I'm strong pro-UBI, strongly against student-loan forgiveness.

It's one thing to acknowledge automation is going to decrease the job pool. It's another to retroactively break financial contracts for a generation that's already not responsible enough with money, giving a huge amount to a small-interest group and ignore those who need it most (i.e. those who didn't go to college).;

It also strongly incentivizes colleges, which need to die, and disincentivizes colleges reducing prices to what they were a generation ago.
Yeah that doesn’t make sense for me. The camera isn’t real but just a virtual pinhole with a screen on the other end. A “window to another world”.
This seems like damage control and image management.

The piece was cogent, respectful, and constructive.

How about addressing his points?
I have to say employees are just as silly sometimes.

All my life I've always just bought the stuff I need and took it to work.

No matter where I've worked it was 1/100th the hassle to do that rather than figure out how to go through channels.

I've also tried stuff and ditched it a few weeks later and tried something else.

this applies to lots of things at work -- who cares if the office pens are free - they suck.
thanks it’s good to
know the fat can be opted out at compile time.
I am very curious what a modern kernel contain that an old linux kernel did not that would make it more than 30 times bigger
Your deconstruction of "political spaces" is deflecting from the concept which is intuitively understood by us all. Politics in this context means discourse about contentious government policy. Political spaces are places where these politics are typically discussed: think tanks, halls of congress, public debates, forums, close family, etc.
Pompeii dig uncovers remains of rich man and slave killed by Vesuvius
Cloud Fractals, Blooms, and Spinning Parametrics
Teardown Quicksave
I'm not sure about postgrest, but with postgraphile you can control field exposure and add getters/setters fairly granularly.

Regardless, that's no reason to say it's "not a good idea at all." having a schema change ripple through the stack is just a trade-off, which is often even desirable. If engineers are shipping code to production with postgrest, and attributing it in part to their success, maybe reconsider the rigidity of your architectural thinking. https://paul.copplest.one/blog/nimbus-tech-2019-04.html#api-...
Victoria follows South Australia and imposes electric car road tax
> We need to do this the other way around.

Why does it matter what order these are done?
Well, in my opinion the Arch Linux package manager is fast enough, but that might be influenced the years I was using Gentoo (Portage & Paludis) which aren't even part of his benchmark...

Edit:

For clarification: I am referring to this benchmark https://michael.stapelberg.ch/posts/2019-08-17-linux-package...

For those who are unaware, Portage and Paludis are both magnitudes slower than the other packages managers. However, the comparison is not completely fair, as they both where source based package managers in the beginning, which have to work a bit differently. Nevertheless, Paludis is still a lot slower when being used with binary packages as it doesn't take all the shortcuts the others take.
> I'd like to think that after the nth discussion of this topic we could all generally agree:

It's either this or the neverending "How do I become more creative", "How do I become more productive", "Tricks to stop using your smartphone", etc...
I think you might be surprised, as a practical matter, that many people in the world are not happy when their prudent choices are invalidated by a change in the government policy in favor of others who took the opposite choice as you. And that they be called "selfish" for thinking so.

People working and making material sacrifices over their lifetimes only to see those burdens lifted for others are not a small edge case to be brushed away.

How about if I put it in a HN-relevant case (and to paint it in more obviously judgemental terms to make the point).

You and a colleague are given a 2-week deadline to deliver some code. It's a tough deadline. You are diligent and work day and night, overtime, missing your kids birthday and having your spouse mad at you, to meet the deadline and deliver your part. Your colleague has been a low performer consistently, asks your help to finish the work, doesn't actually finish it by the due date. Your boss, at the delivery meeting, says, actually, this was just a motivational exercise to get us to practice coding and teamwork, and didn't really count after all. She won't even bother looking at your work because it was just for your personal development. We're a team.

How do you feel? How about we run that again the next 2 weeks. What are you going to do? Feeling good for your colleague who was about to get in some trouble, but luckily it all turned out ok? Your wife and kid will be glad for that I'm sure.

And aside from all that, my points about the unintended incentives of such a policy remain.
Looking to openSUSE, community that i contribute to, i have the same feeling about almost all points. To keep having bugzilla around, makes me crazy. 2020 and you still not able to delete a comment.
The cardinal sin of computer science was a failure to understand the importance of defining and enforcing interfaces at module boundaries.

The most successful project (internet + web) did a much better job.

But legacy wise, we have a breakdown of boundaries at so many levels of the stack.
Image processing. If you want to dither or you want to generate noise, you don't want there to be obvious repeating patterns. Weird things can happen like the period being exactly an integer number of pixels that also happens to line up on a frame boundary, so every n frames the pattern repeats. I've had to fix things like this in the past.
Constraint.

Limit your work in an artificial way. It will magnify and focus your thinking.

By way of a silly (and classic) illustration: try writing in a way that forbids inclusion of that common Roman glyph found prior to F and following D.

(And actually think about it! Don’t just opt for words you found in a book of synonyms!)
Do you have a citation to back this up?

I admit my knowledge is anecdotal, but I know somebody in their 20s, who went to college, and is in debt that would be cancelled. This person was the first in their family to go to college, and was unable to find a job in their field. Most of this persons peers are in a similar situation with respect to debt and being unable to find jobs in their field. The jobs these people have are entry-level tech support, bar-tending / waiting tables, starbucks, etc. None of them are upper middle class.
The coin toss example given here seems tautological. Why would my unfair coin have to abide by some norm of probability? If I were designing such a coin, it would obviously include a mechanism for tracking state such that if the last toss was heads the next would always be tails. For example, it could literally redraw the upwards-facing side to the desired outcome an instant before striking the table.

I've never had a great head for mathematics because it feels like most impossibilities arise from arbitrary constraints and definitions. Reading such proofs feels like:
1) I've created an arbitrary universe with made up rules
2) This condition does/doesn't break one of those rules I made up
3) QED

For example, why on earth can't a straight line in a rectangle have a 180 degree angle at its center making that rectangle an octagon too? It's not clear why one system is epistemologically valid and the other is not. The proof of impossibility feels like a "no true scotsman"/"no true octagon" fallacy disguised by a bit of added notation.
With ~20% of the world’s population, more than the entire combined population of the G7, they might be able to stand alone.

They may not explicitly desire standing alone, but I wouldn’t bet against them deciding that’s the better option, nor would I bet against them using or threatening to use their manufacturing capability to put pressure on certain policy objectives. It’s not like other countries don’t use economic impact as a carrot/stick to achieve policy objectives.
Would be neat to encode the data as URL param so one can bookmark the page.
Free public libraries? Paid for by tax dollars? That's making the working class subsidize the elite.

Free public roads? Paid for by tax dollars? That's making the working class subsidize the elite.

Etc.
> Are you suggesting that this would be a good place to share them in addition to the introduction message in this thread?

I have absolutely no idea. But looking at your page, it is very difficult to understand what it does. (It is something about generating code automatically, but it could mean a million of things.) Looking at the article and link are more helpful
Yeah. There have been multiple projects, even from inside Red Hat, to try to switch away from the text-based Berkley DB to any sort of reasonable database ( one example was razor: https://github.com/krh/razor ), but for a variety of reasons, it was never able to be dethroned.
> openssl s_client -connect news.ycombinator.com:443
GET / HTTP/1.0

HTTP/1.1 200 OK
Server: nginx
Date: Sat, 21 Nov 2020 17:25:28 GMT
Content-Type: text/html; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: private; max-age=0
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin
Strict-Transport-Security: max-age=31556900
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://cdnjs.cloudflare.com/; frame-src 'self' https://www.google.com/recaptcha/; style-src 'self' 'unsafe-inline'

<html lang="en" op="news"><head><meta name="referrer" content="origin"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" type="text/css" href="news.css?jacyibSTLtogl89kgrgw">
<link rel="shortcut icon" href="favicon.ico">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss">

<title>Hacker News</title>
Browsers will soon (or maybe already have?) treat HTTP the same as self-signed HTTPS, so HTTPS is probably the better solution.
Startups: The Very Beginning
Paying it off now doesn't fix the problem––it's a bandaid.
Change bankruptcy law so student debt is discharge.
Don’t let government back loans.

Lenders will only lend to people have a decent chance of paying it back.

So no more nonsense degrees unless your rich.

Colleges have grown fat on easy money. This will slim them up again
That's not my point. The point is there is no technical reason for requiring a Mac for, say, iOS development. I get that they don't want to straight-up port XCode to Windows or Linux, but nowadays you could run it as a cloud service. The price of admission for something like that would certainly be less than keeping up with Mac hardware. They don't do it because it runs counter to their business model.
My only reliable creativity process:

Take one axis of interest, say "speed", quantize it into a few blocks, e.g. geological, glacial, lifetime, milisecond

Then another with as little regard for the first as possible, let's go with "monsters". e.g. titan, rabid elephant, blob, murder hornets.

Then you just fill out each box as to what the heck the intersection of those two axis mean.

Geological murder hornets? "You see what you don't know about carribean islands is that they are attacking north america and that's why it's trying to run away ..." crazy stuff like that.

If you do this with more carefully chosen, work related axis it works well too. You have to fill out all the boxes though, the hardest ones end up being the most interesting.

This also works with coming up with present ideas.

The whole process is intended to force juxtaposition and consideration of ideas which you normally couldn't come up with via associative links.
I’m not sure if I would call SQLite’s needs incommon — in a perfect world, every app should have SQLite’s properties like preserving user data on power loss, etc… It’s just that other apps just don’t care enough about these issues as much as SQLite.

For example, I’m pretty sure I would like every app to automatically handle cases where the underlying file gets renamed or removed. (AFAIK apps that use the Cocoa API automatically does these.) However there really isn’t any POSIX API that allows handling these kind of situations — and to do these now you need to do all of these nitty-gritty things that SQLite does.

In fact, I think that the reason why SQLite needs all of these nitty-gritty details that does everything is because of an insufficient abstraction. If the file APIs were better and didn’t require everyone to consider whether you have to call fsync or not, SQLite wouldn’t have needed any of these. But well POSIX have flied and here we are.
The st ligature in that font is really distracting.
You don’t NEED them. They are premature. I don’t technically need to compile my app in release-mode as a small startup.
Presentation does matter, but is the least important part and the most changeable. In this case it is also the part that has nothing to do with the actual performance of PCG.

I think she should have resubmitted it, but I think it says volumes about the problems of peer review that PCG is a widely known algorithm, widely discussed, and yet here we are discussing the merits of a particular presentation of it, as perceived by a couple of unknown persons.

I'd much rather have this HN discussion focused on open assertions of problems with PCG and rebuttals.
> Using things like this will save you months of development time!

When you need to integrate with 3rd parties though you're right back to writing traditional backend code. So now you have extra dependencies and a splintered code base.

Yes, this automates boilerplate which is awesome for small, standalone apps, but in my experience I haven't seen months of development time saved with these tools.
Does anyone have any experience with using a system like this for annotating digital media (PDFs and websites)? I've been thinking about setting up a hypothesis account (https://web.hypothes.is/) to do this, but I'm wondering if there are other better tools out there.
Regarding linters, check plpgsql_check[1]. Also, as snuxoll mentioned, for tests there's pgTAP. Here's a sample project[2] that has some tests using it.

[1]: https://github.com/okbob/plpgsql_check

[2]: https://github.com/steve-chavez/socnet/blob/master/tests/ano...
I agree with almost all of the article. It brings up great points. The one thing I don't fully agree with is (2) Buy almost always beats build. I think generally it does apply and especially for unrelated, common pieces like feature flags or managed databases.

But I think there are plenty of cases when it makes sense to build rather than buy even when tools exist. 1) It helps build a muscle of getting things done. 2) It offers a way to learn new things and to try new things. 3) It gives you understanding and better control over the solution. If the saas goes out of service or out of business it can create stressful times trying to migrate at the last minute.

So I would replace 'almost always' with 'often'.
I bet this is related to Eternal September
Still, "latest Chrome on Windows 10 and an 1080p laptop screen with Intel Graphics" should be at least ... half of the users out there ?

Yet CoverYourTracks says that even my up to date Chrome User Agent is used by one in 223 browsers, which sounds hard to believe.
I agree with some of the points, but the "EXTREME STATEMENT IN BOLD" cliche has to die already.

I suppose you can say "Qa environment suck" but you can also say "Make your QA environments not suck, by investing time keeping them very close to production" (i.e. same OS, same timezone, same stack, very similar DB, minimal mocking).
> Yeah, but "making your code 100x faster" might cost significantly more than just adding 100x servers.

And moreover, it takes time to make code faster.

Very realistic scenario is that you have 2 months of runway in the bank and investors have committed to the next round but are holding back the money and still having 3-hour coffees and 2-hour lunches with you about how you can improve your go-to-market strategy instead of letting you get back to work on actually scaling your tech.
You had all of that plus amazing views..?! That sounds amazing.
Surely you can still be involved in outdoor groups without issue? I participate in an advanced dog training/sport group, and we still meet and just take the necessary precautions (work outdoors, social distance, wear masks).
Yes, but they are usually single task hosts. All the effort that maintainers put into keeping /etc tidy when multiple pieces of software are installed on the same host are for nought.
I don't see how that's an argument against living beneath your means. If you're doing that you'll have some savings. But you'd have to have insane savings to soak up $5000/month without serious lifestyle changes.
For creativity in problem solving, if the problem is well defined, I've found that light physical activity has been useful for clearing my mind and returning to the task with a refreshed perspective.

When coming up with inspiration I usually try to think backwards. Backwards in the sense that I might start with some idea which is concrete and, start considering it's more abstract forms. So, for example I would consider a pencil as a concrete thing. I might start considering writing instruments. I might then start considering HIDs. From there that's a big world to explore.
Doesn't work on my laptop, just a black page.
>Anonymous comments are cowardly; please show yourself. If you stay anonymous I am not aware of power dynamics, and I cannot adjust my response accordingly.

Yeah no thanks, I would rather not be the subject of discussion at your next lgbtqxyz-blm meetings.
I really love postgrest!
I did a lot of django before and found myself constantly wrestling with the orm to express what I wanted, then writing endless pages of serializers and view sets and had to debug why they were always slow.

Postgrest has a learning curve, but the performance boost vs django is huge, and I can use more advanced db features like triggers more easily and in a way that’s native to the overall project.