skysight-inc/HackerNews huggingface dataset:
What's the point of running 1M concurrent tasks? I don't see a good reason tbh.
That’s just one leg of the stool. They used to be relentless at driving SQL Server Enterprise adoption. Now it’s shifted to M365 E5, plus accessory subscriptions. PowerBI, Viva and Copilot for whatever are the new legs.
>Lots of comments here are stating that typing is half baked in Python, and that if you gotta use types, you should use another language.

Its weird that so many conflate "this would be nice to have" with "this is the most important factor when deciding on a programming language". I think, obviously, very few Python users have type safety as their most important factor when deciding on a programming language.
In your Go benchmark code, how is the calculation actually being done across threads? I don't see the `go` keyword anywhere in the source code.
> YAML has a lot of extra stuff going on that can cause accidents if you don't take care. The classic example is the "Norway problem" where "no" (the country code for Norway) is parsed as "false" instead. If "no" is used as a key, this can cause the Norwegian data to disappear or to throw strange errors on load.

This was fixed in YAML 1.2, but the problem is that almost nobody uses (and there is patchy support for) it.
Can you share an actual example where you need to specify requirements twice. With pyproject.toml I know of 3 ways requirements are specified and they are all used by different things:

1. Build requirements - requirements needed to build your package from an sdist

2. Runtime requirements - requirements your library needs at runtime

3. Extra requirements - optional runtime requirements

For example my library pyspnego https://github.com/jborean93/pyspnego/blob/main/pyproject.to... has all 3:

1. Cython for Win32 needed to build the sdist and setuptools as the general build system - https://github.com/jborean93/pyspnego/blob/c3db058b636fc102f...

2. cryptography as a runtime dependency - https://github.com/jborean93/pyspnego/blob/c3db058b636fc102f...

3. optional extras kerberos and yaml - https://github.com/jborean93/pyspnego/blob/c3db058b636fc102f...

Granted the toml format and what is used in pyproject.toml has its warts but I'm curious what your joke and clown_fiesta examples are actually from as from where I am standing each section currently serve different purposes.
Cop car, graduate with cap and gown, beer mugs got it for me
They would also kick memory safety in the ass, unless you’re the kind of dev who doesn’t make those kinds of silly mistakes
241 logins in kepassxc
I think you're basically correct and certainly nothing you say is wrong.

I construe pleasantness a little more broadly. The pleasure target for b2b software isn't the people using it, it's the people signing the purchase orders. And for some reason those people find execrable garbage like a certain extraordinarily slow and wildly overcomplicated project management package that's extremely popular in "the enterprise" pleasant enough to sign giant checks for, to give just one example. I think with that semantic modification we appear to be pretty much on the same page?

Additionally, I've shared some of those insights you mention. I would go a little bit farther and say that actually formally stating those from-the-heavens requirements would improve software quality and possibly even increase pleasantness for the principals in question, that is at least supposing they actually know what it is that they want. A hard "ask" I know.
That’s all pretty logical, but doesn’t explain these numbers. The average construction cost in SF is reported to be $440/sqft, already the highest in the entire world. How could conversion cost more than double? There must be a lot more to it than the 20% “cost” of social housing.
I think it's ads in free apps. I kept telling my mom to stop installing free apps on Android. She really wanted this one card game. She swears she never clicked on an ad, but she constantly had malware.

I pretty much forced her to go to iOS and she's been happen ever since. She really resisted me, though, and complained for a few months, but now agrees it's better.

I switched in Jan 2020. I got so sick of having to upgrade phones every 2 years to get updates. I understand that's changed now (Pixel phones gets updates for 3 or 4 years?), but for more than a decade I bought a new phone every 2 years. I've had the same iPhone (11) since 1/20 and I will keep it for as long as it has updates and/or the battery lasts. So far, it feels like the day I got it.
Also someone needs to tell ChatGPT that its Elixir code has a bug ;)
70,000 units per month is pretty small for Apple...

