Hacker Newsnew | past | comments | ask | show | jobs | submit | chompychop's commentslogin

Does anyone know how this course compares to the NAND2Tetris course?


You can check out Onur Mutlu's videos on YouTube. I'd say it is much more demanding than NAND2Tetris.


There are some parts in nand2tetris that are not self-contained, in the sense that even if you study and master all the preceding content, it is not guaranteed that you can solve the assignment. That's why I don't like it that much.


Sam Altman.


Thanks.


Asynchronous and parallel programming are concepts I've never really learned, and admittedly scared to use, because I never really understand what the code is doing or even the right way of writing such code. Does anyone have any good resources that helped you learn this and have a good mental model of the concepts involved?


You’ll never learn it by reading something. You have to experience it. Get your hands dirty.

Write a simple single-threaded http server that takes strings and hashes them with something slow like bcrypt with a high cost value (or, just sleep before returning).

Write some integration tests (doesn’t have to be fancy) that hammer the server with 10, 100, 1000 requests.

Time how performant (or not performant) the bank of requests are.

Now try to write a threaded server where every request spins up a new thread.

What’s the performance like? (Hint: learn about the global interpreter lock (GIL))

Hmm, maybe you’re creating too many threads? Learn about thread pools and why they’re better for constraining resources.

Is performance better? Try a multiprocessing.Pool instead to defeat the GIL.

Want to try async? Do the same thing! But because the whole point of async is to do as much work on one thread with no idle time, and something like bcrypt is designed to hog the CPU, you’ll want to replace bcrypt with an await asyncio.sleep() to simulate something like a slow network request. If you wanted to use bcrypt in an async function, you’ll definitely want to delegate that work to a multiprocessing.Pool. Try that next.

Learning can be that simple. Read the docs for Thread, multiprocessing, and asyncio. Python docs are usually not very long winded and most importantly they’re more correct than some random person vibe blogging.


YOLO is not a segmentation model.



Thanks! TIL there's a class of segmentation models with the YOLO naming scheme.


I thought it was a joke about YAML


Lol you obviously haven't seen what cheats for FPS games look like in the last 3 years.

https://github.com/Babyhamsta/Aimmy


Where can I read more about your research? Knowledge graphs interest me.


Drop me a line on my profiles email.

I'm playing around with using hyperlinks in pdfs to get around how much the www sucks for posting serious research with serious working code.

Caveat emptor: I'm first working on getting the basic groundwork out, like a pipeline that shows what you need to do to extract a scanned pdf in a quality that tesseract can actually get text out of.


> I'm first working on getting the basic groundwork out, like a pipeline that shows what you need to do to extract a scanned pdf in a quality that tesseract can actually get text out of.

Sounds like TBL's contribution doesn't suck so much after all.


I have a beginner question - Can WebRTC be used as an alternative to sending base64-encoded images to a backend server for image processing? Is this approach recommended?


Depends on your needs!

https://github.com/pion/webrtc/tree/master/examples/save-to-... here is an example of a server that does what you need on the backend


Now I have the question - when does one send base64-encoded images to a backend server?


The OpenAI API is a pretty high-profile example of this existing in the real world. You use it in their conversations interface when you want to include images in the conversation. Discord also uses it for attachments https://discord.com/developers/docs/reference#image-data. More generally it's when you want to send image data as part of a larger JSON blob.


But modern browsers do have this feature, don't they? I can do this on Chrome and Firefox, at least.


I use DownThemAll on firefox.

The main feature I use it for is queueing multiple downloads, which I don't believe either chrome or firefox offers out of the box.

Highly useful when downloading from archive.org or other sites which block multiple concurrent downloads.

Seems way less suspicious than jdownloader to me.


Say a website links to 20 images and a dozen mp3s (and other files not in your interest). How would you without an extension like DownThemAll grab these files all at once?


Don't you mean "John" instead of "Jack"? :)


It's edging pretty close to this - multimodal LLMs can already beat early bosses in soulslike games: https://arxiv.org/html/2409.12889v2


Does it still have the "abstraction hell" issue when trying to work with it for custom, non out-of-the-box use cases?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: