skysight-inc/HackerNews huggingface dataset:
You might want to revisit PHP. It is getting better with every release. We have enums, match expressions, union types and much more now!

As for the type system, haven't worked Hack but I absolutely love the gradual typing experience that PHP offers. Yeah, we had some things that could not be expressed but they are slowly being added, again we have finally union types!

I would even say PHP might be the only mainstream language that offers a first class gradual typing experience.

In Python your type hints are a lie as they are not enforced at all and different linter will give you different results and there is no standard.

In JS, you have to use a whole other languages that compiles down to it, slowing you down with an extra compile step.

Meanwhile PHP just works. Just use PHPstan for linting but even if you don't you get at least runtime checks.
Okay I will share some of my own experience over almost 2 years working with Godot / GDScript. We're building 2D pixel art game for Steam. We're fully funded by publisher and have a team of 10 people with 3 programmers. We have around 100KLOC codebase with a lot of game mechanics.

Primary downside of using Godot for commercial development is lack of official console support. Everything else will vary from project to project since every game is different. Godot have bunch of weird limitations, lack of proper virtual filesystem (e.g boost::filesystem anyone?), really shitty profiler, some weak UI / UX in editor some of which can be easily compansated by using VSCode.

At the same time I can certainly say that you can make proper commercial game using Godot. Engine is stable, performance is not the best, but okay. Will it work for everyone? Probably not, but again it works for us.

PS: I also glad to advertise few Godot projects that are not mine, but I find them really enjoyable (check profile if you curios about project I work on):

https://store.steampowered.com/app/1637320/Dome_Keeper/

https://store.steampowered.com/app/1953670/Quetzal/
This is a whole lot of nice sounding theory but ultimately in practice this is just a downright mess to handle in a real application calling the API. If you are using the Angular httpClient for example, a 404 immediately throws an observable error when your app really should be telling the user that there are no results for that query. This crosswires a potential server-level error (broken routing etc) with a request level error in error handling and would make it way harder to determine the cause of the error and lead a dev to just write `status.code ==="404" ? 'User does not exist': ....`

Did I mention that httpClient, by default, doesn't let you get 404 error bodies?

But ultimately, it is all just ideas on 'how neat it would it be to use codes!' when in practice it is so so much better to just drop it and use the codes for more literal values. Imagining a users/{X} as a 404 for invalid 'X' is fun..but like..the server actually defines it as something like /users/:userId and it isn't actually an invalid route and will not be caught by the default 404 handling. It's a conceptual dance.
The setting you're talking about is probably the OS level setting. There's an additional setting in the GMail app to do the same thing.
Ask HN: What are some good strategies to self-fund a startup?
My current co-worker and I would like to create a startup together. We are currently exploring strategies to fund the startup, and would love to get some advice.

We are currently thinking we could start a business, offer consulting/contracting services, take reduced salaries (compared to what we currently make), and keep all the remaining money in a business account to give us runway for the startup. We would use the accumulated business money to pay reduced salaries and handle expenses when we transition fully to the startup.

We both have domain expertise that would allow us to land customers (for contracting/consulting) for 1-2 years to bankroll the business account. The issue is our domain expertise is in a field that we both want to get out of, and hence the desire to create a startup.

In an ideal world, we would both quit our current job now, and start working on the startup tech. However, it does seem less risky to build up some savings first, and then work the startup.

Has anyone done something similar? Does this even seem like a good idea?

From poking around a bit, it looks like an S-Corp might be a good structure for this approach - any thoughts on that? We will certainly meet with a lawyer and CPA as needed to iron out details, but I do like the idea of reading about the basics before meeting with them.

Any comments are appreciated!
I've asked here in another thread but didn't get an answer.

What can the average _not_a_billionaire_ investor do to weather this out (not knowing exactly what _this_ is)?