I guess they are planning on this being for real enthusiasts rather than a mass market thing.
>Option 1. feels like "writing Python like it's Rust", but of course without any of the benefits of Rust either on performance or on safety.

...but with the benefits of Python. You might not see them/need them but they are there :)
I run projectbaseball.org, a hosted data warehouse for baseball fans to query a bunch of different data sources. English to SQL would really be a game changer in terms of who can use it. Sql is still a huge barrier.

Things like “which pitcher is throwing more than 2 mph harder this year compared to last year” or “who has changed their mix of pitches”. Fantasy players use these kinds of queries to spot players who have made adjustments and thus shown true improvement (versus the noise inherent in the game itself)

(Note, backend is down while I move from a dedicated server to google cloud)
The results can be ignored.

You can't just copy-paste ChatGPT without even a sanity check e.g., Python code is wrong:

await sleep(10)

sleeps 10+ seconds and returns None but the intent is to pass a coroutine to create_task() (await should be removed at the very least)
> Or learn to build well. There are still standing roman buildings much older than that, that only require sporadic maintenance after earthquakes and such.

Hope you like domes, because that's pretty much the only thing you can build in that fashion. (And even that only works in climates where the temperature never goes below freezing).
The great job market rebound of 2024.
I’ve written a fair bit of Rust but it was ~5 years ago. I understand some ergonomics have improved but I think this somewhat depends on the type of application you are developing.
Also, minisign, signify, sigstore are all much better than gpg for the problem of signing packages.
I struggle to imagine which document would have all these details in one place within Apple.

Instead, it looks like someone has reverse engineered one of the devices and guessed at all these figures/details.
None of what you say is a gotcha. An ignorant programmer stands only to benefit from Go
Games like I Wanna Be the Boshy are generally a different kind of difficult: they have quite frequent save points and fast restarts close to where you last failed (except for on the very hardest difficulty, which is not the intended difficulty). Getting over it is easier mechanically but it's very punishing: in many places failure will put you right back at the start, meaning a retry is very tedious.
> what’s happening at the lower-level matters less and less for the majority of developers.

Kind of. It constrains what you can do by constraining what you can represent by the semantic model the OS defines. Unix-like OSs think of processes, threads, files, networks, etc. Plan 9 unifies a lot of that - everything is represented as a file system and, in that sense, it frees one to think of networked resources as nothing more than files. Now think about the IBM i, where there is really no distinction between memory and disk storage - everything lives in a single address space. In that sense, the distinction between in-memory structures and files gets blurry. Or we can think of Smalltalk with something like the Roar VM hiding the OS the way Smalltalk always did.

The OS limits the approaches we take to solve problems because our programs must fit in their various fixtures to run.

We should probably one-up Steve Jobs and "Think Differenter".
On its own, the information in those private accounts is probably not interesting. I used to use the "few sites get a unique and secret password, but most reuse the same 10 character one" ruleset, but I became worried about how much data could be aggregated about me. By re-using the same password, I felt like I gave a simple test that attackers could use to definitively confirm "user XYZ on site ABC is the same as ccooffee".

I'm now firmly in the "everything gets a unique password" camp. There are 4 important passwords I type myself, but everything else is in a password vault.
I thought this too before my current python project.

It doesn't even use type hints and has no tests.

When I look at something I don't know what it is, what it does, and have to debug there (mentally or actually) to even know what's happening. If I change something, a few runtime errors pop up right at the start. Others take 30 minutes.
Wasn't Stripe mostly word-of-mouth, with quite little money spent, until recently?
Can Psychedelics Cure Depression?
Huh?

[project]
dependencies = [blah]

[project.optional-dependencies]
groupname = [blah]

Install project with `pip install .` and install optional deps with `pip install .[groupname]`.
>Yes, which is just as worthless as the one you used

Wrong. One produces a valid signature, the other does not. I couldn't care less for your point of view - my interest align with my clients.

>No, there's no point. It is worthless whether it verifies or not.

