Better HN
topnewbestaskshowjobs
Log inSign up

eigenvalue

6,392 karma · joined Mar 13, 2013 (13y ago) · 1,218 submissions

Currently building pastel.network in NYC

See my open source projects here:

https://github.com/Dicklesworthstone

And my Twitter here: https://x.com/doodlestein

Submissions

comment 2y ago · link · parent

It still has a market cap over over $100b. Trust me, things can absolutely get worse from here. The default state of big companies that have been deeply mismanaged for 10+ years is that they go bust and end up getting bought out for a pittance. If the fabs can't be made to work in a reasonable timeframe when they are still competitive in the marketplace, then they turn out to be giant write-offs and malinvestment only good for shielding future income from taxes.

comment 2y ago · link · parent

Does anyone know how megalights works? What’s the major innovation there? Is it using neural nets to approximate stuff?

comment 2y ago · link · parent

I loved this book so much when I was in high school. I read it again during college as well. Had a very big impact on me. He’s a really great writer and does a nice job profiling the various researchers and explaining the theory and ideas.

comment 2y ago · link · parent

They should have partnered with every major CDN and load balanced across all of them. It’s ironic how we used to be better at broadcasting live events way back in the day versus today.

comment 2y ago · link · parent

I understand how their approach worked well enough, but I don’t get why they couldn’t selectively target the VMs that were currently experiencing problems rather than randomly select any VM to terminate. If they were exhausting all their CPU resources, wouldn’t that be easy enough to search for using something like ansible?

comment 2y ago · link · parent

Some real-life examples of what the blog posts look like:

https://youtubetranscriptoptimizer.com/blog

comment 2y ago · link · parent

Thanks, I just fixed that. And that part of the readme was generated.

The "no heavy dependencies" comment was from the standpoint of adding this to an existing NextJS app; if you just want a standalone blogging option, there are probably better choices.

158.

Show HN: Next.js GitHub Markdown Blog(github.com ↗)

8 points · by eigenvalue · 2y ago · 3 comments

comment 2y ago · link · parent

Just having a computer that could handle working with relatively complex 3D models, not even visually but just via the terminal, would have been a tall order in the 80s. Even getting the data from the computer to the printer would be tough. Floppies wouldn't store enough data for even modestly complex 3D model files. Parallel port? Would be painfully slow. But even if you get around those issues, the algorithms for transforming the 3D model into 2D layers that could be printed with the proper support structures and with minimal material used are extremely complicated and involved a lot of intermediate data during the calculations. Most machines then wouldn't have had even close the amount of RAM needed to do that in any reasonable amount of time.

comment 2y ago · link · parent

I got an awesome rice cooker (Zojirushi NeuroFuzzy) for around $200, and started buying "sushi rice" in 5 or 10 pound bags from various Japanese food companies on Amazon.

Being able to make extremely good rice just like the rice from a good restaurant is incredible, and even fancy rice is cheap enough when purchased in bulk that you end up saving a decent amount of money over time. It takes just a few minutes to wash the rice in the sink and then under an hour to cook it, and you can leave it in there for a while and it will keep it nice and warm.

It's really great with chicken or beef and vegetables cooked in a Japanese BBQ sauce (I like Bachan's, which you can buy in bulk jugs on Amazon for around $40).

161.

Ask HN: Current best open-source or commercial automated LLM coding agent?

1 points · by eigenvalue · 2y ago · 2 comments

comment 2y ago · link · parent

Yes, here is a very good breakdown of how polls were systematically wrong by the French guy who just made over $40mm of profit betting on Trump in the prediction markets:

https://x.com/visegrad24/status/1853818243003125934

He put Trump's true probability of winning at 90% and a win of the popular vote at 75%.

163.

Show HN: Use a GitHub Repo as a CMS for a NextJS Blog(youtubetranscriptoptimizer.com ↗)

2 points · by eigenvalue · 2y ago · discuss

164.

Show HN: Use a GitHub Repo as a CMS for a NextJS Blog(youtubetranscriptoptimizer.com ↗)

2 points · by eigenvalue · 2y ago · discuss

comment 2y ago · link · parent

You should basically always be very suspicious when someone is trying to sell you a way to earn very attractive returns without a lot of risk or without time and effort intensive management. There is a lot of capital out there in the world looking for a return. If the returns really were so attractive on a risk-adjusted basis, and you could deploy a fair amount of capital without building a large organization and incurring a bunch of fixed operating expenses, why wouldn't someone who is a proven successful operator in that field just raise more capital themselves and keep more of the profits?