In my example I have most of my money on Index funds (with a 60/20/20 split between US markets, China markets, and sector specific ETFs) plus an emergency fund that lasts me about 12 months and I (unfortunately now) earn in Euros.
I have used a variety of wipes to clean and/or dry my lenses over the years. This always left microscratches and damage to the AR coating over time.

Since I switched to the hand method, my lenses are in much better shape:

1) Clean hands with basic bar soap, leave soap suds on hands
2) Lightly rub lenses and frames with soapy fingers, taking care not to apply too much pressure and deposit skin oils
3) Rinse off with hot water
4) Shake glasses dry with both hands (carefully)
5) If tiny water spots bother you, or you can't wait for the remaining droplets to naturally dry, use a lint free glasses wipe to dab (not wipe) them dry
i mean they should at least have a sub error code right? instead of strings. that sounds insane
Is it expected to be able to save for an entire down payment in one year? It took me and most of my friends closer to 10 years.
Zig is probably the most common tool to compile C/C++ to WebAssembly outside the browser, but the Zig language itself has first-class support for WebAssembly/WASI.

The resulting modules are small and very optimized.
Id be interested to know specifically which lines you are reading between because the lines I read were very explicit statements like "we sent the methodology for mDAU calculation" and "in July he admitted that he never read the detailed breakdown on methodology we sent months ago" and "he backed out of meetings where we were supposed to explain this even more to him".

So yes, please let me know which lines exactly.
> Been there, done that. It was a mistake. Not sure which attacks my public PiHole was part of, but I surely was part of some.

How did you come to this conclusion? How did you come to know?
It is shared data. You can use it for whatever you like, so can who-ever controls the other location it is stored at (unless encrypted and only you hold the keys).
My smart phone is not recording video all the time and uploading it to somebody else's computer. It does send location pings to the cell tower when turned on... However, I can easily turn my smart phone off, or leave it home or somewhere else. Security cameras and thermostats and refrigerators aren't so easy to just turn off.
This is doomed as there are as many esoteric video game trivia as there are historical corrections.

There are so many sites for this already, the fact that none have become an authority is problematic. It used to be SNOPES until they crossed GQP and Trump, then became "liberal media".
Holy crap - Marie Sharp's is my favorite hot sauce. I have to try this!
Is this stuff actually happening in the wild, though? To random, unimportant people?

The iOS security hole was probably fixed before the version was abandoned on old devices, and Pegasus is probably mostly used in targeted attacks.

Right?
Godot uses C#, and supports some other languages too I think
Somewhat the opposite, but are there tips/tricks to get a song stuck in head -- sort of in a controllable manner? I enjoy having songs stuck in my head, but usually it's not the song I want!
Webpack hasn't been dethroned, but it certainly has a competitor.
C# is really nice but I think Unity's mobile story is probably what keeps devs there over something like Unreal.
I can see the tweets now.