An invalid signature indicates the message has been tampered with.

>they're all equally worthless unless there's a way for me to develop trust into one of them

Have you tried engaging with the parent post instead of talking past it? Attributing trust to some key an entirely orthogonal issue to the utility of a PKI protocol.

> In the situation you're providing here, there's no way for me to trust anyone, so your signature might as well not be there.

Sigh. First off, it tells you two things. (1) The message was signed by the holder of the private key if the signature is valid, and (2) the message has been tampered with if the signature is invalid. And you don't even need to trust the key to deduce these facts. Second, you still haven't forged that signature, so the fact that you're arguing past me instead of posting a valid & forged signature only proves my point. You can't do it.
MyHouse.WAD – Inside Doom's Most Terrifying Mod
Wikipedia:

> A 2008 poll of editors on Virtualtourist voted the building the second-ugliest building in the world, behind Boston City Hall in the United States.
2151 according to Bitwarden. That's what 25 years of actively using internet does to you :)
The specs that firefox chooses not to implement are stuff like web midi for security concerns. Firefox does not try to market itself as a "website viewer" that does not support "web apps"
Ah yes, ante was a pretty crazy mechanic.
False. Suppose I possess a fungible asset, and that asset is selling on the market at a particular price. I can choose not to sell at that price, because it's worth more to me personally than the market price. Worth is subjective, price is not.
The fight over ai is the same fight as it was before - user control and freedom over the ai

I should have control over model updates, retraining, the training pipeline, the prompts... Everything. How ethical or safe the ai is is my problem. It's not a matter of trust, but that it gets changed out from under me, breaking my workflows, and not letting me fix problems with it that affect me.
Work-from-Home and the Risk of Securities Misconduct
> use in a way you don't expect to gain control of things you do care about

An example would really drive your point home. Can you provide one that people would deem "dangerous"?

Edit: ccooffee just mentioned in the thread that you could be de-anonymized by reusing the same password. Is this what you mean? There's a spectrum of comfort with privacy so maybe that's the source of the disagreement between whether it is important to have unique passwords or not for accounts that don't contain financial/SSN/medical/etc information
I see C is missing. If you're going to do a language comparison, might as well include the one language we know will have the best performance and lowest memory
> None of Apple’s operating systems are based on Linux

Not now, but before Apple was sold to NeXT for a Steve Jobs minus $400 million, there was MkLinux. It was an interesting way to run Linux on beige PowerMacs and many places I've worked with gladly adopted it giving new life to abandoned Macs as X terminals and lightweight workstations.

Oddly enough, it has a newer Mach kernel than NeXT's OS.
The market for printers is dying though. These days I don’t know anyone who actually owns a printer. It just makes way more sense to use shared/commercial printing services.
I'm losing the train of thought here. Smart people are the ones least likely to be able to defend themselves?

I think it's enough to say that it harms some people (ESL) more than others and leave it at that.
Why would you want to do that on an apple device? The point of buying apple stuff is that apple has full control over it
Yeah I believe I hand patched Crockford’s json2 parser? It was something like that.
Bricking means that the device is as functional as a brick. Which to me means broken in a way the user does not know how to fix.
> schema

I'm dreaming of a universal standard based on JSON Schema. Dynamicity is a challenge of course. I guess one needs to strike a balance between static data, say for each subcommand, and a full blown configuration language, say nix.
Rust is not pretty, but it's not that bad:

use actix_web::{get, web, App, HttpServer, Responder};

#[get("/hello/{name}")]
async fn greet(name: web::Path<String>) -> impl Responder {
format!("Hello {name}!")
}

#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new().service(greet)
})
.bind(("127.0.0.1", 8080))?
.run()
.await
}

Of course, anything with brackets can be improved ! ;-)

from sanic import Sanic
from sanic.request import Request
from sanic.response import text, HTTPResponse

app = Sanic("MyHelloWorldApp")

