Better HN
topnewbestaskshowjobs
Log inSign up

piinbinary

3,021 karma · joined Jul 16, 2010 (16y ago) · 466 submissions

Jeremy Mikkola

http://jeremymikkola.com

Email: <My first name><2^7=>@<google's mail product>.com

https://twitter.com/silenceofnight

Submissions

271.

The Robots, AI, and Unemployment Anti-FAQ (2013)(lesswrong.com ↗)

1 points · by piinbinary · 7y ago · 1 comment

comment 7y ago · link · parent

Relevant XKCD: https://xkcd.com/721/

comment 7y ago · link · parent

> With how cheap ram is these days, sharing a kernel is pointless

I don't think ram use is the reason to share the kernel - the main advantages are startup time and IO performance.

comment 7y ago · link · parent

When you are talking about making code "clear," I think it's important to ask "clear about what?"

Is it:

* Clear about what the machine is doing?

* Clear about what the possible error cases are?

* Clear about the purpose of the code?

Go often prioritizes making it clear what the machine is doing over making the purpose of the code clear. In some languages you might write `newList = map(myFunc, myList)`. This is clear about what I intend, but not how it is accomplished[0]. The equivalent for-range loop in Go is clear about what it does at the expense of diluting the intent.

[0] for example, that map function could apply to the first element first, or the last element first, or it could apply to all the elements in parallel.

comment 7y ago · link · parent

I think the issues you describe are a function of company size. If you find one that is under 50 (or even under 20) people, there will be basically zero corporate fluff.

comment 7y ago · link · parent

https://github.com/niofis/raybench/pull/8

comment 7y ago · link · parent

The haskell version can be made >= 3x faster by making the computations non-lazy, e.g.

    -data Vector3 = Vector3 {vx::Float, vy::Float, vz::Float} deriving (Show)
    +data Vector3 = Vector3 {vx :: !Float, vy :: !Float, vz :: !Float} deriving (Show)

comment 7y ago · link · parent

Ironically, the link in the "Found an error/typo? Please submit a pull request." part of the docs leads to a 404 (is the repo private?)

comment 7y ago · link · parent

That could make an interesting piece of art

280.

Rules for Autocomplete(jeremymikkola.com ↗)

473 points · by piinbinary · 7y ago · 141 comments

comment 7y ago · link · parent

> 472 gigaflops

Whenever I hear a number of gigaflops or terraflops, I like to look up the history of super computers [0]. This $99 computer is faster (on paper) than the world's fastest supercomputer in 1996, or a bit over 20 years ago. That's pretty cool.

[0] https://en.wikipedia.org/wiki/History_of_supercomputing#Mass...

comment 7y ago · link · parent

I'd ask him "can you give me advice on how to do that?" There is probably some piece of context in his head that he's referring to (and he didn't realize that the piece of context doesn't exist in your head).

comment 7y ago · link · parent

I see code comments as useful for two categories of things:

1) Information that is available by reading the code. In this case, the comments serve as a short-cut to understanding the code. They might be explaining what an obscure flag does, noting the name of the algorithm being implemented, or giving an overview of the structure of the code. You could learn that by reading the code, but reading the comment is faster.

2) Information that is _not_ available by reading the code (or is unlikely to be corrected derived by reading the code). For example, the reasoning behind decisions can only be guessed at by reading the code alone.

comment 7y ago · link · parent

So many tasks can only take advantage of a single machine (and too often, only a single thread!). While that doesn't change the cost of the CPU time it uses, it does mean that you have to wait much longer to get those N hours of CPU time to save that hour of programmer time. That wait time could completely undo the productivity gains.

comment 7y ago · link · parent

I just downloaded and built that. I was presently surprised to find that it "just worked." It picked up my .emacs, my color theme, my extensions and all the associated data. The only observable difference between it and real emacs was that it ran significantly slower. Presumably that will go away with time.

Great work!

comment 7y ago · link · parent

Relevant xkcd: https://xkcd.com/554/