Even when the propositions look plausible on the surface, there is usually some hidden gotcha that prevents it from being scalable. For example, the economics only work if you can find a really good location that meets a bunch of requirements, and there simply aren't that many of those "good" locations left. Or it turns out that it requires very intensive management to deal with broken equipment, theft, vandalism, etc.

comment 2y ago · link · parent

There is a JSON column type in SQLite now, and it's supported by SQLModel/SQLalchemy:

https://www.sqlite.org/json1.html

comment 2y ago · link · parent

It's mind boggling to me that they wouldn't offer a color version of the Oasis, which is the obvious choice for any real Kindle enthusiast (metal, physical buttons, waterproof, amber light). Not sure who would even buy this color Kindle they came out with.

comment 2y ago · link · parent

Basically, you want anything that has any kind of IO (network, disk, etc.) or which is very slow to compute to be fully async. If you have a function that returns almost instantly, like computing the hash of something, you can keep that sync.

If you're forced to use a slower sync function (say, something from a library that you can't easily change), then you can use asyncio.to_thread() so that it can run in a separate thread without blocking your main event loop. If you don't do that, then you sort of defeat the whole purpose of the architecture because everything would stop while you're waiting for that slow sync function to return.

comment 2y ago · link · parent

FastAPI automatically generates the openapi.json file for you, which is how it's able to also give you the Swagger page "for free" once you've defined the route structure. It's very convenient.

comment 2y ago · link · parent

Thanks. I don't really see how the validation schema and ORM model would ever really diverge... it's basically just specifying the various fields that are required or expected and the types of those fields. Before I found SQLModel and I was separately using SQLAlchemy ORM and Pydantic, I would always end up with models that more or less looked the same but with just different syntax. And actually keeping them in sync was very annoying, since you would always have to remember to change things in both places. It's very natural to combine them.

The beauty of how tiangolo (creator of FastAPI/SQLModel) implemented things is that an SQLModel class isn't just LIKE a pydantic schema and LIKE an SQLAlchemy ORM data model-- they literally ARE those things under the hood, so you can still use those libraries separately for more advanced tinkering and stuff "just works".

comment 2y ago · link · parent

Yeah, I restrict it by the IP address, so the FastAPI backend can only receive connections from localhost or the one machine running the NextJS app. There are certainly lots of ways you could restrict it, such as using a password or key.

comment 2y ago · link · parent

No it doesn't do any forms stuff, but you can easily get the forms using your preferred UI framework from the data model definitions themselves using an LLM.

comment 2y ago · link · parent

Well you don't really need to get the auth to interoperate per se; the only machine that is allowed to connect to the FastAPI backend is the machine running the NextJS app, and it passes along the email address of the user making the request to the FastAPI backend.

And the user auth stuff in NextJS is incredibly easy using the standard Next-Auth flow: https://next-auth.js.org/

You basically just set up a new application in the Google Cloud console, enable the Google Plus API for the app, and create the OAuth keys, and that's about it. Just add the secret key and identifier to your .env file for the NextJS app and it "just works".

comment 2y ago · link · parent

It's such a game changer... I always had the thought before in the back of my mind, "Why do I need to create two versions of every data model that basically specify the same information (field name and type)?" And it turns out, you don't have to do that, you can use the same model for both the ORM and the response validation schema.

comment 2y ago · link · parent

It's working for me, and I see lots of traffic coming to it, so it's probably blocked for you. Most likely because it has "youtube" in the url!

176.

PSA: You can clone any HuggingFace "Spaces" setup locally easily

2 points · by eigenvalue · 2y ago · discuss

177.

Making the Python back end for my new webapp(youtubetranscriptoptimizer.com ↗)

76 points · by eigenvalue · 2y ago · 50 comments

comment 2y ago · link · parent

Thanks! Glad you found it useful. SQLite actually works really well for tons of applications where people often assume you need Postgres, and the simplicity of setting it up and backing it up is extremely compelling.

You can really help things a lot with the PRAGMAs, and if that doesn't work, you can use something like an async DB write queue pattern to deal with the simultaneous write limitations (and also by doing more stuff with transactions and bulk insertions).

comment 2y ago · link · parent

Author here. Would be happy to answer any questions people have. I learned a lot from making this, and think a lot of it would be interesting to others making web apps in Python.

180.

Show HN: What I Learned from Making the Python Back End for My New Webapp(youtubetranscriptoptimizer.com ↗)

2 points · by eigenvalue · 2y ago · 3 comments

1
567
41