> "Twitter is saying bipolar disorder isn't an excuse for my behavior. Twitter hates bipolar people and those with disabilities."
I think one just, looks at the parts that look emptier, so that there is less nearby stuff to get in the way of seeing the stuff further away (and this from a longer time ago)
Gates Foundation Announces Aim to Increase Annual Payout by 50%
Bonds were not a good idea because rates were historically low. If you can't time the market then why bonds should not be 20-40 percent of a portfolio?
This is why I don't follow how my portfolio is doing, knowing doesn't give me much actual information and can often encourage bad behavior (admittedly I don't have many investments compared to many).
One would want a log scale on the vertical axis, right?
I'd like to see a language that can clearly model concurrency using a Petri Net-like structure, ie a data flow language with flexible state/transition handling.

Technically, the runtime is the easy part (relatively speaking). Modelling an array of swimlanes on a plain-text 2D page is the real challenge here IMO.
In my experience, Vite offers a better onboarding process and has a more straightforward configuration format compared to ESBuild. You also get most of rollup's plugin ecosystem and a large amount of community tools made specifically for Vite (Vitest, ViteBook, vite-plugin-pwa, etc...). Also, I might be wrong about this but I don't think ESBuild has HMR, which really speeds up development.

Overall, ESBuild feels like a much lower-level tool than Vite. It's great for smaller projects or projects that require absolute and complete control over their builds, but it takes more time to setup in most cases and often requires writing your own build scripts.
Kinda. But IIRC it didn't generate much (if any) dynamic code, mostly HTML. That feels like ages ago and isn't in any way useful anymore today, I fear.
> People get so enamored with trying to make REST APIs into this rigorous thing.

It is a rigorous thing, though. It's a standard, and one that has existed for a very long time.

> I would prefer HTTP status codes just go away altogether. Those are for the web browser software to do things like navigation, not for APIs. Same with HTTP verbs.

Verbs and status codes are fundamental for APIs that consume REST endpoints.

I totally understand thinking that vanilla REST is not the perfect model for every case. Maybe you should be using SOAP, or GraphQL, or HATEOAS. What a seasoned engineer shouldn't be doing is abandoning a shared specification and expecting everyone else to comply.

If I am using a third party's API and they serve nonsensical status codes (4xx when their DB is down, 2xx to let me know something failed), I will reach out and ask for them to fix their bug. If they tell me that the error code is deliberate, I will probably look for a more sensible vendor to work with instead.
> People generally expect mature databases to have optimized any low-hanging fruit

IME that's not true. I've been hacking on postgres, with occasional forays into other databases, for quite a while, and it's typically trivial to find low-hanging fruits across a varied set of workloads. It's a bit harder to find things in the most commonly benchmarked workloads, particularly when those benchmarks are easy-ish to run. But even there there's often lots.
When you've had Democratic control of the NLRB for at least 17 years since 1990, and their appointees bend over backwards to make it easy for the unions, there should have been a lot more union victories. I think you need to face up to the fact that most private sector workers nowadays see no value to it.

"You're coming across incredibly naive" - maybe I just don't agree with you. Is that not allowed?
Parcel has been praised on here many times when it originally came out. I was an avid user but the nail in the coffin was the horrid and long release of v2 which took forever, the docs were in disarray, and overall just left a bad taste in my mouth. I also think there was some common issue where v1 didn’t support some version of postcss for quite some time and I and many others jumped ship to vite.
Jemba Inertia Notes System- Automatically generates rally course notes
I'm rather ignorant in that domain, so I wonder if some people could enlighten me. What are the AI tasks behind this?

I can identify two steps:

- Identifying an approximate shape of background vs foreground to get something more precise than just a rectangle. What is it called? Just background detection?

- Actually filling-in the holes. I think this is called a diffusion task? Is that correct? ddg-ing around looks like diffusion is the name of the method rather than the actual task, but I can't find the name of the task.

I'm curious at whether some existing open models would be usable on smartphones to make an opensource app (or maybe there are already such apps I'm unaware of)
Swissi?

Austriai?

Norwayi?
Did you tell them the solutions are incorrect? How did they react?
You sure spent a lot of words to agree with me.
Who are the hackers who say they started a fire in Iran?
wow. what a great comment

There must be a certain amount of discernment and refinement that comes with savoring songs in such a way... though having built said music library must have been fun.
Worked for a mobile game company in 2020 and 2021. Can confirm that 2020 was a very good year revenue wise, if not dying off a little bit towards the end of 2021
This is roughly how the game obfuscation layers work to prevent crackers. If it takes weeks for top hackers to crack a game, there's no way it will be done automatically by the chip that was taped out before the VM was generated.
> "If we caused microbial accidents because there are no more nitrites it would be even worse than the hypothetical risk mentioned," FICT Chairman Bernard Vallat said.

What an insane quote...
There are alternative cameras that don't have the same privacy concerns.
Burglars are not deterred by cameras or alarm systems, especially in the age of face masks. They know they will only be in the house for 5 mins or less and face masks make it harder to identify them.
Because that's the meaning of major version number. Additionally JS/npm modules are supposed to follow semver, and you increment the major version when you break compatibility.