comment 7y ago · link · parent

It seems that this has a better process (7nm vs. 12nm), more memory (and bandwidth), and more power draw than the RTX cards.

So why does it have equal/lower performance? Is it just that it has fewer transistors (13.2B vs. 18.6B)? (And if so, why doesn't the smaller process allow more transistors?) Or is there also a difference in the architecture where a better design could get more performance out of the same amount of silicon?

comment 7y ago · link · parent

Google cache: http://webcache.googleusercontent.com/search?client=ubuntu&c...

comment 7y ago · link · parent

It is important to remember that functions exist for the sake of humans, not computers. The computer wouldn't care if all the code was in a giant main() function with GOTOs and a manually-managed stack, the programmers are the ones who have a problem with this.

comment 7y ago · link · parent

I think that if "First bit," "Second bit," etc can be called out that explicitly, I don't mind big functions that much.

The trouble comes from functions where the various bits are all mixed together. This means that comments cannot easily name the sections (for me, one of the main advantages of a function is that it must be given a name), and you cannot easily narrow your reading to just the part you care about.

Another advantage of smaller functions is that some of them end up being general enough functionality to be worth sharing with other code.

Finally, it's possible to test doFirstBit() independently of the other logic in big().

comment 7y ago · link · parent

I think it can be boiled down to: companies see potential costs but no potential advantages (for them).

comment 8y ago · link · parent

edit: what the child comment said

comment 8y ago · link · parent

I recently learned that wikipedia allows you to set custom CSS for your user: https://en.wikipedia.org/wiki/Help:User_style

comment 8y ago · link · parent

Feature request: A documentation search bar right at the top on the homepage. As an existing user, that's usually the first thing I want to see. After that, a link to browse the documentation. Then a link to install it.

When looking at the home page, I don't know what "Get started" is going to take me to, but experience with other sites has given me a bad taste with "Get started" buttons. (The content it leads to here is good, though much of it would have been better put on the front page.)

Personally, I think trying to sell the language on the homepage is the wrong goal. I like language examples on the homepage to make a snap judgement about a language. If I can't see an example, I'm going to assume that there is a reason you don't want me to see it.

If I'm unfamiliar with the language, the things I want are:

* A code example

* A listing of properties of the language (e.g. statically typed, compiled, no gc, memory managed at compile time, etc)

* A command to install it

* A link to a tutorial where I can quickly try out the basics

* A link to the documentation so I can get a sense of its quality

* A link to the github page

comment 8y ago · link · parent

Autoscaling doesn't always help with hot shards (which I think gp was referring to) because you can have a single shard go over its share of the throughput[0] while still having a low total throughput.

[0] total throughput/num shards

comment 8y ago · link · parent

My wishlist for DynamoDB is now down to:

* Fast one-time data import without permanently creating a lot of shards (important if you are restoring from a backup)

* Better visibility into what causes throttling (e.g. was it a hot shard? Was it a brief but large burst of traffic?)

* Lower p99.9 latency. It occasionally has huge latency spikes.

* Indexes of more than 2 columns

* A solution for streaming out updates that is better than dynamodb streams

comment 8y ago · link · parent

I wrote a bit about how to inter types here: http://jeremymikkola.com/posts/2018_03_25_understanding_algo...

Two things I see missing from your code: A current substitution and a unification function.

This paper might also be helpful to read: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.65....

comment 8y ago · link · parent

I'd really love to get to design cities.

Besides things like favoring walking/biking over cars and maximizing both density and green space, it would be lovely to ban leaf blowers and truck reverse beeps (and mufflerless motor cycles, cars with loud bass, etc). Perhaps the large trucks could drop things off at the edge of the city, and from there smaller, electric, beepless trucks could bring goods the rest of the way in.

comment 8y ago · link · parent

I didn't realize until recently how much I took clean air for granted, but today I am thankful for it.

300.

Ask HN: What is a good book to learn about the network stack?

81 points · by piinbinary · 8y ago · 20 comments

1
91011
16