@app.get("/hello/<name>")
async def hello_world(request: Request, name: str) -> HTTPResponse:
return text(f"Hello, {name}")
886 according to keepassxc
Agree completely. High specialization towards physics and science weeds out other brain types that may have a lot to offer. Trades generally don't do that
There is an additional difference beyond the tax advantage. With dividends, the market has more expectation of maintaining similar level of dividends, whereas there's generally and currently no similar expectation on companies doing the share buyback to buy similar amounts quarterly. This allows a bit more flexibility on the company. This extra flexibility may or may not be a good thing, but regardless, it is an additional meaningful difference.
> Still trying to answer "why won't someone help me ?" without sounding trite and jaded.

It's a combination excessive bureaucracy/control/legalization of the medical profession in addition to incompetence, apathy etc. You are unfortunately on your own, as is everyone else. A lame "I feel sorry for you", is all I can say, that you have to go through it

(for those interested in starting some kind of parallel medicine, and willing to do what it takes to learn the ropes, see my profile and get in touch with me.)
This sort of comment makes sense if you think phones = computers.

But a lot of people including myself think of them more as consoles or appliances.

And so it makes perfectly logical sense that we want the flexibility and freedom on our Mac but not on our phones.
I left Python once I found Scala. There are a fair few ML-family languages (and I'd argue that the ML-family functionality is most of what people love about Rust) with garbage collection; OCaml is frequently mentioned.
> It's another junk format in the sea of junk formats.

> PyPA aren't the brightest minds around, so, they've created this joke

You have some interesting and valid criticisms of the format. Why not just say them without all the harsh insulting language? Is this how you'd want someone to speak about you and/or your work?
The interview can be 0 minutes long if you decide not to do it.

If the interview was 30 minutes you’d be trying to reschedule it and complaining that the interviews aren’t an hour long.

YC isn’t trying to understand your niche. They’re trying to see if you’re a founder worth backing. They can do that in 10 minutes.
Ask HN: DIY baby cams/monitor(s) with privacy?
Hey HN!

We're expecting soon, and I'm seeking the latest advice for setting up a multi-camera system. I'd like it to be secure (cameras should be dumb), always-on (so powered by USB, not battery), some kind of standard protocol (e.g. RTSP), good quality/dynamic range (doesnt need to be 1080p, even 720p is fine). General plan is to have a 1-3 VLANed cameras, preferably with safe/integrated auto-IR mode when dark and integrated mics. I'd like it to be remotely accessible/stream-able via a web ui/webrtc with auth.

I have Synology NAS, Asus/OpenWRT router, and an OPNSense device between modem and router.

The hardware landscape looks kinda crappy. I wanted to maybe do a camera module [1][2] with Pi Zero 2 W [3] but the latter is unavailable due to supply chain stuff and the former is either USB or lacks a built-in mic. Banana Pi M2 Zero [4] might be an alternative. Most of these modules don't support 5Ghz, but i guess that's fine. Seen some other mentions of open source firmware for Wyze cameras. In terms of software, https://zoneminder.com/ looks like the winner?

EDIT: This looked promising, but not made anymore?
https://www.varia-store.com/en/produkt/97613-banana-pi-bpi-d1-open-source-ip-camera-board.html

Anyways, thanks for any advice :)

[1] https://www.amazon.com/Raspberry-Camera-Webcam-OV5647-Adjustment/dp/B08QFM8TVV/

[2] https://www.amazon.com/Arducam-Computer-Fisheye-Microphone-Windows/dp/B07ZRJDTBQ/

[3] https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/

