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

On Linode you can run any Linux for $5/month with 1gb of RAM and 25gb of storage


I just found this video on YouTube now:

https://youtu.be/A8fDr7Rr7yM?is=cHwOQVrli9oXLdqY


That doesn't show this project.


Open to see what it was about, stayed for the banger soundtrack


Rainfall

And at least the forest soil has the same amount of carbon stored.


I usually like to write elegant code using Python and frameworks like Django.

The pleasure comes from the "the only right lines of code" instead of "the most lines of code".


Nice advice



Everyone in Brazil capital cities are receiving extreme alert messages with just the text: "misanthropi"


I would use a hash of the body content (the query) as a URL parameter

/?hash=123456789


Why? That's pushing more work to do both on yourself and the cache.


Actually this is a use-case supported by this RFC [1]. You accept an arbitrary QUERY /search/ and you cache it on your side (or in a middle box somewhere such as a CDN edge) you can return in your response:

    Location: /search/?queryHash=SOMECDNHASH
The browser can then cache that Location and the next time convert that same QUERY /search/ into GET /search/?queryHash=SOMECDNHASH.

Sure, it is more work for your webserver to compute that and potentially the browser to cache it's knowledge of that QUERY, but it potentially gives you an advantage in keeping things like CDN edge caches generally aware of client/browser caches in a way that can be performance optimized.

[1] https://www.rfc-editor.org/info/rfc10008/#section-2.4


So the majority of the hardware should stay on the moon where latency isn't so critical. There the cooling won't be the problem.


Elon said they will manufacture big heavy parts on the Moon to reduce the mass they need to use rockets for and maybe ship GPUs from Earth. It sounds like a science-fiction to me but what do I know. You can watch the full interview here:

https://www.youtube.com/watch?v=D_1j5dVWNYI


It is so simple that I had to look very slowly to understand. Nicely done.


If it wasn’t simple you could look fast and understand?


Yes.

But merely the word simple isn't the best. Replace simple with elegant.

It can be quite hard to fully and correctly understand a small perfect thing.

If it gets 20 different jobs done without 20 different if statements, it's small and elegant, and simple to impliment, but not simple to understand (maybe simple to think you understand it.)

20 if statements you understand immediately and with no effort.


If it wasn't simple, there would be more lines of code to implement the same idea. As it is, he might have had to spend an hour understanding one line to understand that idea (1 line/hr slow), as opposed to spending an hour reading a hundred lines of code (100 line/hr fast) for the same result.


kind of the flip side of pascal's "I would have written a shorter letter, but I did not have the time." if someone does have the time to make the letter short, it'll take longer to read (where "read" means to grasp the subtleties of.)


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

Search: