HNHacker News
TopNewBestAskShowJobs

danjoc

2,643 karma · joined January 10, 2016

submissionscomments
danjoc··on Why Y? Deriving the Y Combinator in JavaScript
Why don't we just illustrate the problem using the code from the article?

https://jsfiddle.net/q59Ljeu7/

A loop is not just fewer LoC and easier, it is orders of magnitude faster than the ycombinator decoupled trampoline. The first alert is nearly instant. The second one takes almost a minute. My chrome dev tools are hard locked waiting for the ycombinator to finish.

This is not something I would encourage JS devs to use in practice.

danjoc··on Why Y? Deriving the Y Combinator in JavaScript
Going out to main memory is orders of magnitude slower than hitting cache. Even a stack overflow would be preferable to debug vs an out of memory error. At least with the stack overflow, the stack trace pinpoints the problem.

Like I said, I have no problem with this article as an illustration of a ycombinator for JS devs. The problem is it does not warn them sufficiently of the very major drawbacks in using it. This is why we have Gate's law; Developers using inefficient constructs because they're neato.

danjoc··on Why Y? Deriving the Y Combinator in JavaScript
So we start out with an attempt to build an anonymous recursive function. That's cool I suppose. But doing it in a language like javascript (or java)? It turns out that tail recursion == stack overflow. Not daunted, the plucky author decides that we can solve this particular issue by creating a closure over stack variables and put them on the heap instead!

You know, if you want to use Haskell, use Haskell. Trying to shoehorn this stuff into languages designed for loops instead of recursion just means impressionable JS developers are going to see this and rush out to implement it in some project to prove how smart they are. Then everyone suffers. The implementation is slower because it goes to heap. The memory usage explodes because it goes to heap.

Purely for illustration of a Y combinator, this is great. But there should be a big red warning somewhere on the page as a reminder of the downsides of this approach.

danjoc··on Silicon Valley Doesn’t Like Trump. It Can Still Work with the Government
I find it unsettling that Silicon Valley employees would rather see a foreign nation win the race to build autonomous killing machines. It's not just the open contempt they have for their own countrymen, but it seems borderline suicidal.
danjoc··on Popular iPhone apps caught sending user location data to monetization firms
>Apart from the fact that it doesn't actually exist yet.

Well, sure, I'll give you that point, but it's going to happen.

>it's already a badly specced phone commanding top dollar

The selling point isn't the specs. It's the RYF certification and kill switches. Even if they can't get the RYF, it's still a better option than anything else out there.

>being made by a small company that could easily go broke in a year

I really doubt that. They have a laptop business already. They've been doing hardware for a while. This one might ship months late, but I'm confident it will happen.

>For half the price I could get a flagship Xiaomi, flash LineageOS on it and have a completely degoogled high quality Android phone likely supported for most of the next decade.

Yep, and you still have a sealed battery, a backdoored baseband, and binary blobs. The iMX.8 is pretty sweet. It has open source GPU. Can't say that for mali or powervr. I can consider making Librem 5 my convergence device.

danjoc··on NSA metadata program “consistent” with Fourth Amendment, Kavanaugh once argued
Blame the judge for the laws congress passed. Blame the congress for the law the executive misused. Blame the executive for misleading the fisa judges. It's a perfect circle.
danjoc··on My Story as a Homeless Developer
Any suggestions on models?

I like the flexible one because it's lightweight and not easy to break. I'd be open to other options though if you have suggestions.

danjoc··on Popular iPhone apps caught sending user location data to monetization firms
For the same reason everyone is blaming Facebook instead of Cambridge Analytica perhaps?
danjoc··on Popular iPhone apps caught sending user location data to monetization firms
Having an OS and apps I can trust to not send location data solves that problem. The kill switches ensures no roving bugs, modem AT commands, and passive tower triangulation when I'm not using the radio. Pretty simple really.
danjoc··on Popular iPhone apps caught sending user location data to monetization firms
> it’s going to need to know where I am to provide me the forecast

Why would you think that? I don't need to give a weather app my location. It only needs to have one or more locations of interest to me. My weather widget pulls multiple locations for me, and has no access to my location data.

