HNHacker News
TopNewBestAskShowJobs

shpongled

1,100 karma · joined July 12, 2017

submissionscomments
shpongled··on Breaking Down Lululemon's $500M Mirror Acquisition
My boss recently bought some lululemon clothes and he swears by them now.
shpongled··on Ex-Googler's startup comes out of stealth with simple, clever robot design
No issues with humans being in my house. There is just something abjectly dystopian about robots (imo).
shpongled··on Ex-Googler's startup comes out of stealth with simple, clever robot design
Sometimes I read things on HN and wonder if I'm living in some alternate universe by myself. I would never in a million years, allow someone else to remote-operate a robot in my house. The idea of even allowing something above Roomba-level intelligence in my living area is a no-go.
shpongled··on This Blog Is Now Running on Solar Power
Food, medicine, etc have intrinsic value. That's what the OP is talking about. The US gov't says that the US dollar has value and is willing to back it up. That is extrinsic value.
shpongled··on This Blog Is Now Running on Solar Power
From your article:

> Cryptocurrencies have no intrinsic value. They are only worth what people are willing to pay for them.

How is this any different from US dollars, gold, or anything besides food, medicine, and shelter?

> Cryptocurrencies facilitate crime

Once again, the same argument could be applied to US dollars

shpongled··on Hindley-Milner Type Inference (2012)
Yeah I wonder what the actual cost is of (2). I know the Standard ML compiler MLton takes the monomorphization (2) approach as well, with good success. I'm currently writing a toy SML compiler for fun, and I'm planning on doing the same, since you get better run time performance, assuming you're using that info to do unboxing.
shpongled··on Hindley-Milner Type Inference (2012)
Generics in the sense of C++ templates can be a compile time killer. However generics in the sense of HM type systems are basically just asking the compiler to fill in the type for you, which it has already figured out. HM type inference in general is ~O(n) (and exponential in the worst case, but you basically have to try to do that)
shpongled··on Hindley-Milner Type Inference (2012)
You cannot unify a string and an integer. 'Base type' is just an abstraction over the enumerable primitive types (bool, unit, char, etc). It's generally understood that these are simple cases to unify, so they aren't even mentioned most of the time.
shpongled··on Hindley-Milner Type Inference (2012)
Implementation would be simpler, but only by a small degree. To be honest, HM is relatively straightforward to actually implement.
shpongled··on Hindley-Milner Type Inference (2012)
Level based generalization is a massive improvement in speed - I'm currently writing a Standard ML compiler for fun, and I saw a 30-50% decrease in elaboration type-checking duration when I switched to using levels. And it's not difficult at all to implement.
shpongled··on Hindley-Milner Type Inference (2012)
Yea bidirectional systems are nice - one of the big benefits is that you can also have polymorphic function arguments, something you can't do in standard HM.

I recently implemented the bidirectional system in Rust from the paper you linked, it was fun (and a challenge!)

[0] https://bit.ly/2W96K2r

shpongled··on Blog Anonymously
Absolute insanity right here.
shpongled··on Police surveilled protests with help from Twitter-affiliated startup Dataminr
I think you're barking up the wrong tree here. A cursory glance over my comments would show that I don't have a desire for big government. I think we should immediately abolish the IRS, ATF, DEA, and NSA
shpongled··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
Haha, yeah I love how he thinks that the government shouldn't have access to our data without a warrant, period, full stop and that the 3rd party doctrine and "reasonable belief" doctines should be repealed.
shpongled··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
The Constitution? No, it applies to states as well. The SC has also explicitly ruled that the Due Process clause of the 14th Amendment makes the Bill of Rights applicable to the states.
shpongled··on Police surveilled protests with help from Twitter-affiliated startup Dataminr
Because history has shown time and time again that governments cannot be trusted to do what is in the best interest of the people.
shpongled··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
I agree, it's far past time to remove California's unconstitutional gun laws.
shpongled··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
Gorsuch is definitely my favorite Justice. His opinions are always fun to read. You know when the words "Trail of Tears" appear in the first sentence of a decision that things aren't going to turn out well for the government...
shpongled··on U.S. Supreme Court deems half of Oklahoma a Native American reservation
This comment just demonstrates your political biases, that's all. I don't know why you would be surprised that Gorsuch or Scalia would be in favor of freedoms for the people.
shpongled··on Moving from TypeScript to Rust / WebAssembly
I'm a big Rust fan too. I have experience in all of the languages you've mentioned, and I'm most productive in Rust as well.

It's funny you mention enums, there was just another thread last week where I brought up how crazy it is that sum types (Rust enums) and pattern matching have been around since the 70s but have largely been limited to the FP languages. After extensively using Rust for ~3 years now, I don't ever want to use a language without sum types - you can write incredibly expressive and concise code with them.

The other major productivity boost for me is the ability to compose and chain Iterators and mix those with collection types.

shpongled··on Parallel ray tracing benchmark for functional programming languages
> Rust is the first language I've seen that is trying to do something about it. I think the idea is that MIR is an intermediate language that still retains type information, after lifetimes have been resolved. Using this, they can implement better analysis and preoptimize code before it hits LLVMs optimizers.

MLton also keeps type information around basically until machine code generation (as far as I understand, at least). There have also been several interesting papers/projects about typed assembly languages.

shpongled··on Yoloface-500k: ultra-light real-time face detection model, 500kb
Guns also have legitimate uses.
shpongled··on What is the core of the Python programming language?
It's gonna be an unpopular opinion here I suppose, but I agree with you. The only times I ever find myself reaching for python are one-off scripts, and when I have a simple problem that can be solved in < 50 loc with some combination of pandas + numpy + matplotlib. It's a good language for gluing together libraries, but I would never pick it for anything involving "actual" programming.
shpongled··on Go is boring, and that’s fantastic
I strongly disagree.
shpongled··on Go is boring, and that’s fantastic
I mean I could see learning Rust being really hard if you only know something like Python or JS. The only "system", as you say, that is present in Rust that doesn't have something analogous in C++ is the borrow checker, and lifetimes still exist in C and C++. Rust is significantly simpler and easier to learn than C++
shpongled··on Go is boring, and that’s fantastic
The crazy thing is that sum types (Rust enums) and pattern matching have been around for at least 30 years. I'm simply not interested in learning any new language that doesn't have sum types, they allow you to write incredibly expressive and terse code.
shpongled··on Oppose the Earn IT Act
Why would you be surprised? California has a long history of stepping on people's freedoms and rights
shpongled··on Why do so few people major in computer science? (2017)
> I always say to them that this is not for everbody, you are banging your head against the wall most of the time

This is what I tell people who want to get into bench science. It's funny, because I find programming to be an escape from the 'head-banging' of science. At least when I get stuck debugging a programming issue, I know that there is a fix, and I'll eventually find it. Compare that to science, where you might bang your head against the wall for weeks, months, or years, only to later find out that the problem simply isn't tractable, or that the problem had nothing to do with you at all.

shpongled··on Greatest Java apps
That is exactly what comes to mind for me when I think of "Java games". Absolute classics
shpongled··on Crispr gene editing in human embryos wreaks chromosomal mayhem
"Spooky action at a distance" doesn't imply that it's not governed by physical rules - and I think it's certainly a valid descriptor for biological systems as a whole.

Yes, we can break down aspects of biology into nice subsystems that we can define rules for - e.g. we have a pretty good idea of how DNA polymerase, or the ribosome carry out their duties (in isolation). It's when we start looking at the emergent properties of having all of these things in one larger system that our understanding starts to break down.

← PreviousPage 7 of 12Next →