I get it, Linux does its own thing with versions, and so do browsers, so it's hip to just increment major whenever you feel like it apparently.

EDIT: LOL at people downvoting GP because they dared to wonder if the frontend world needs another bundler shipping a non-compatible major version at least once a year. Stockholm Syndrome I guess, who doesn't want to update their configuration and see their plugins break every year?
The price increase of the downpayment was higher than my savings in that year.
I would expect the demand for the book to go down since the entire population has read it.

Of course, you could use the pages to help start a fire for warmth or cooking fish you will be catching.
Thank you for creating this. I appreciate its value and encourage you to keep going.
seems to be much faster and more user friendly than OP's site and worked also better on one example I tried
Amazon squashes years-old authentication bugs in AWS Kubernetes service
"Select *" is like find/ search - any API that could logically match multiple entities and return a list should stick to 200 in the case of an empty set.
But for an API designed to return just the specific single resource requested there's a decent case for a 4xx status code if it doesn't exist (400/404/410/422 all being justifiable depending on your preferences).
Depends what they mean by "genetic". Mixing genes by cross breeding is a lot different than adding genes from other species, or constructed genes that are patented.

There are two kneejerk reactions in this debate:

The first is from the anti-science crowd who shit on everything.

The second is from the wannabe scientist crowd who like shitting on anti-science people but usually aren't very savvy themselves.

Both are problematic as they crowd out experts and regulators.
Very creative and original, but I don't think I want to plug any complete machine into mine, let alone over USB haha. This is sort of like passing out flash drives, and plugging it in hoping there's no malicious content.
Ask HN: Did you buy anything during Prime Day?
HN seems to be a mix of people who love deals, but also hate Amazon, I wonder if any HN'ers bought anything during this year's Prime Day, and what they got.

I looked around and didn't see anything I needed, but I also noticed that some of the brick-and-mortar stores around me were also running sales promoted to coincide with Prime Day, so I scored a bundt cake at a local bakery for half off.
It is very possible for one to be handicapped by such baggage. My mother has been a massive penny-pincher her whole life, in reaction to her straitened circumstances as a child. I now wince when she resists things like going to a cafe lunch with friends, as a habit like that is not helpful in maintaining relationships.

But then, I probably don’t pinch the pennies tightly enough. It’s hard to get the right balance.
It’s a fair point but also back in the day - “everybody” (especially the younger BBS and hobbyist crowd) incorrectly referred to them as 1200 baud or 2400 or even 9600 baud modem - as evidenced by the numerous historical references.
I never really made a connection with music getting stuck in my head, but I often get short phrases or words stuck in my head on constant repeat for days at a time too.

The stress relationship may have something to do with it though. The times where it happened the most are pretty strongly correlated with high periods of stress in my life as well.

It often happens for words that I realized I was pronouncing wrong from only having read them and never having heard them. For example, sepulcher and dais come to mind as words that I repeated internally with no control for days on end and they're both words that I was mispronouncing until I heard them while reading and listening to an audiobook at the same time.

Interesting little quirk of the mind I suppose.
Deep learning human understanding of intuitive physics
Often performance is a feature. In those cases, bad performance is a fault.
> I assume serious developers who want to build large games for profit, will choose either Unity or Unreal because they're expected to work better overall.

they'd ultimately choose them because of support more than jank, to be honest. They care less about the ability to fix a bug 3 years down the line than the ability to phone up engine experts they don't have to directly hire to fix it for them.

I'm assuming Godot doesn't have such support past enthusiast forums.
> (Someone’s gonna tell me this is 100% smalltalk for sure)

IIRC Objective-C can bind new methods at runtime
Apple and Jony Ive are parting ways
I don't learn new things recently. I read the source code of libraries to see how they are implemented.
This title is missing a word:

"How I Clean my Glasses"

