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

comment 9y ago · link · parent

I'm not sure why this is being downvoted. These are perfect examples of where generics would make a genuine improvement.

392.

Dear FCC(jeremymikkola.com ↗)

1 points · by piinbinary · 9y ago · discuss

comment 9y ago · link · parent

TDP numbers from Intel don't tend to mean much. They group a wide range of CPUs under the same TDP.

The CPUs will generally use far less power than the TDP might suggest.

comment 9y ago · link · parent

What if it is raining? What about when it is too far away to arrive without being sweaty? What if it is too cold to be outside for long? What if it is too far uphill? What if you need to take a child with you? Or two people from out of town? What about bringing back furniture from ikea? How do you leave the city and go out to the surrounding area? What if you need to get somewhere faster than a bike can take you?

Cars remain necessary.

comment 9y ago · link · parent

Better internal documentation hosting.

I want something that can pull in documentation generated from code (from tools like godoc or javadoc), README files checked into code, plus other more wiki style documentation.

With all this documentation in one place, I want it to be smart about helping me deal with dead links and suggest pages that might need update when code updates. For example, say a wiki page references running a command with a certain flag. If I check in a change removing that flag from that command, the wiki should let me know that the page might need to be updated.

Ideally, this wiki would also have a stack-overflow -like Q&A feature to reduce the time spent helping other team members.

comment 9y ago · link · parent

It allows you to assign to the "return variables" inside the function, then just return without naming all the returned values at every return.

e.g. https://play.golang.org/p/gdac5QR-wW

This can also be used to return the default value for a type by never assigning anything to the return value.

comment 9y ago · link · parent

I don't know all that much about compilers, but I'm slightly surprised that Go doesn't automatically optimize the first into being the same as the second.

comment 9y ago · link · parent

The TDP for the 32 core chip (180W) is lower than the TDP was for their 8 core FX-9590 (220W).

Granted, that wasn't a server chip.

comment 9y ago · link · parent

I'm curious why a drone was able to cause any issue. Could a bird or stray piece of trash in the same area have caused the issue (was it a short?), or did it require the force of the spinning blades?

comment 9y ago · link · parent

You can do that with the 'TIMESTAMP WITH TIME ZONE' column type.

https://www.postgresql.org/docs/current/static/datatype-date...

(Edit: or not. See child comment)

comment 9y ago · link · parent

A few more I find useful:

    gdc      git diff --cached
    gg       git grep -n
    gss      git status -s
    glo      git log --oneline
    gamend   git commit --amend --no-edit

comment 9y ago · link · parent

I also have made one based on Norvig's: https://gist.github.com/jmikkola/b7c6c644dff1c07891c698f0a52...

comment 9y ago · link · parent

Poe's Law?

comment 9y ago · link · parent

I wonder if a MMORPG with an economy could be used to simulate what happens.

comment 9y ago · link · parent

read the right hand side as roughly:

    func(func(a): b): b

comment 9y ago · link · parent

That really sunk in for me when I realized that the entire point of OO classes (and even functions) is just to arrange the code in a way that makes sense to humans.

407.

Understanding nil in Go(jeremymikkola.com ↗)

2 points · by piinbinary · 9y ago · discuss

comment 9y ago · link · parent

If they can hang on until GM's driverless cars are ready for prime-time, they might have a real shot at surviving.

409.

Know your nil(jeremymikkola.com ↗)

1 points · by piinbinary · 9y ago · discuss

comment 9y ago · link · parent

With drives like this, the approach of "throw more hardware at it" continues working for databases to the point where most database loads in the world can be handled on a single machine.

comment 9y ago · link · parent

I found this [0] when trying to answer the same question myself

[0] https://en.wikipedia.org/wiki/Solid-state_battery

comment 9y ago · link · parent

Some assorted ideas:

* Expose the data dependency graph directly to the processor, rather than forcing the processor to infer it from the instructions.

* Annotate when data is read-only, to reduce communication between cores (for the sake of avoiding latency, not for bandwidth savings).

* Add a mechanism for much cheaper (if more limited) parallelism where a single core would work on multiple, related thunks in parallel, even if those units of work would be far too small to be worth coordinating with another thread to offload. This would likely be largely implicit, taking advantage of the first feature.

* Instructions for graph traversal. The CPU could (for some uses) order the traversal in a way that improves cache locality, based on how the graph is actually laid out in memory (and prefetch uncached nodes while working on cached ones).

* Something like map & reduce, where you can apply a small (pure) function to a list of data. Again, this would likely be done in parallel.

comment 9y ago · link · parent

That's an interesting point. Was Uber able to hide these issues from the VCs, or were the VCs aware of this? If they were aware, did they care? None of the possibilities reflect well on the investors.

comment 9y ago · link · parent

If you haven't done so recently, TEST YOUR BACKUPS.

comment 9y ago · link · parent

Or use `mv x x.bak` when `rmdir` fails

416.

Building Thumbtack: Five learnings in five years(medium.com ↗)

3 points · by piinbinary · 10y ago · discuss

comment 10y ago · link · parent

* Everything on one page

* Doesn't take 30+ seconds to load

* Sortable and filterable

comment 10y ago · link · parent

I did the same [0]. It runs almost as fast as the Java implementation.

I'd be interested to see how yours works if you are willing to share it.

Edit: Plus one that is ~2x faster than Java by avoiding allocations [1].

[0] https://gist.github.com/jmikkola/6ac96ad6d6f66e772c33ec41ed2...

[1] https://gist.github.com/jmikkola/7ded8392226b7659c881f5540be...

comment 10y ago · link · parent

I'm not sure this is exactly what you are asking about, but Rust does support testing right in the language. You can add #[test] before a function to make it a test function (tests and regular functions can live together in the same file).

https://doc.rust-lang.org/book/testing.html

1
1213141516