Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 9y ago · link · parent

I agree, but with this system you'd still need to update all the "implicit" blocks (which surround every function which passes on the implicit argument) to add the new flag. I'd love to see something closer to full dynamic scope, where you don't even need the "implicit" blocks.

comment 9y ago · link · parent

If the point is to create a real currency which lasts longer than a single person's lifetime, the problem of leadership and succession will have to be solved one way or another. A BFDL can only remain in charge for so long.

comment 9y ago · link · parent

Yeah, that's true for values you're willing to allocate inline. The key advantage of intrusive linked lists is being able to add and remove normally allocated objects without having to construct separate list nodes. The STL does have splice(), but it's awkward -- you always have to keep the object in a list and refer to it using iterators instead of normal references.

comment 9y ago · link · parent

C++ folks tend to dislike linked lists because it's awkward to make C++ lists intrusive. The STL list containers store the pointers in a separate allocation from the object itself, so they're slower than they ought to be.

comment 9y ago · link · parent

https://www.reddit.com/r/WeatherGifs/

1626.

Cory Doctorow: How to Do Everything (Lifehacking Considered Harmful)(locusmag.com ↗)

2 points · by panic · 9y ago · 1 comment

comment 9y ago · link · parent

From what I can tell, the Play Store only shows a price range per individual in-app-purchase item, not a maximum overall spending limit.

comment 9y ago · link · parent

App stores could easily enforce a rule like this. The maximum price could also appear next to the download link for the app so you know what you're getting into.

comment 9y ago · link · parent

A democratic state is (at least to some extent) accountable to its citizens. Facebook is only accountable to Mark Zuckerberg.

comment 9y ago · link · parent

> We are also a culture obsessed by image and impression. Look at the image at the top of this article. Images of futurist cities like this drive me nuts, am I looking at a pimped up motherboard or a city where people actually live? What if a sustainable and livable city doesn't look very exciting on picture?

Jane Jacobs addresses this topic at length in Chapter 19 of The Death and Life of Great American Cities. Here are the first few paragraphs (the whole book is a worthwhile read if you have the chance):

-

When we deal with cities we are dealing with life at its most complex and intense. Because this is so, there is a basic esthetic limitation on what can be done with cities. A city cannot be a work of art.

We need art, in the arrangements of cities as well as in the other realms of life, to help explain life to us, to show us meaning, to illuminate the relationship between the life that each of us embodies and the life outside us. We need art most, perhaps, to reassure us of our own humanity. However, although art and life are interwoven, they are not the same things. Confusion between them is, in part, why efforts at city design are so disappointing. It is important, in arriving at better design strategies and tactics, to clear up this confusion.

Art has its own peculiar forms of order, and they are rigorous. Artists, whatever their medium, make selections from the abounding materials of life, and organize these selections into works that are under the control of the artist. To be sure, the artist has a sense that the demands of the work (i.e., of the selections of material he has made) control him. The rather miraculous result of this process—if the selectivity, the organization and the control are consistent within themselves—can be art. But the essence of this process is disciplined, highly discriminatory selectivity from life. In relation to the inclusiveness and the literally endless intricacy of life, art is arbitrary, symbolic and abstracted. That is its value and the source of its own kind of order and coherence.

To approach a city, or even a city neighborhood, as if it were a larger architectural problem, capable of being given order by converting it into a disciplined work of art, is to make the mistake of attempting to substitute art for life.

The results of such profound confusion between art and life are neither life nor art. They are taxidermy. In its place, taxidermy can be a useful and decent craft. However, it goes too far when the specimens put on display are exhibitions of dead, stuffed cities.

1631.

CY-2017-011: Type Confusion in Adobe Acrobat(cybellum.com ↗)

1 points · by panic · 9y ago · discuss

1632.

Bail Bloc is a cryptocurrency scheme against bail(bailbloc.thenewinquiry.com ↗)

2 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Most assembly languages have a "jump" instruction, though -- wasm supports only structured control flow.

1634.

Against Productivity(medium.com ↗)

1 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Oops, I meant to say rural middle class!

comment 9y ago · link · parent

This narrative isn't consistent with what the actual tax bill does, which is a massive redistribution of wealth to the very richest Americans. For example, what part of repealing the estate tax for inheritances above $5.5 million will help this urban middle class?

comment 9y ago · link · parent

How do the results change if you use DynArray.make and pass the count instead of DynArray.create? I think the comment you're replying to was talking about preallocated static arrays, not dynamically resizing ones.

1638.

Gaussian Distributions Are Soap Bubbles(inference.vc ↗)

2 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Yeah, we need to stop seeing touch screens as "futuristic". They're a way to save money, replacing a purpose-built physical interface with a one-size-fits-all screen which can be manufactured at scale and programmed cheaply. Some things (e.g. cell phones) wouldn't be possible to make if they included purpose-built physical components for everything you might want to do with them, but in general, touch screens are worse than the interfaces they replace. This article on the subject is a good read: http://worrydream.com/ABriefRantOnTheFutureOfInteractionDesi...

comment 9y ago · link · parent

Which languages offer this in their standard library? It's not in any of the languages I have used: C, C++, C#, Java, PHP, Python..

Off the top of my head, Haskell has "deriving Eq", and Scheme has "equal?". I'm pretty sure Python uses deep equality for tuples as well. Anyway, it's just one example of something I wanted to do in JS recently and ended up disappointed in the quality of the code I saw to do it.

comment 9y ago · link · parent

Here's an implementation of "deep equality" -- a relatively common operation on composite values -- in JS. It has millions of downloads in just the last week: https://github.com/substack/node-deep-equal/blob/master/inde...

It includes special cases for dates, takes O(n log n) time in the number of keys, and has suspicious comments like, "I've managed to break Object.keys through screwy arguments passing. Converting to array solves the problem." There are 15 open issues and 15 open pull requests. A sane language would have this operation built-in.

comment 9y ago · link · parent

It's why JS won.

No, JS won because the web won. There's a web browser on almost every computer out there. If you write your software in JS, you can run it just by following a link to a URL. That doesn't have anything to do with JavaScript's absurd module ecosystem.

1643.

How to Give Mars an Atmosphere, Maybe(astrobiology.nasa.gov ↗)

18 points · by panic · 9y ago · 4 comments

comment 9y ago · link · parent

These are all great arguments for why Facebook's current model can never be a good way to run a social network. We need tools for people to build their own networks and make their own decisions, not a centralized network where all the decisions for the entire world are made by a small team in California.

1645.

“One Damn Slide After Another”: PowerPoint at Every Occasion for Speech (2016)(computationalculture.net ↗)

187 points · by panic · 9y ago · 109 comments

comment 9y ago · link · parent

Check out the field of general game playing:

https://en.wikipedia.org/wiki/General_game_playing

http://www.ggp.org

http://logic.stanford.edu/ggp/readings/retrospective.html

comment 9y ago · link · parent

The point of the article is that separating the common code into two different pieces is often better than "extending or composing" the shared code. Merging code together is fine if you're willing to separate it again, but lots of devs aren't.

comment 9y ago · link · parent

Earlier discussion: https://news.ycombinator.com/item?id=14884992

comment 9y ago · link · parent

The drawing tool Ronin is an interesting experiment in mixed-mode command/direct interaction: https://www.youtube.com/watch?v=gifzjhyBwOc
1
545556
120