I half expected a post where someone brags about cleaning glasses. HOW I clean my glasses is pretty interesting for those of us who wear them. Mine are just ALWAYS dirty, I don't know what the heck I keep doing to them.
Yep, web UI work is generally worse (more effort for worse results) than other application UI work. Styling is nicer than on most other platforms but with any decent UI toolkit you shouldn't be doing much styling anyway.

The Web's main problem is that to the extent that it has a UI toolkit, it's god-awful. We should have spent all this time since it became clear "web apps" aren't going away strengthening HTML, and especially the various form elements (better tables and some kind of list view like other platforms have would be great, too).

Instead it's largely stuck in place, and we hack in poor-performing custom half-broken elements that are different on every site, wasting absolutely incredible amounts of both developer and user time. Truly, the time-cost to humanity of web UI's inadequacy is huge.
> “[W]e’ve kind of got to tell a lie: we’ll go back into history and there will be black people where, historically, there wouldn’t have been

How about just go back in history and find stories where they were. Plenty of good options, but that would require some level of effort and research, better just to patronize people by putting in corny anachronisms.

Ofc at the same time, maybe that's a bad idea, media seems deadset on pandering to the lowest common denominator and they'll probably lose money on and stories settings that average person isn't comfortable or familiar with.
There's study here: http://cs230.stanford.edu/projects_spring_2021/reports/57.pd...

Basically, you can collect text from different authors, then you can use authors names as labels to train a similarity learning with it. My suggestion would be finetune a Transformer model with a specific head and an ArcFace loss.
You're arguing against something that wasn't said. They said the "title of Dictator" was used, and that is correct, it was used in Roman history as they said.

The Roman title of Dictator is different from a modern day dictator, agreed — but if you read carefully no-one argued otherwise. The Roman title of Dictator more aligns with the modern concept of "emergency powers."
The immediate rebuttal to this whole article is that you can have custom response bodies on any status code, not just when the status code is 200, so you can satisfy both kinds of users by having `/api/v1/employees/100` with `404` as the status code and `{ "success": false, "reason": "No employee with ID 100 exists" }` while `/api/v11/employees/1` can fail with `404` as the status code and `{ "success": false, "reason": "No such path: /api/v11", }`

Now for those who are exploring your API with curl or are reading logs from their service they can see the human-legible information that may help them debug the error, while their application logic can continue to use `2xx` for success, `4xx` for my own failure and `5xx` for a server failure that I should retry after some back-off time, allowing it to do the most sensible thing it can in the situation, rather than explode in an uncontrolled fashion when an endpoint the developers only got successful 200 responses from during development suddenly encounters a 200 response with an error payload.
They're being deliberately vague. Adware and analytics.
In terms of parliament it is a bit stronger:

"Tabling is the act of formally putting forward a question, a motion or an amendment in the Commons or the Lords."
well... programming
No. Prime Day is where deals too lame for Arstechnica's Dealmaster go to die. (e.g. Dealmaster frequently runs the exact same "deals" that are always on sale, like Amazon Fire Tablets, for months at a time.)
Half of the page on mobile is Wikipedia donation spam. Completely insane.
> but at least they can claim to be part of "The War On Terror".

Can't decide if that makes it better or worse x)
Can you say more about this or have any particular references or applications? This seems interesting, and I'd like to know more. Is there any reason why this couldn't be a full 2D visual language, if done right?
Can you quote the part that requires CSAM?

As for age - it's already there, you can't serve underage content to minors. As for "truthiness" - I'd say this part makes a lot of sense, given the current pandemic of fake news.
If you have cash savings, then you’re ideally positioned to take advantage of lower real estate prices without suffering (as much) from the impact of higher interest rates.
I don't think the OP was bringing up the FX tax implications, but rather tax on the sale of a service.
Oh this is legit, it was actually featured on Startup School's Forum.

It's highly valuable for any founder taking the program.
https://www.startupschool.org/posts/46910