danjoc··on Popular iPhone apps caught sending user location data to monetization firms
The EFF is just astroturfing,

https://thebaffler.com/salvos/all-effd-up-levine

>A solution for a few outliers doesn’t really influence the big picture.

There's nothing stopping anyone from buying a Purism 5. If someone doesn't care about their privacy, they don't deserve it. Freedom isn't free, and all that.

danjoc··on Popular iPhone apps caught sending user location data to monetization firms
Stories like this, the Uber story, and the recent one about Google tracking location even when you opt out, are why I'm looking forward to Purism 5 with PureOS and kill switches.
danjoc··on My Story as a Homeless Developer
>I want to write on these things and your response motivates me to do that.

I would caution you not to. What goes on the internet stays there forever. Google will fight your right to be forgotten. Real names are a great way to attract batty twitter haters who want to ruin your life due to some perceived slight from reading your stories. You can easily go from pity story of the day to "ZOMG I hope you never get a job and die in the streets" in just a few words on this board. Be wary.

danjoc··on My Story as a Homeless Developer
Here's a few choices,

https://www.amazon.com/SOKOO-Portable-Efficiency-Reinforced-...

https://www.amazon.com/Foldable-Waterproof-Efficiency-Cellph...

https://www.amazon.com/Balight-Outdoor-Foldable-Powered-Char...

28W basically gives you an fourth panel, but your backpack is probably 3 panels tall.

danjoc··on My Story as a Homeless Developer
>keeping a charge was almost impossible

Hey Jesse, pick up a solar panel. You can get waterproof two usb port that'll crank out 20-30 watts ~$50. I'd recommend an ARM laptop too. They're cheaper and Intel is generally too power hungry anyway. A Samsung Chromebook Plus used on swappa would be really nice. It has a really bright display so you can still see it outdoors in the sun. For data, T-Mo is unlimited for $30/mo pre-paid.

Put your panel in the sun, sit in the shade at a park, tether your phone for internet, and you're golden. You can strap the panel to your backpack and charge on the move too.

danjoc··on Ancient farmers spared us from glaciers but changed Earth's climate: study
Logically speaking, this is incorrect. Both could be true given a circumstance, like say, the sun goes red giant in the later case.

Furthermore, "the reason" can usually be whatever you want it to be if you go far enough back in the chain of causations. My hands were wet this morning when I dropped the jelly jar. But that wasn't my fault, it was the water company's fault for supplying the wetness on my hands. Or perhaps it was the Roman's fault for kickstarting the whole thing with aqueducts. But that's really just mankind's fault for existing, so human activity is at fault for my loose grip on the jelly jar today.

Overall, I found this article interesting, and frankly: Go mankind! We averted an ice age and certain death/destruction with farming. If we want to talk about problematic climate change, look at how living on top of a mile of ice works out for our species.

danjoc··on Firefox about:config privacy settings
Good grief that's a long list. I'd rather just use a browser like Brave with privacy and ad blocks enabled by default.
danjoc··on Titan Security Key Available
It's also manufactured by Google, which is equally adept in spying and probably more unworthy of trust.

But more importantly, it's just a bad deal. A yubikey neo can do GPG, PIV, OATH, OTP, HMAC challenge response, and a few other things in addition to NFC U2F for the same price. The Titan dongles package just does U2F, and U2F isn't even that great.

danjoc··on Titan Security Key Available
>how can the private key flow back to China?

You're assuming the key needs to flow back.

danjoc··on But Rich People Live Here, So We Can't Be Going Broke
Who's really the sucker when they can just keep counting on forever increasing real-estate valuations? Even in the 2008 collapse, banks got bailouts and the market today is just as ridiculous as it was pre-2008.[1] "Too big to fail." The cars, the private school, they're nothing but a couple years of home appreciation with a generous tax writeoff discount. Free money, no work required. Houses in the middle of the desert and homes that have burned to the ground, are worth more than a garage full of Ferraris these days.

Savers are stupidly working hard and socking away meager sums rather than hopping on the housing gravy train.

[1] https://www.washingtonpost.com/news/politics/wp/2017/06/20/f...