[4] https://www.amazon.com/WayPonDEV-Banana-Pi-M2-Zero/dp/B0B87F72B1/
Could you enlighten us?
We have a lot of Go services in production and errors have never been a performance issue. In the happy path, when there're no errors, errors are basically no-op. We don't use errors for control flow, though; only for exceptional situations, which aren't triggered often. If we want to branch based on an error, we use errors.Is. I don't remember ever having to inspect an error's string, that sounds like a hack. Usually, branching on an error's type is a rare scenario, even if it uses reflection, you usually just bubble up the error. In practice, at runtime, Go's error handling is just a bunch of TEST RAX, RAX instructions. Do you have benchmarks to show otherwise?
I can just imagine the tags going "Rich man walking!" as a customer comes down the aisle.
1% of 5 billion google users is 50 million users.
You are basically attacking a strawman. It is not Rust vs. C, but Rust vs. alternatives to C. It is unlikely that Rust will end up being better than all alternatives that are being developed.
San Francisco Gets a $1B Bet That Workers Will Return
You're wrong. The only person who claimed that the NSA doesn't believe it has collected data until it looks at it is Schneier in this article. No US government agency has ever made this claim because it is obviously false, and none of Snowden's leaked documents claim the NSA has collected American communications. https://apnews.com/article/business-33a88feb083ea35515de3c73... explains that Clapper was previously being asked about collecting actual communication data of foreigners (Section 702), while this question jumped to "any data" about Americans, which would include the telephone metadata collected by Section 215. This admission that Clapper does consider the defunct phone metadata program to be collection was made 7 months before Schneider wrote that article, so he should have known better.

> Don't accuse people of being conspiracy theorists when you haven't checked your facts.

I will continue to call people conspiracy theorists when they say hundreds of conspirators in the US government are doing something obviously illegal without any evidence, especially when someone who leaked other programs could have leaked that evidence but did not.
> Plan 9 was built with the observation that high-resolution, bitmapped graphics displays were ubiquitous

My impression is that Plan 9 was a child of the technical workstation age - when we thought that the endgame was having ever more powerful desktops who did most things locally and connected over a network to send and receive files. In the end, our desktops and laptops have been fast enough for the past decade or so, while servers are becoming increasingly more like the mainframes we thought had their days counted and a lot of the heavy lifting is done remotely. A lot of what I do includes firing up a surreally large cloud machine, run a couple data transformations, and then unceremoniously delete that big workstation (that's actually a small slice of a humongous server). And, the rest, is mostly applications running on what I assume are clusters of cloud machines that expose an HTTP interface to my browser (a lot like the beloved 3278 terminal, but not nearly as clicky and tactile).
Yes, I think there is some aspect that's supposed to be about a trade that has some effect outside the game. I think these are generally not desirable in games because they either reward those who have more resources outside the game or they reward those for which the game represents a larger fraction of their life as a whole, and this is generally against the usual fairness we tend to prefer in games (especially a bias towards this already exists through factors which are hard to control. Explicitly making it part of the game is already unnecessary).
Sorry, there's no difference between a $100 stock paying a $10 dividend and doing a buyback which increases the stock price to $110. You can always sell $10 to realize the same cash in your pocket.

> and speculators

Everybody who invests is a "speculator".
Seems like a reddit post that links to a blog post, like it's an indirect link. This HN post is just self advertising, which ironically makes it unorganic.

Edit: there's a dead HN post that's a direct link to the blog post from about 4 hours ago
Cloud GPU Resources and Pricing
A comprehensive list of GPU options and pricing from cloud vendors. Very useful if you're looking to train or deploy large machine learning/deep learning models.
> A number in JSON can have an arbitrary number of digits, i.e. it can represent any BigInt value.

In my experience, violating type constraints causes problems in downstream systems (usually with parsing or trying to operate on invalid values).

Number, as defined by the JSON Schema spec. A 32-bit signed integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647

BigInt is defined by various (MSFT, MySQL, etc): -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Most systems use a JSON String for large numbers, out of necessity, not JSON Number.
Accountants are like attorneys. The shitty ones go through the motions and create problems. The great ones often solve problems before you know you have one. They get a bad rap from a stereotype perspective!
> I mean, PyPA aren't the brightest minds around

You don't need to be an asshole to get your message across.
Surprised these folks would choose to buy results from Bing at all. They certainly would know people capable of building an actual index of the web.