Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 10y ago · link · parent

What happens if you accidentially add code where you dont own the copyright? Or an API Secret?

http://fossil-scm.org/index.html/doc/trunk/www/shunning.wiki

comment 10y ago · link · parent

No, originally Apple just provided huge patch sets. Here is some history from 2005, a few months before WebKit moved to a public CVS repo: https://blogs.kde.org/2005/05/13/webcore-khtml-firefox-know-...

comment 10y ago · link · parent

There is some precedent at Apple: WebKit is also developed in the open.

comment 10y ago · link · parent

"There should always be something higher than your ideals and goals" is a contradiction; if there were something higher, it'd become your ideal or goal.

It's only a contradiction if you're aware of what that higher something is. Part of humility is realizing there are things you don't know. Your ideals and goals are imperfect, and will change over your lifetime. Why didn't you choose the "highest" ideals to begin with?

comment 10y ago · link · parent

Before asking questions about the codebase, try to find the answer yourself by reading code and tracing its execution. Don't be afraid to fix problems anywhere you find them. This can be a good opportunity to learn how the system as a whole works.

Participating in code review is great: if they're OK with it, try reviewing senior teammates' commits as well. You can learn a lot by questioning why particular decisions were made, and you might even uncover a bug or two.

comment 10y ago · link · parent

Not defending the practice, but you can use 'xcrun' to find and run these binaries. E.g. to find swiftc, you can use 'xcrun -f swiftc', and to run it, 'xcrun swiftc'.

comment 10y ago · link · parent

Functional languages can't help you when architectures, standard libraries and compilers implement floating point slightly differently. Cross-system determinism is a totally different property than referential transparency.

comment 11y ago · link · parent

As long as there's an adapter that provides a headphone jack, I don't see a problem in removing the onboard headphone jack.

Well, you have to keep track of an adapter, which you can easily lose or forget to bring with you.

comment 11y ago · link · parent

Statistical simulations require good randomness (or your simulation might give a wrong result) and high speed but not cryptographic security. See, for example, xorshift* (http://xorshift.di.unimi.it), which is efficient and high-quality but not cryptographically secure.

2980.

Asynchronous Everything(joeduffyblog.com ↗)

29 points · by panic · 11y ago · 8 comments

comment 11y ago · link · parent

Which important details are they leaving out?

comment 11y ago · link · parent

These aren't "small efficiencies". Ember TodoMVC takes over 40 times as long to start than the vanilla JS version.

comment 11y ago · link · parent

It has nothing to do with how much ads cost. Modern ads are not helpful to society. They exploit human psychology for profit. They slow down the web. They collect vast amounts of personal information. They divert resources which could be used to actually improve the world.

I understand that ads are a necessary evil for some businesses, but scroll to the bottom of a news article sometime. Is this really what we want our world to look like?

comment 11y ago · link · parent

The original paper was published in 1992 (http://dl.acm.org/citation.cfm?id=157525) but doesn't seem to be freely accessible anywhere in PDF format.

2985.

What Can You Put in a Refrigerator?(prog21.dadgum.com ↗)

3 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

The only problem I see is that often the floating point format is not specified properly. When one writes "0.3", what does it actually mean?

It's perfectly well-specified. If you are using double-precision floating point, "0.3" means 0x3fd3333333333333 (as bits), or 0.299999999999999988897769753748434595763683319091796875 (as an exact number: the closest representable number to 0.3).

comment 11y ago · link · parent

This is more a comparison of output routines than anything else. In PHP, one of the languages that gives the "correct" result:

    php > echo .1 + .2;
    0.3
    php > if (.1 + .2 === .3) { echo "equal"; } else { echo "not equal"; }
    not equal

comment 11y ago · link · parent

There doesn't seem to be a way to pass. How do you end the game?

As a very bad Go player, the bot managed to be even worse than me in several key engagements, giving me territory I had no right to capture. It still beat me by a little bit, though (I think -- the game never actually ended!) I wonder if complementing the NN with a more traditional tree search would help it play better tactically.

EDIT: Also, your paper link is broken for me: replacing https:// with http:// makes it work.

2989.

Is Usability on Mobile Getting Worse?(ignorethecode.net ↗)

1 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

Why not use optional chaining? https://developer.apple.com/library/ios/documentation/Swift/...

comment 11y ago · link · parent

Note that Haskell functions, when considered as values, do not actually form a category: https://wiki.haskell.org/Hask

2992.

A Quick Look at the Pony Programming Language(bluishcoder.co.nz ↗)

3 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

Are fire codes really enforced in this way? Obviously the closet wasn't built to sleep in. It's one thing to force building owners and landlords to build and maintain rooms a certain way, but using a law to force people not to sleep in a closet seems counterproductive.
1
99100101
120