danjoc··on Email security on Democratic campaigns is as bad as 2016
What self hosted email does U2F? Seems like a legit point in an article touting U2F email authentication.
danjoc··on Lerna restores unmodified MIT license
I hope James Kyle seeks counseling after this meltdown. I'd hate to see another Ian Murdock. Get help.
danjoc··on Robocalls tell seniors net neutrality raises phone bills by $30
>The robocalls cite no evidence supporting the claim that net neutrality rules will raise cell phone bills and slow down Internet service.

Because only people in favor of Net Neutrality are allowed to do that. Remember before the repeal, proponents of Net Neutrality claimed we would all have to pay more or receive slower service? I certainly do.

I'm not in favor of these robocalls any more than I'm in favor of Net Neutrality supporters lying to people. arstechnica are pure hypocrites. They did exactly this, now they complain about the other side doing the same.

https://arstechnica.com/tech-policy/2017/07/ars-technica-sup...

>Perhaps your ISP will throttle the high-bandwidth BitTorrent file-sharing protocol—or whatever replaces it. (Remember the Comcast BitTorrent debacle that resulted in Comcast paying $16 million?) Or maybe your ISP will just charge you extra to use it.

danjoc··on Trump Accuses Google of Burying Conservative News in Search Results
According to The Atlantic, The Atlantic endorsed Clinton. Only the third candidate they've endorsed since 1860.

https://www.theatlantic.com/magazine/archive/2016/11/the-cas...

Abraham Lincoln, Lyndon Johnson, Hillary Clinton.

danjoc··on Trump Accuses Google of Burying Conservative News in Search Results
>I trust Silicon Valley a hell of a lot more than I trust our government...

The non-poaching agreements make me disagree with you.

danjoc··on Air-conditioners do great good, but at a high environmental cost
The article points out the issue with AC isn't energy/CO2, it's refrigerants.

>Second, air-conditioners use so-called “F gases” (such as hydrofluorocarbons, or HFCs) as refrigerants. When—as is common—the machines leak in use or on disposal, these gases escape, doing vast damage. HFCs trap between 1,000 and 9,000 times as much heat as the same amount of CO2, meaning they are much more potent causes of global warming. On this basis, Paul Hawken of Project Drawdown, a think-tank, calculates that improving air-conditioners could do more than anything else to reduce greenhouse gases.

danjoc··on Y Combinator Learns Basic Income Isn't So Basic After All
Basic income is conceptually the same as social security. If you want basic income, you should be thinking about lowering the retirement age.
danjoc··on The NSA Continues to Violate Americans' Internet Privacy Rights
>President Trump, who as a candidate called for expanded spying on Americans.

I may not agree with Trump on it, but least he was honest about his support for it.

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

danjoc··on California’s strict net neutrality bill is close to final passage
>(a) It shall be unlawful for a fixed Internet service provider,

I assume this means 'not mobile'

>(1) Blocking lawful content, applications, services, or nonharmful devices, subject to reasonable network management.

California will outlaw ISPs providing network level ad blocking services.

>(6) Zero-rating some Internet content, applications, services, or devices in a category of Internet content, applications, services, or devices, but not the entire category.

California will make T-Mobile Binge On type service illegal for cable providers to offer.

>(b) It shall be unlawful for a mobile Internet service provider, insofar as the provider is engaged in providing mobile broadband Internet access service, to engage in any of the activities described in paragraphs (1), (2), (3), (4), (5), (6), (7), (8), and (9) of subdivision (a).

And the will outlaw T-Mobile Binge On too.

Submitted without opinionated commentary.

danjoc··on Germany’s Failed Climate Goals a Wake-Up Call for Governments Everywhere
That was obvious 15 years ago. It didn't matter to them then either. What mattered was the test of time. The model failed so badly, Mann himself could no longer support it. I just thought you'd like to know that Mann quietly disavowed the model, since nobody has been allowed to add that to the wikipedia page. Nuclear shills are still trying to convince everyone that CO2 is more dangerous than radioactive waste. Nothing changes with them.
Page 1 of 27Next →