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 8y ago · link · parent

It might be more accurate to call what Rust can do to function arguments "destructuring" rather than "pattern matching"

comment 8y ago · link · parent

I have been using the 1.10 release candidate for a while, and I have been really appreciating the build caching. It makes running tests after a small change as much as 10x faster for me (especially on projects that import huge libraries, like the AWS library).

comment 8y ago · link · parent

> Spinlock fixes and support for Motorola 68K and 88K architectures

I'm astounded that they support those architectures

comment 8y ago · link · parent

One solution for unique primary keys is to use a system like Snowflake [0]

[0] https://blog.twitter.com/engineering/en_us/a/2010/announcing...

comment 8y ago · link · parent

(Asking for my own edification) What does the output of branch predictor get used for in a CPU without speculation?

comment 8y ago · link · parent

I think the dynamic range is too compressed. In a real photo, you'd expect to see the difference in brightness between the clouds and the shadows be far greater.

comment 8y ago · link · parent

I know of at least one bank that requires your password to have exactly one digit. Not one or more, exactly one.

comment 8y ago · link · parent

Do any of those build this style of mock? I looked around a while back and didn't come across one.

edit: I looked again and found https://github.com/matryer/moq which seems similar

comment 8y ago · link · parent

My go-to is a pour over.

I actually prefer the richer result of a French press, but I'm lazy and don't want to clean it out afterwards.

comment 8y ago · link · parent

I also use that same pattern. I'm very tempted to write a tool to be called by `go generate` to automatically create that kind of mock.

comment 9y ago · link · parent

After reading Peter Norvig's post about a lisp implementation [0], I decided to write one in Python.

I got something working in 65 lines [1]

[0] http://norvig.com/lispy.html

[1] https://gist.github.com/jmikkola/b7c6c644dff1c07891c698f0a52...

comment 9y ago · link · parent

I think the range is even more impressive

comment 9y ago · link · parent

short version: i686 is a 32bit architecture, and x86_64 is a 64 bit architecture. It adds things like larger registers (and more of them).

comment 9y ago · link · parent

That reminds me of one I built a while back: https://github.com/jmikkola/wicVM/blob/master/instructions.c

I was proud of how fast I got it to run instructions, given that I knew nothing about other virtual machines.

comment 9y ago · link · parent

Ah, I guessed that you might be taking some approach that generated numbers to try.

Mine was the brute-force "calculate all primes under a million then test them all" approach.

comment 9y ago · link · parent

I'm curious how you got it to even go that fast. My best solution takes about 6 milliseconds, so 20x longer.

comment 9y ago · link · parent

I think the semantics of Go's error handling is pretty good, but the syntax could use work.

comment 9y ago · link · parent

An AMD engineer explains how TDP doesn't actually mean power draw:

https://www.reddit.com/r/Amd/comments/6svy1a/tdp_vs_tdp/dlg8...

comment 9y ago · link · parent

Much modern software development seems aimed at avoiding paying up-front complexity costs, at the expense of much greater complexity later on.

comment 9y ago · link · parent

For food, I'd like a map that allows me to minimize the sum of time spent traveling and time spent waiting in line.

comment 9y ago · link · parent

What are the most common classes of bugs you observe?

comment 9y ago · link · parent

I love it.

The only improvement I could ask for is about 100 bytes of CSS to limit the column width, change it to a serifed font, and increase the font size.

comment 9y ago · link · parent

Agreed. I'd argue that the classic `for (int i = 0; i < n; i++)` loop isn't very readable unless you have seen for loops several times, in which case it is pretty easy to read.

comment 9y ago · link · parent

I highly recommend Write Yourself a Scheme [0]. It is self-contained; besides knowing Haskell (and perhaps Scheme), it doesn't expect you to know anything about writing compilers.

While I'm here, does anyone know of any practical resources on how to implement LLVM languages with GC? The documentation [1] leaves something to be desired.

[0] https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_...

[1] https://llvm.org/docs/GarbageCollection.html

comment 9y ago · link · parent

Off topic: I appreciate how fast that site renders.

386.

Principles for building a great consumer tech company(medium.com ↗)

2 points · by piinbinary · 9y ago · discuss

387.

AMD Ryzen Threadripper 1950X and 1920X Unboxing(anandtech.com ↗)

49 points · by piinbinary · 9y ago · 19 comments

388.

How to move commits between Git repos(jeremymikkola.com ↗)

3 points · by piinbinary · 9y ago · discuss

comment 9y ago · link · parent

I would also love Result<Err,MyThing> in as a return type in place of (err, myThing)

comment 9y ago · link · parent

Idris is basically an eager-evaluated Haskell, with other niceties on top (dependent types if you want them; fixed String type)
1
1213141516