hacker news with inline top comments    .. more ..    7 Dec 2016 News
home   ask   best   7 minutes ago   
1
Yoga: A cross-platform layout engine facebook.com
168 points by emilsjolander  2 hours ago   66 comments top 17
1
yladiz 10 minutes ago 0 replies      
One thing I've thought about recently is Facebook's Patent grants, and it's one thing that makes me uneasy about using any open source technology from Facebook like React (I currently do but am thinking to move to Preact because of the nicer MIT license and that it's analogous to React in many ways) because they're generally given a patent grant. I'm not a lawyer so I don't know if the grant would hold up in court since it's not actually in the license itself, only referenced in the readme but if I had a patent and Facebook infringed on it my license is terminated if I assert my patent rights against Facebook even if it is valid and doesn't pertain to specific React technologies. This has been discussed heavily in the past but suffice it to say it's pretty scary and bears thought.

This library looks very useful for those who use React Native or want a layout engine in C# or Java for their mobile app, but as someone who works in an industry (bio/chem engineering) who develops applications around tools in that industry and thinking that Facebook may one day enter that field, or even if we create a software patent for some idea we create while developing the tools, it makes me uneasy whenever a new Facebook open source project, especially one with the potential to become popular in a specific area of software development, is introduced.

Also, another thing to keep in mind is not every big company does this with their open source tech. For example, Angular and Visual Studio Code are both under MIT license.

2
amelius 17 minutes ago 2 replies      
Okay, question: can it perform the following task elegantly?

Say, I build a declarative tree describing a layout, and I render it. Now I remove one item from the tree. Can the layout engine efficiently remove the item from the view, and... (now it comes) provide an animation for it? As in, the item slowly losing opacity, then the surrounding items moving closer together? (Or a different animation depending on settings).

Of course, the opposite should also be possible (i.e., inserting an item).

Implement this, and we're a step beyond CSS, because so far this has not been possible (elegantly) in CSS. I.e., remove the element from the DOM tree, and it is gone immediately (without the animation). And no amount of CSS can fix this.

3
BinaryIdiot 52 minutes ago 8 replies      
I like the concept and the C# code is just hands down the best example out of all of them (yet another reason I miss coding in C#).

I'm curious though, will this be eventually ported to JavaScript? Yeah yeah I know "flexbox is already on the web!" but if you could write a layout in this fashion versus using style sheets then you could take it and directly apply it to any of your applications (even if you have to convert between languages the exact same setup is still there it's just a straight up conversion).

Overall cool idea and implementation. Curious to see where it goes from here.

4
RubenSandwich 1 hour ago 5 replies      
Yoga's layout API is very similar, if not a direct copy, of the web's Flexbox. Which funny enough means that we might get a chance to use Flexbox on the desktop before we can use it on the web. (I'm looking at you IE and your continuing partial support: http://caniuse.com/flexbox)
5
pcwalton 17 minutes ago 1 reply      
Why not use parallelism? Parallel layout tends to be a major speed boost in our experience, and we have a parallel implementation of flexbox already. See Meyerovich 2010 [1] for the basic idea; you can adopt it to flexbox relatively easily.

Additionally, I'm a bit skeptical about the use of C here: this stuff tends to end up exposed to the user and security-sensitive.

[1]: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.207...

6
adamnemecek 1 hour ago 5 replies      
Why not just embrace Cassowary (https://en.wikipedia.org/wiki/Cassowary_(software)) aka the algorithm behind Cocoa's Auto Layout? Auto Layout isn't perfect but I think that it's fundamentally the API/UI that you are working with, the concepts are definitely at the right level of abstraction. Some sort of DSL could really solve this.

Flexbox could be implemented as a framework on top of this.

7
king_magic 11 minutes ago 1 reply      
Very, very interesting - curious about whether the C# bit supports Xamarin on iOS and Android, or if the C# piece is just Windows-only (not super clear from the documentation).
9
namuol 17 minutes ago 0 replies      
I'd love to see this defined as a formal spec so it might be implemented in JS. Having access to raw layout calculations in React applications would solve the need to peek at the DOM all the time in so many cases.
10
phn 1 hour ago 0 replies      
I'm especially happy to see the C in CSS go away.

Flexbox and the explicit inheritance used in react native makes styling so much nicer.

11
jordanlev 1 hour ago 1 reply      
Curious how using this for a complete page layout "feels" to someone who's familiar with designing websites. Since flexbox is intended for 1-dimensional layout only (as opposed to the old-school display:table or the forthcoming Grid spec, which are intended for 2-dimensional layout), I wonder what they do to make it work well for the full page / screen layout (in terms of ease of coding, not the display algorithm itself).
12
jgalloway___ 28 minutes ago 2 replies      
I like Facebook creating platforms but it is unclear, at least to me, what the problem is they are trying to solve here.
13
shurcooL 19 minutes ago 0 replies      
Is anyone thinking of creating a Go binding for this?
14
omouse 33 minutes ago 0 replies      
I wonder if this competes with Qt or GTK?
15
polskibus 56 minutes ago 1 reply      
Can i use this in react?
16
crudbug 1 hour ago 0 replies      
Great work guys.

I think now we can start on CSS => Compiled Style Sheets. :)

17
sickbeard 1 hour ago 3 replies      
Looks nice but the naming is wrong. We shouldn't expropriate well known names for tech solutions
2
Bluetooth 5 Now Available bluetooth.com
34 points by vadimbaryshev  38 minutes ago   16 comments top 8
1
lasryaric 18 minutes ago 3 replies      
Why is general bluetooth connectivity so "buggy"?Why am I always struggling connecting my iPhone 6s to my bose bluetooth speaker?I would love to understand that.
2
Twirrim 25 minutes ago 1 reply      
Haven't look at the spec yet, but curious if they've improved the security side of communications.

edit: Here's what I'm referring to, bluetooth 4 LE mode is vulnerable to certain attacks: https://lacklustre.net/bluetooth/Ryan_Bluetooth_Low_Energy_U...

https://pomcor.com/2015/06/03/has-bluetooth-become-secure/

3
neals 26 minutes ago 4 replies      
2x the speed.

4x the range.

8x the capacity "to send messages"

Not using the x.x versioning anymore. Just Bluetooth 5 and the next will be 6.

Also, apprently, there's 30.000 companies in the 'Bluetooth Special Interests Group' ?

[Thanks Krasin, gerardnll for correcting me]

4
moron4hire 2 minutes ago 0 replies      
I cannot think of a single way in which Bluetooth has changed my life. Of the Bluetooth devices I have, I do exactly the same things I've always done, just with slightly more annoyance.

My smartphone let me answer emails and burning questions on the go, while also letting me give up my car. My VR headset is making me completely rethink what User Experience means to the point of making the current usage of the term UX just downright laughable.

But that's actually beside the point. I don't actually need Bluetooth to change my life. I need it to get rid of the wires in my life.

And if it worked as advertised, I could do that. But Bluetooth devices... they're just always a tad sucky. And the ways in which they just feel bad is in the secret society handshake of doom you have to do every time you want to use the device because it's 2016 and for some reason my devices still can't reliably pair with multiple other devices.

And then once they are connected, the latency in the communication almost makes them useless. I can't use Bluetooth headphones to play games, which is usually when I want to wear headphones. I can't use Bluetooth in any of my motion tracking wearable hardware prototypes, which is ostensibly the sort of thing Bluetooth wants to cover.

Something that might work for me: decouple the Bluetooth pairing from the host computer. Make it a part of the dongle. Make a dongle that is basically the wireless equivalent of a USB hub, and it's to that that I pair my devices. I'd be happy to bring that dongle with me everywhere I bring my Bluetooth devices. That might actually let me use my Bluetooth mouse on my home PC, on my laptop, and on my work PC.

Finally, would someone please design a decent, full-sized keyboard, with Bluetooth support.

5
kylehotchkiss 7 minutes ago 0 replies      
Is this one still going to change pitches several times in the middle of the song with top of the line hardware?
6
wyager 16 minutes ago 0 replies      
Wow, this press release is horrible. Full of useless business jargon. Ctrl+F "IoT": 9 results. Why do they write these things? The only people who care about bluetooth press releases are tech-literate enough to understand at least mildly useful information about the new standard.
7
moonbug 22 minutes ago 0 replies      
Fifth time lucky, guys.
8
oneplane 6 minutes ago 0 replies      
Does it finally come in different colo(u)rs now?
4
BSD libc contains a buffer overflow vulnerability cert.org
19 points by kumaranvpl  40 minutes ago   3 comments top 2
1
jimktrains2 3 minutes ago 0 replies      
It'll be interesting to know if OpenBSD is affected. They don't seem to have responded yet.
2
neom 20 minutes ago 1 reply      
Unrelated: In responsible disclosure, is it standard to notify the biggest vendor first? I noticed apple was notified on Oct 10th, quite some time prior to the other vendors.
6
Announcing TypeScript 2.1 microsoft.com
290 points by DanRosenwasser  2 hours ago   109 comments top 34
1
timruffles 2 hours ago 3 replies      
If you still haven't given TypeScript a go as a Javascripter, now is a great time to do so.

Whether you end up adopting it or not, it's interesting to get the types out of your mind and into the code. The first time you feel the speed/confidence of refactoring with accurate 'Find usages', you'll decide if the undeniable overhead of types is worth it.

2
Noseshine 59 minutes ago 4 replies      
Question:

Is it possible to have a setup with TypeScript where it is guaranteed that no code changes occur other than removal of the type information?

I started using Flow, found what it can and can't do and would like to try TypeScript. But only if I can have "types-only", I don't want my code "translated" in any way. I'm writing for the latest node.js version and not for x different browsers, I want to use exactly what that version supports and have no code-changing steps.

With Flow I use flow-remove-types (https://github.com/leebyron/flow-remove-types) to remove the types. It leaves spaces where there was type-related code and doesn't touch the code itself.

3
zdragnar 2 hours ago 6 replies      
It's interesting to me that all of the initial reactions I've seen to this announcement have been around the introduction of async and object spread, which are available with babel, but the typescript specific features such as mapped types are completely ignored.

I don't really have any particular meaning behind that observation, only that it tickled my funny bone a little bit.

4
edblarney 30 minutes ago 0 replies      
After trying TS, I basically never want to write JS again.

I know that 'OO' and 'typing' is not the solution to everything ... but aside from all the nice things you can do in TS ... the 'enforced architecture' of OO-ish paradigms, combined with typing, and essential obfuscation of the prototype paradigm ... has cut the time to development in half.

I can hardly think of a reason to use JS now that TS exists.

Of course - there are some reasons, in some specific situations, but by and large, TS is the future.

5
jensvdh 2 hours ago 1 reply      
Typescript is a game changer for any serious project. Never going back to plain JS.
6
edblarney 24 minutes ago 0 replies      
Dear TS authors:

Thank you (!) for your amazing contributions. TS is the best new thing in tech.

That said:

Your linguistic genius is way ahead of the tooling.

I feel as though some of these 'new and cool' 2.1 things are a little bit intellectual, maybe useful in some cases ...

But getting TS to work in the real world, the various build configurations, tool-chains etc. - it's still clumsy.

It was difficult to grasp the difference between AMD and other paradigms. I still have problems with circular dependencies, or rather, things happening before modules are loaded.

Here's one pain point:

Creating a static attribute on a class and initializing it right there, as in:

class A { static b:B = new B();}

Means that 'new B()' will get executed right when that module is loaded, possibly before the module containing B is loaded.

It's ugly, mechanical - but it's not a 'fine point'. I think these are the kinds of issues which are more likely to hold people back, as opposed to the lack of some rather fancy new paradigms such as 'Mapped Types'.

Anyhow, keep up the good work. Lovin't it.

7
msoad 2 hours ago 0 replies      
We are using async await with 2.1 rc and it works flawlessly. I also love the keyof, with that we can remove tons of "any" types from our code base.

Amazing work TypeScript team! This release has been a lot of work!

8
ohstopitu 2 hours ago 0 replies      
I recently started using TS instead of JS and I've been loving it. I find errors much earlier and while the tooling could be a bit better, I honestly find it less exhausting than keeping up with Babel.
9
garysieling 1 hour ago 0 replies      
TypeScript is great. I built https://www.findlectures.com over a year, starting in plain Javascript. Once the codebase was large enough that got stuck I added TypeScript, and it's been great for isolating defects.

It's nice paired with React (vs PropTypes) because the checking happens a lot earlier and is much richer.

10
tjbarbour 2 hours ago 1 reply      
"We spread ourselves thin, but this is the moment youve been awaiting TypeScript 2.1 is here!"
11
n0us 2 hours ago 1 reply      
I have been waiting for object rest and spread for ages. Thank you to the maintainers for working hard on this feature.
12
ng12 2 hours ago 0 replies      
Hurrah for object spreads! Time to go grepping for calls to _.default and _.extend.
13
euroclydon 1 hour ago 3 replies      
One thing I never understood with Babel is which features are shimmed in the output JS and which features are re-implemented?

What I means is: I didn't know how to tell Babel which browsers I was targeting, and I'm pretty sure that some of their feature implementations do not feature test the platform before activating, since they were so compiled in. Is that the case?

Also, do you have to tell TypeScript your target runtime for it to it to use it's ES3 async/await logic vs. it's ES2015 (which uses generators), or does it automatically figure it out?

14
ggregoire 1 hour ago 0 replies      
> Object Rest & Spread

Great news! That will finally fix the syntax errors in VSCode. :)

https://github.com/Microsoft/vscode/issues/1974

https://github.com/Microsoft/vscode/issues/3804

15
smrtinsert 1 hour ago 0 replies      
Incredible release. Was definitely waiting for the spread/rest improvements as well as being curious about the async stuff.

TypeScript continues to be for me the clear winner of the alt.js languages.

16
ihsw 2 hours ago 0 replies      
Async/await support for most browsers and node-0.12+ is definitely a welcome feature, callback hell and tripping over promise chains is definitely one of the most painful experience in TS development IMO.
17
jasonallen 1 hour ago 6 replies      
Feels like Typescript is building (or has built up?) more momentum than Flow.
18
seattle_spring 2 hours ago 3 replies      
Seems like all of the new features have been available in Flow for quite a while now.
19
jtmarmon 47 minutes ago 2 replies      
Can someone comment on the difference in reliability between using typescript and a natively statically typed language like haskell or scala? Is there any? Or is the type safety really as good when you use ts
20
k__ 1 hour ago 1 reply      
Are there any plans to catch something like this:

 function f(x: any): T { return x }

21
yulaow 59 minutes ago 1 reply      
Anyone knows any good resources to learn typescript? The tutorials on the official site are really... bad. Like I would not even call them tutorials.
22
mwcampbell 1 hour ago 2 replies      
Any plans to add C#-like extension methods to TypeScript? Or is there a way to achieve the same thing already? I know that a previous suggestion to add extension methods was closed as out of scope. But maybe it's time to revisit that, since TypeScript is now doing significant code transformations for downlevel await support.
23
hashhar 2 hours ago 0 replies      
Really happy with the development pace. I started using it by contributing to VSCode and was very pleased with the great tooling and sane language and syntactic sugar.
24
aj0strow 1 hour ago 1 reply      
The easier imports solves my biggest issue with migrating an existing project over. I'd say TypeScript is "ready" now.

The last feature I'd want is an easy way to map nested json into classes rather than interfaces. Anyone know how?

25
koolba 2 hours ago 2 replies      
So can I finally banish babel from my build steps?
26
nojvek 2 hours ago 1 reply      
Would be so cool if the js engines ignored types like python3.

Then I could just write Typescript and run it on node/browser

27
crudbug 1 hour ago 1 reply      
Coming from Java land, TS is a life saver for front-end development.

Any plans for .NET Core / CLR backend ?

I think, this will be the silver bullet. TS types should be able to generate statically compiled bytecode => native binary ?

28
netcraft 1 hour ago 0 replies      
another anecdote - ive been using TS2.1 for the last month on three interconnected projects - a rest api, an express app and also for client side code in that express app - it has been a great experience. async/await is a godsend and @types/ makes what used to be a terrible process much more streamlined and easy. If you have to write JS, typescript is the best way ive ever found.
29
polskibus 1 hour ago 1 reply      
Still no VS 2013 support? We're stuck on 1.8 for a while. It would be great if they supported VS 2013 at least until they release 2017.
30
libria 1 hour ago 2 replies      
I like the functionality of

 let merged = { ...foo, ...bar, ...baz };
But I've come to understand ... as variadic parameters in C++, Java and Go. Wish they'd used another token.

31
co_dh 1 hour ago 0 replies      
I feel that the lookup types and mapped types are dependent types, am I right?
32
avitzurel 1 hour ago 1 reply      
I'm getting a 404 on this. Anyone else?
33
haapanen 2 hours ago 0 replies      
Awesome! Been waiting for this for a long time!It's pretty interesting how much code gets generated for just async function() {} :)
34
ausjke 1 hour ago 2 replies      
Been a Linux developer for ages C# was never my taste, I'm still a bit Microsoft-hatred as of now(Visual Studio Code is the only item I adopted for JS development, the rest languages I still use vi/Geany). How tightly TS is related to C#? That has been the main reason I had not tried TS seriously so far. Don't want to have anything to do with C#. I know...
7
A Guide to the Breads of India luckypeach.com
154 points by Petiver  4 hours ago   45 comments top 17
1
sean_patel 1 hour ago 4 replies      
Nice writeup, but calling Dosa, Appam and Iddiappam "Breads" is more than a stretch. None of these 3 have the major ingredients of what makes a bread. And it's missing the most important Indian bread - the Naan (despite the tagline saying "go beyond the Naan").

1) Dosa - Crepe made from fermented lentil & rice paste

2) Appam - Rice pancake

3) Iddiappam - Steamed rice noodles.

None of these are anywhere close to the traditional Bread as we know them.

2
gumby 1 hour ago 2 replies      
The comment about the "North-South/wheat-rice axis" really hit home (though I grew up, outside India, eating both).

In 1984 I was in Sri Lanka as the civil war was gearing up. It was a rather exciting time, and not in the good sense of "exciting. From there I flew up to Delhi to stay with my auntie and uncle. Our entire dinner table conversation the night I arrived was the following:

 Uncle: "You were in Sri Lanka?" Me: "Yes" Uncle: "Sinhalese?" (the Buddhist majority in Sri Lanka) Me: "Yes" Uncle: "Huh. Rice eaters."
(In the realms of exciting: a few weeks later I was in Delhi when the PM was assassinated. That whole summer and fall was crazy).

3
berberous 2 hours ago 2 replies      
I really wish this came with real pictures instead of fanciful illustrations.
4
skbohra123 3 hours ago 1 reply      
Inded, a very detailed descriptions of various types of breads of India. Even being an Indian, I didn't know about many of them.

I would like to add another one in the list, `bajra roti`, which is eaten in state of Rajasthan. It's made by millet flour[0].

[0] http://www.vegrecipesofindia.com/bajra-roti-bajra-bhakri/

5
jessaustin 2 hours ago 5 replies      
Perhaps this would have undermined the overall snootiness of TFA, but it would have been nice to have an entry for naan, even if it was "only" introduced in the 12th century.

I'll admit, though, that the best naan I've had (and I've had a lot...) was at an Afghan place I used to frequent in the basement of Sim Lim Square, rather than at any Indian restaurant.

6
frandroid 1 hour ago 1 reply      
> is really a foreign dish, prepared using refined flour, which came across the Himalayas from central Asia in the twelfth century, along with Muslim settlers.

It would be nice of Indians to stop considering the bread of settlers who came 9 centuries ago as _foreign_...

Edit: The writer seems to be American, but it's an attitude that's pervasive of the Hindu Right anyway...

7
pritianka 1 hour ago 0 replies      
HUGE Bhatoora and Rumali roti fan. I really wish more restaurants in the US served rumali roti. I haven't had much success finding. For those who love bhatooras, I've found that even if it it's not listed on the menu, if you ask for it they have it :-)
8
SippinLean 24 minutes ago 2 replies      
I mostly eat roti/chapatis and puris; are they in this article under a different name?

Is uttapam just an appam variant?

9
whistlerbrk 27 minutes ago 1 reply      
A good paratha stuffed with something like peas dipped into a slightly sweetened yogurt is revelatory.
10
fareesh 1 hour ago 1 reply      
There used to be this Pakistani run diner across the street from the rear entrance of Hotel Pennsylvania on 7th avenue in NYC. Their breads were delicious - better than most that I've eaten here in India. Gave me the impression that our long lost fellow countrymen across the border have an enviable time at the dinner table by comparison. Unfortunately, haven't had the chance to sample the "real thing" in its natural habitat. Maybe someday!
11
geooooooooobox 2 hours ago 0 replies      
Malabar Porotha for the win!!!!!!!!! Fellow hackers, malabar porotha + fried beef -> foodgasm
12
hashhar 2 hours ago 0 replies      
Wow, this managed to teach me a lot about my own country and now I can't wait for my exams to end and get a taste of some of them.

I really like when someone puts in this much of effort in creating content.

13
ohstopitu 2 hours ago 0 replies      
I find it funny that I've tried almost all of them (without giving it another thought) in Dubai when I was growing up, but I've been missing this ever since I moved to Canada.
14
mehulkar 39 minutes ago 0 replies      
Shouldn't naan and generic "roti/chappati" be in the list also?
15
bandrami 2 hours ago 0 replies      
Man I miss a good pav.
16
nojvek 2 hours ago 1 reply      
If you're around Seattle area, small Hindu temples sometimes have a festival event called annakut, usually in oct-nov where they make 100+ Indian dishes. Sometimes a 1000. A good time to explore the variety of different foods.

I'm not religious but I absolutely adore the Indian rituals and festivals.

17
wonks 2 hours ago 0 replies      
Thank God you posted this; my office ordered Indian food today.
8
Major advancements in Deep Learning in 2016 tryolabs.com
178 points by sameoldstories  5 hours ago   40 comments top 12
1
drcode 4 hours ago 5 replies      
The big question with all this stuff to me is whether we've just figured out a couple of new tricks (primarily around neural nets processing 2D data and word sequences for translation) and are now going to hit a new plateau in machine learning- or whether "this time it's different" and we're going to similar improvements year after year for the next decade or more...
2
deepnotderp 4 hours ago 3 replies      
This is literally just "whatever looked cool"...Where is alphago, neural arch search through RL, learning to play in a day, wavenet, and pixelcnn/rnn? That's just off the top of my head....
3
mmastrac 2 hours ago 2 replies      
Has there been any advancement in an "AI executive" lately? ie, a layer that sits above a number of other networks and drives it towards structured goal seeking like reproduction, food, pain avoidance?
4
state_less 21 minutes ago 0 replies      
Wow, amazing!

I like the idea of optimizing for efficiency too. Make the Neural nets scoring function a little more meta, how well did you score and how much energy (operations or neurons) were consumed.

Good for the folks at home with smaller systems and frees up resources for more...what else, neural networks.

5
ifdefdebug 3 hours ago 2 replies      
> "In order to be able to have fluent conversations with machines, several issues need to be solved first: text understanding, question answering and machine translation."

The article makes it sound like "text understanding" was just around the corner, maybe next year...

I doubt that because understanding (arbitrary but meaningful) text requires real intelligence, and AI is far away from that.

And if it really happens one day, then our jobs are all gone. Because programs are text, and with proper training programs are way easier to understand than arbitrary prose - a much smaller subset of concepts contained in a clear structure, instead of almost infinite concepts or even new ones, to be structured however the author sees fit.

So prior to understanding language, AI should be able to understand programming language, because programming language is just a a small subset of language.

6
rough-sea 4 hours ago 1 reply      
No mention of the PixelCNN WaveNet VPN ByteNet line of research?
7
iainmerrick 4 hours ago 0 replies      
Speaking as an interested techie without any direct experience with deep learning techniques, this is a terrific overview. Thanks!
8
turingbook 3 hours ago 0 replies      
There is a similiar post(and several discussions) on Reddit: https://www.reddit.com/r/MachineLearning/comments/5gutxy/d_t...
9
ckcortright 2 hours ago 1 reply      
Interesting how deep learning is evolving. Agreed that adversarial models are a huge advancement; it will be interesting to see how they progress over the next couple of years.
10
swframe 3 hours ago 0 replies      
The CuriousAi TAG and LADDER research looks interesting.They claim same accuracy with much fewer labeled data.
11
treehau5 47 minutes ago 0 replies      
And people complained/are complaining about javascript fatigue / churn... ha!
12
estrabd 1 hour ago 1 reply      
Whoa, those images kind of weirded me out.
9
An Algebra of Graphs ncl.ac.uk
70 points by lambdasquirrel  3 hours ago   23 comments top 5
1
solidangle 52 minutes ago 1 reply      
This is very interesting, but not all that surprising to me. Graphs are closely related to binary relations (on a single set). We can build a binary relation R such that x R y iff there is a directed edge from vertex x to vertex y. It is well known that that the binary relations with the union as the addition, and relational composition (the arrow in the article) as multiplication form an idempotent semiring. If define another unary operation as the reflexive transitive closure of a binary relation (adding a directed edge from a vertex to each reachable vertex) we even form a Kleene algebra, which allows to reason about graphs in terms of regular expressions and regular sets.

Another interesting way to represent directed graphs is using matrices over boolean matrices (also forming an idempotent semiring). Matrices over min, + algebra (also a Kleene algebra) allow us to represent direct graphs with weighted edges and allow us to derive many interesting algorithms, such as the Floyd-Warshall (if we replace the min, + algebra by regular sets we get Kleene's algorithm instead).

2
PaulHoule 1 hour ago 0 replies      
This is a big deal for RDF-based systems because you could merge, intersect, and subtract sets of facts quite efficiently this way.
3
ajamesm 1 hour ago 3 replies      
Leave it to a Haskell coder to make an incomprehensible mess of matrices under addition.
5
JadeNB 39 minutes ago 1 reply      
The decomposition axiom x \to y \to z = (x \to y) + (x \to z) + (y \to z) looks to me so much like it wants to be an axiom about lattices, like distributivity or modularity or something, in disguise; but I don't know much lattice theory. Is my intuition completely wrong, or could an expert give me the right translation?
10
Tracking Down a Python Memory Leak benbernardblog.com
68 points by bbernard  4 hours ago   17 comments top 4
1
mwcampbell 23 minutes ago 0 replies      
The JVM community tends to prefer pure Java implementations of everything, rather than using existing C libraries like Python and Ruby. Some may see this as a bad thing, but it definitely has its benefits. One particularly relevant benefit in the context of this article is that the amount of code that can leak memory, in the conventional sense, is dramatically reduced. I suppose the same thing is happening in the Node.js ecosystem, though I don't recall if Node uses native code to parse XML.
2
guyzero 2 hours ago 3 replies      
"What's possible, though, is accumulating Python objects in memory and keeping strong references to them12. For instance, this happens when we build a cache (for example, a dict) that we never clear. The cache will hold references to every single item and the GC will never be able to destroy them, that is, unless the cache goes out of scope."

Back when I worked with a Java memory profiling tool (JProbe!) we called these "lingerers". Not leaks, but the behaviour was similar.

3
tantalor 3 hours ago 5 replies      
Spoiler alert, the leak is in libxml2, not Python code.
4
module0000 47 minutes ago 1 reply      
tldr; libxml2's C implementation leaked memory, author tracked it down. Kudos to the author for their persistence in digging down to the root of the problem. A lot of people would throw their hands up and decide to recycle the process every <N> seconds rather than analyze it to the depth the author did.
11
Night vision glasses: nanocrystals allow direct vision into infrared smh.com.au
91 points by joshsharp  4 hours ago   18 comments top 8
1
kneel 1 hour ago 2 replies      
These night vision glasses don't exist and the use of the phrase 'allow direct vision' is misleading seeing as they're using high powered lasers to see the blue shift. This lab has only made a nanocrystal that might enable this technology one day.

The fact that everyone in the linked video is wearing funny looking green glasses is misleading, those are just safety glasses.

These types of news blips are depressingly common in developmental science. I can guarantee they're just looking to secure more funding.

2
cthulhuology 2 hours ago 4 replies      
Reading the article it hints at the reality that it doesn't actually work like passive glasses as it implies. the blueshift effect happens because they're using a laser to excite the crystal and it later emits the shifted light, but you have to pump a lot of energy in for that output. Simple conservation of energy implies this won't work for normal night vision applications, instead they want to shine a laser spotlight and use the reflected infrared laser light for vision. cool material science for sure, but not a replacement for nightvision goggles which don't broadcast your position with a bight spotlight.
3
zokier 1 hour ago 0 replies      
I'd point out that night-vision and IR vision can (and even maybe should) be considered distinct, even though admittedly they are widely mixed up in common parlance. But especially in military night vision devices are usually based on the principle of image intensification, i.e. amplifying the light in visible spectrum, instead of IR imaging.
4
jaclaz 1 hour ago 0 replies      
Maybe in 5 years time and IF DARPA will allow it:

>They hope within five years they will have a prototype of their invention that will allow the production of affordable, lightweight night-vision glasses, as simple to wear as a pair of sunnies.

>Professor Neshev said they are discussing their next steps with DARPA, a research and development arm of the US Department of Defence.

5
gentleteblor 2 hours ago 0 replies      
I hope this "trickles down" to medical applications fairly soon. I have awful night vision, and a pair of normal looking night vision glasses would be just the thing.
6
proaralyst 3 hours ago 2 replies      
I wonder what other applications this could support. Better colour displays, where a monochromatic LED is converted to one of R, G and B?
7
deutronium 2 hours ago 0 replies      
This sounds very cool, I'm curious what wavelengths of IR they can convert.
8
dharma1 2 hours ago 0 replies      
This is awesome. Had the same idea when i was about 15, great to see someone making it. I wonder if it will work just for IR or also other parts of the non-visible spectrum
12
Set in Your Ways: Perl 6s Setty and Baggy Types perl6advent.wordpress.com
10 points by kumaranvpl  45 minutes ago   2 comments top
1
throwaway7645 16 minutes ago 1 reply      
I really like all the built-in functionality. As long as the doc is good I can live with the complexity.
13
Pebble's next step getpebble.com
417 points by david-given  5 hours ago   349 comments top 88
1
captainmuon 4 hours ago 14 replies      
I'm quite angry. This sucks so bad. I "ordered" a Time 2 via Kickstarter.

I'm glad they are refunding me, but that makes me think... WTF, did they not produce any Time 2's? Or are they all going to the landfill? How long have they been knowing that they are going to be insolvent? This doesn't happen overnight! Was the last Kickstarter a gamble?

Why does everybody have to aim for total market dominance to be successful? They overreached and now the customers suffer. There should be a place for "small" manufacturer selling a niche product ("small" with a certain understatement like German "Mittelstand" enterprizes - I mean Pebble sold millions of units). If they had to increase the price by 10% to be sustainable, they still would have smashed the Kickstarter.

Sometimes I think there is a secret cabal conspiring so we can't have nice things ;-). The same one that decided that cell phone batteries have to be non-removable, touchscreens glossy, and wearables either mini-smartphones or bluetooth-step-counters.

2
TeMPOraL 3 hours ago 8 replies      
I'm sad/angry/depressed as any Pebbler right now, so I won't repeat those comments. Instead, since this is HN after all, let me ask - what shall we do?

In a year or two, when my current Pebble Time fails, I'd love an equivalent smartwatch to be available. Since the market doesn't seem to want it, how can we make it happen anyway?

Features I'm looking for are, in order of priority:

 - always-on screen, preferably color (like Pebble Time), but monochromatic will do - open SDK for writing software for the watch - battery life at least the one like Pebble's - 5-7 days - *zero* dependency on cloud for it to work - basic, standard suite of sensors onboard - compass/magnetometer/accelerometer, maybe a mike - elegant form factor
Now I can go the DIY route (I have a friend with experience in making smartwatches from ground-up, though I'd look at some SOCs instead of going the uC + separate sensors route - to save on watch size). Many of us here could do it. But honestly, I have shit ton of other stuff to do, and I'd rather pay for such a watch and enjoy the ecosystem, just like I did with Pebbles. And if everyone goes the DIY route, and there won't be some standardization along the way, there will be no community. Any idea how to coordinate and make this happen? Maybe a community, open-hardware design + crowdfunding for production?

3
rtpg 5 hours ago 6 replies      
I am so sad about this. I had told myself that at least I'd get a Time 2 and a Core, and stave myself off before the sadness hits again that Pebble is gone.

Pebble's products were an excellent example of lateral technology. No need for high DPI on your watch, because they made something that looks good with few pixels. Making battery life a priority in a world of WiFi-enabled pressure cookers.

Even when the battery ran out you still got 24 hours of a watch that would at least tell the time!

I have no idea if it is possible to produce something like Pebbles at low quantities, but I would love to see an open design with similar specs. I think these watches are better than anything else out there, and it's sad the design is going to disappear.

4
scblock 1 hour ago 1 reply      
Considering that Pebble is stopping product development, cancelling orders, ending warranties, ending support, and essentially completely shutting down I find the positive tone of this post and the Kickstarter update post to be nearly unbelievable.

I know we see plenty of "our incredible journey" posts filled with optimism, but euphemistic language and dozens of photos of watches and happy people and more watches is jarring.

It's not a shame to try hard at something and fail. But it is a shame to fail and pretend you succeeded. We can see through you.

5
lettergram 4 hours ago 5 replies      
You know, Pebble has garnered one of the best group of loyal customers I know of: well-off techies.

Had they came to the community and said, "hey we are losing sales and we need everyone to pitch in $10 / year for software support (maybe a web interface for fitness or something) I guarantee a few hundred thousand people would have done it.

Had they shared a coupon with the community (i.e. email add campaign, or add on watch - "buy one, get one half off" for christmas they would have probably had a large bump in orders. Although I recognize this would be a mild annoyance, I can also guarantee they would have sold plenty of units.

This simply seems like poor management and it's frustrating because it's the best smart watch I can find at the moment. It does exactly what I want, is cheaper than the competition, and is dead simple to use.

WTF pebble, you had the product people loved - you just didn't market it well.

6
xs 14 minutes ago 0 replies      
I don't consider Pebble to be a startup anymore. I'm not sure why so many comments here use that term. They have found a repeatable, stable, and scalable business model that works and have been successful with it for years. Their watches are sold in Best Buy, Target, Walmart and other retail stores. Once you hit that level of main stream popularity I would say you're no longer a startup.

It was shocking to me to see Kickstarters for Pebble after their initial watch came out. After they had already been for sales in major retail stores. They should have solidified their business model by then and been profitable already. I feel like Kickstarter should be there to get your initial idea launched and if you can't take flight from there, don't do another.

Anyway, huge Pebble fan here, super sad to see them mismanage their assets that resulted in this.

7
LeanderK 42 minutes ago 0 replies      
this blog post is absurd. They are shutting down, not manufacturing/selling stuffy anymore. It's over, the bubble popped, icarus flew too high and crashed.

And yet everybody having fun with their pebbles on the pictures. Also featured: the energetic team, the diverse ecosystem with lots of developers. This is absurd. The only thing missing is the "our incredible journey"-phrase.

The whole blog-post if marketing BS, even the headline is a lie. "Pebble's next step", there is no next step, it's over for pebble! Some might work for fitbit in the future, but pebble is dead. They don't explain why and how, they are just glorifying their past and don't admit any mistakes.

8
mike-cardwell 3 hours ago 1 reply      
Somebody pointed this out to me the other day:

https://github.com/Freeyourgadget/Gadgetbridge

I've not looked into it yet, but it is described as:

"A free and cloudless replacement for your gadget vendors' closed source Android applications. Pebble and Mi Band supported."

The feature list seems substantial. So hopefully we'll be able to continue to use our pebbles for some time.

9
hedora 3 hours ago 3 replies      
Tldr: FitBit acquires() bankrupt pebble, lays of 60% of staff, cancels all pebble product lines. FitBit also cancels the warranties on already sold pebbles. FitBit may also have stiffed some holders of $27m of pebble's debt.

() due to legal shenanigans we must not call this an acquisition or an acqui-hire. Also, FitBit didn't do those things, a shell company created by this deal did, which is totally different somehow.

When things like this happen, I always hope that consumers that got screwed over by the deal (and people that hear about it) avoid the acquiring company after the fact. If they treat pebble customers like this, how will they treat their own customers later?

10
wenbin 1 hour ago 0 replies      
Just read previous posts on https://blog.getpebble.com/ .

Man, you really can't tell whether a startup is doing well or not from outside. Everything's AWESOME all the time:

* Oct 31, 2016: Get Spooky with Halloween Pebble Faces!

* Oct 18, 2016: Whats New in Pebbles 4.2 Firmware and Apps

* Oct 05, 2016: Pebble 2: Fit & Smart

* Sep 30, 2016: Pebble 2 Kickstarter Rewards Start Shipping

* Sep 14, 2016: Pebble Core = More Awesome with Amazon Alexa Expansion in the UK and Germany

... and then suddenly making big headline: "Dec 7, 2016: Pebble's next step".

11
alonsonic 5 hours ago 6 replies      
I can't believe this, just got a Pebble 2 a week ago and now they are literally saying it may not work in the future.

If we rely on their cloud services for activity tracking and app downloads then it will be useless if FitBit doesn't maintain the platform.

I have to say I'm really disappointed and this is a huge blow to people that invest in startups offering hardware. If the company fails forget about the smart stuff you bought, it just won't work anymore.

We should look for ways to minimize the impact on backers. Sadly we'll see more of this in a future in which the products depend a lot on the company cloud services to operate.

12
tedajax 5 hours ago 3 replies      
As someone who quite likes their time steel and who was patiently waiting for their time 2 this is incredibly frustrating. No other watches do what I want so I guess my foray into smart watches is over. It's a shame too because I appreciate the convenience it offers but I probably won't miss it much after a couple of weeks
13
gregmac 5 hours ago 2 replies      
> Pebble devices will continue to work as normal. No immediate changes to the Pebble user experience will happen at this time.> Pebble functionality or service quality may be reduced in the future.

That's very unfortunate. How much of Pebble relies on some online service? Is it still possible to install apps/updates without their infrastructure?

For companies that don't open source their stuff by default, it would be so nice if there was some kind of escrow service where upon dissolution of the company (sale, bankruptcy, etc) the required software to keep their hardware going would be released. I suspect the problem is while it's a win for consumers, not enough would care: the mass market is not going to only buy products that have this escrow service, and at the same time, it's handcuffs for the business, likely complicating a sale or liquidation of the company, and possibly turning investors off.

I hope the Pebble doesn't become a complete wristbrick, but it's always a shame to see perfectly good hardware crippled because there's no longer a piece of software running entirely outside the consumer's control.

14
rahoulb 23 minutes ago 0 replies      
I'm genuinely saddened by this.

My Time Round is the only smart watch I've found that looks like a real watch (THIN) - they seemed to be the only ones that understood all the functionality in the world means nothing if you've got an ugly brick strapped to your wrist.

(And as for a screen that only switches on when you raise your wrist - it's like those people have no idea what a watch is for)

15
pbnjay 5 hours ago 1 reply      
Wow this is even worse than expected from the previous news articles... If they're winding down all support and warranties, PLEASE release as much of the watch operating system code as possible! I know some of the IP was sold, but if Fitbit won't be continuing support please help those of us who love our current watches keep them going!
16
maxerickson 5 hours ago 1 reply      
Ducks not quite in a straight line yet.

From text of announcement:

Pebble is no longer promoting, manufacturing, or selling any devices.

From header of getpebble.com:

Buy Now $99

Also, the store promoting Pebble has no prominent announcement that they aren't promoting Pebble anymore (the one watch I checked did say out of stock, so they aren't selling it at the moment).

17
denzil_correa 4 hours ago 0 replies      
> Pebbles Migicovsky is planning to rejoin startup incubator Y Combinator as a partner advising early-stage companies on hardware development, people with knowledge of the matter said. Y Combinators hardware head recently left, Bloomberg News reported last month.

Pebble CEO seems to be joining YC.

https://www.bloomberg.com/news/articles/2016-12-07/pebble-sa...

18
dijit 5 hours ago 5 replies      
I'd like to know how this happened really. Pebbles were pretty decent and their successful campaigns definitely contributed to the rise of smart watches. But after having two hugely successful crowdfunding campaigns, how did they fail?
19
lgleason 23 minutes ago 0 replies      
The wearables market is trying to find it's sustainable model at the moment and we are at the low point of the hype cycle. Part of the issue has to do with the business model with hardware devices like this. IE: A one time hardware purchase that needs to fund all further software updates etc. and the reliance on continually selling new hardware to stay in business.

Then there was the issue of needing to learn another dev stack to write applications with it vs the Apple or Google offerings that leverage Android and IOS development skills. Right now the largest market in the space is with simple devices such as fitness trackers. The disappointing thing is that Fitbit isn't as open with their bluetooth stack/Gatt profiles, but that's another discussion.

20
takeda 20 minutes ago 0 replies      
I'm starting to think that perhaps kickstart (or another kickstart like service should be created) should only back projects that are open source (source code of software, designs of hardware etc.).

Right now, when people are backing projects it essentially comes down to store like behavior, where you essentially purchasing a product and are not even guaranteed to receive it. If kickstarted products would instead be open, community would own them, and many of them could continue to thrive.

Pebble seems like is a product that would be much more successful if it was open sourced.

21
fudgy73 4 hours ago 1 reply      
I don't usually get upset about this stuff, business is business, but with my outstanding time 2 and core orders, I am definitely feeling bamboozled.

I always thought of pebbles fighting fitbits, the watch for 'us' vs the trackers for everyone. The open platform vs the locked in, the device that got just what you wanted done vs the not-really-a-watch.

It seemed like with pebble health and their relationship with Stanford things were on the up and up. Now ending warranties and such a trying to be nice but not really announcement. I expect nothing from fitbit. This sucks.

22
sandis 5 hours ago 3 replies      
> Warranty support is no longer available for Pebble watches.

That's not very nice.

23
diego_moita 4 hours ago 1 reply      
Pebbler here.

There is an old Italian anarchist poem[0] that sings: "date fiori ai ribelli caduti", "give flowers to the fallen rebels".

Flowers for you, rebels.

[0] https://www.youtube.com/watch?v=_X0Rsf_7f0U

24
IgorPartola 4 hours ago 1 reply      
Would have been better if they had open sourced the OS and the server code. And the designs for that matter. Obviously the IP is worth quite a bit, but since it doesn't look like FitBit will be producing similar hardware, it sucks to essentially lose these designs and it sucks that at any point FitBit can just shutter the services that make the current watches work.

Also, the Core was going to be awesome. Too bad it didn't happen.

26
experimentsin 4 hours ago 1 reply      
I note this from Pebble's developer blog, suggesting that a Fitbit-targeting successor to Pebble's app SDK may be a big part of the plan:

"Although this chapter in Pebbles developer story is closing, our team and ethos have found a new, welcoming home at Fitbit. We cant wait to have you alongside us for this next adventure. Third-party Pebble developers have a massive opportunity to drive how a Fitbit developer ecosystem will take shape. We hope youre as excited about seizing this opportunity as we are.

Over the coming months we will be working closely with our new friends at Fitbit, building the foundation for the next great wearable experiences. We want youour fantastic developer communityto keep playing a crucial role in our success. More information will follow soon, so stay tuned!"

https://developer.pebble.com/blog/2016/12/06/developer-commu...

27
51Cards 4 hours ago 0 replies      
My Pebble Time is brilliant... after an LG G, Moto 360, I settled on my Time being a perfect balance if functionality and usability. I was one of the first Time 2 backers and this really sucks to put it mildly. The Time 2 was going to fix my VERY few issues with the Time. In general they struck the perfect balance in a wearable for me and I was really excited about the future (Time 2, Google Assistant integration, etc). I rarely get truly sad about hardware announcements but this one is really disappointing.
28
ynniv 4 hours ago 1 reply      
I'll trade my refund for a postmortem.
29
europa 5 hours ago 1 reply      
Whenever this kind of things happens. It will make all the more difficult for startups to acquire users because this reiterates "Startups are either going to be acquired and killed or die prematurely".
30
twoquestions 5 hours ago 2 replies      
So it looks like Fitbit acquihired the team from Pebble. Here's hoping Fitbit releases a product like the Pebbles, as it was much more safe and less attention-consuming to check a text message on my watch while driving than bringing out my phone, or asking a passenger to do this.

Are there any other things like it that we can migrate to, or will the world never see their like again?

31
dragonwriter 2 hours ago 1 reply      
"Warranty support is no longer available" -- if items were purchased with a warranty, isn't that straight up breach of contract, for which Pebble (well, Fitbit, which bought Pebble and thus inherits its liabilities) will be liable?
32
mathrawka 3 hours ago 0 replies      
A month before they made this announcement, I ordered a Time Steel. I waited 3 weeks for shipping, and the tracking code they sent me remained in "Waiting for package from shipper" Then one day I got an email from their support saying the package was returned to sender.... sure, they just didn't send it. I requested the order to be cancelled, but was ignored until I said I want the refund or will do a chargeback.

I contacted my friend that worked there and he said he was not surprised, their support team was being disbanded and he and his team received an offer to work elsewhere.

Too bad, Pebble was my favorite smartwatch out there (original one is dead) and now I am stuck watchless because the only decent options are watches that are 1 or 2 years old.

33
pimterry 5 hours ago 1 reply      
This is tragic; I was waiting on a Time 2, but looks like no longer.

What else is around in this niche now? Are there other relatively cheap, simple smart watches with good battery life that I should be looking at instead?

34
sreenadh 3 hours ago 2 replies      
Can one please explain in simple english what actually happened? I did read that fitbit was interested in buying pebble. I assumed it will be like apple buying beats, and pebble will continue as usual.

Is fitbit shutting down pebble as pebble is a superior product over the crappy fitbits?

The core strength of Pebble was its simple OS and energy efficient device. I hope they opensource the OS.

35
aikah 5 hours ago 0 replies      
Still taking orders on kickstarter right now...

https://www.kickstarter.com/projects/597507018/pebble-2-time...

36
nepfvkej 33 minutes ago 0 replies      
Yet again, open-source to the rescue.

Current pebble users should look into Gadgetbridge[1].

Wrist computer enthusiasts trying to avoid future bricks should seek out and support projects like AsteroidOS[2].

[1]https://github.com/Freeyourgadget/Gadgetbridge/

[2]http://asteroidos.org

37
the_qbit 3 hours ago 0 replies      
Right as I jumped on the bandwagon! Hurts.

Hopefully they have some influence over fitbit. I want to be able to make apps and install / test from my OpenBSD box!

38
CodexArcanum 3 hours ago 0 replies      
I've been generally dissatisfied with the smart watch options in general, even more so than cell phones and the Sophie's choices for cell phones is pretty bad!

What factors prevent open source hardware from being viable? Like if the basic parts of the pebble (e-paper screens, small efficient processors, flat batteries, etc) were open hardware so that any number of manufacturers could just churn out the parts; and if there was a FOSS option for an OS to run that hardware; what prevents a vibrant community from forming around those options? We could have artisans putting together various nice watch options, and lots of little apps to run on them. Why don't we have that?

39
dom96 2 hours ago 1 reply      
Many people seem to be calling for the release of Pebble OS source code. Of course that is unlikely to happen. So how about instead we reimplement it under a FOSS license?

Ever since I heard the rumours about this acquisition, I started wondering just how difficult that would be to do. I'm sure there are plenty of you here with experience in these types of things, is this a good idea or a waste of time?

40
pfooti 2 hours ago 2 replies      
Well, this sucks. I really don't want a fitbit - I like the pebble formfactor and legit use it as a notifier. If I wanted a fitness tracker, I'd get a $15 pedometer.

I backed and received a pebble2 to replace my pebble1. (as a Under some circumstances, I'd be fine just ignoring the acquisition and continuing to use my p2. The real problem is when the pebble integrations stop working. If that happens in a few months, I'm not going to be particularly happy.

I get that kickstarter is a gamble, as is buying products from marginal manufacturers. But the pebble really is a product that doesn't seem to exist anywhere else. Can anyone recommend a wearable that:

1) displays full notifications (email, text, etc)

2) handles navigation turn-by-turn directions

3) controls my music stream

4) lasts for a week+ on one charge

5) works on android (or better, is platform agnostic)

41
iamatworknow 5 hours ago 1 reply      
I was a Kickstarter backer in 2012 and still have my original Pebble. There was a weird screen issue and I wanted to try other things, so I switched to the Gear 2 Neo which was absolute garbage. Then I moved on to the Moto 360, which also left me very disappointed when somehow the rear glass (the part that rests on your wrist) shattered.

So I went back to Pebble and got the Time Steel about a year ago and it's been flawless. Worked with my Note 4 and later (currently) with my iPhone 6S Plus. It's a shame that they're not going to be around anymore for the next time I get an itch to try something new. When this watch quits I'll probably just go back to my Citizen.

42
forvelin 5 hours ago 0 replies      
their business strategy was terrible. -though, their developer support was awesome-

I still wear my time steel and will get my time 2 refund, but I am surely frustrated by how they screwed all it up. They did not open source any core bits, left with crappy update which drains batteries and openly admitted quality will get worse by time.

note-for-future : don't get into hype trains.

43
alexholehouse 4 hours ago 2 replies      
One thought:

FitBit's customer service with me has been nothing but exceptional from start to finish, and is the reason I have bought several for family members.

I would hope that FitBit would recognize the loyalty they create based on this quality of service could be magnified by grandfathering Pebble's various services and by maintaining them, while helping Pebble users to transition at their convenience. This would allow Pebble users to continue to have functioning Pebble watches, with the likelihood of sticking with FitBit once the watch does finally break.

44
amirmansour 4 hours ago 1 reply      
If FitBit wants current Pebble users to be their future customers, they should definitely consider not making current Pebble devices useless.

I understand this is not a trivial task, but it looks like FitBit mostly acquired Pebble's software engineers. So it would nice to see a new FitBit flavored OS update for Pebbles. The hardware is there, it just needs the software support. Pebble hardware with FitBit health/fitness services would a be great combo.

45
ohyoutravel 4 hours ago 0 replies      
I had two Basis (original and the newer one) watches and when they had a recall/shut down operations, they did a buy back of them. So I got a check for the original purchase price of each and mailed them into Basis. Now that I have a couple of presumably soon-to-be-useless Pebble watches sitting around, it would be nice if they did the same thing. I nearly ordered a Time 2, but am liking my Garmin Vivoactive HR, so thank goodness I didn't order one.
46
aub3bhat 4 hours ago 0 replies      
Its really sad to see Pebble going under. I really feel for the founders and employees. Unlike other commenters here I dont think there is obvious way this could have been avoided. Certain markets/companies do require a specific scale of investments/growth/market-penetration to be sustainable. Wearables/Smart-watches have proven to be a very difficult market and I pepole behind Pebble should be commended for risk taking.
47
cwisecarver 5 hours ago 0 replies      
I backed the Time 2 and the Core. I was way more excited about the Core. I have a 1st-gen Apple Watch and am perfectly happy with that. I was going to give the Time 2 to my father-in-law for Christmas. It's really disappointing. I'm really looking forward to someone explaining the what and whys of this. Based on Fitbit's stock price over the last year I can't imagine this acquisition will turn out good for either party, the developers going to Fitbit, or the wearable community in general.
48
627467 4 hours ago 0 replies      
I'm still interested in getting a Time Round and/or Time Steel.

I love my Pebble Time, and the best features I use it for do required any cloud support: alarm, watchfaces, music control (to fast rewind/forward when listening to podcasts while on bike), I mostly switch-off notifications, but even those, I believe, won't require cloud support.

49
valine 4 hours ago 0 replies      
Citizen buying pebble would have been so incredibly awesome. This is about the worst possible ending imaginable for pebble. Sad day.
50
gnicholas 3 hours ago 0 replies      
any idea how long before Fitbit can be expected to come out with a product that integrates some of Pebble's goodies? I have been waiting on a Time Steel 2 since June, but I don't want to wait another 12 months for the teams to integrate and a product to be released (and hope the first effort won't be a frankenwatch).

I guess I'll have to look into the Apple Watch againI didn't love it when I first tried it, but that was with the old OS and slow processor. Hope Fitbit can get something out the door before my Time Steel kicks the bucket!

51
Leszek 5 hours ago 1 reply      
Very disappointing for this backer that the Time 2 will never come out. It makes you wonder where the kickstarter money went.
52
kolemcrae 3 hours ago 0 replies      
I got royally screwed. Yesterday my 4 month old Pebble Time Round burned my wrist and killed itself, today they announce they no loner honour the warranty.
53
headgasket 3 hours ago 2 replies      
I also blame Apple. When you are a 1T$ company, I think it's a social responsibility to not be ruthless in your pricing with small innovating competitors running on the midnight oil. It's a page out of MS playbook. I feel like a traitor for owning an apple watch. But at this rate, with their ipadification (dropped all ports off the mbp) and product lineup explosion, Apple is going where it was in the 90s anyway...
54
cableshaft 4 hours ago 1 reply      
I have a Pebble 2. I charged it last night. I have the Pebble Android app and I can't seem to get the two connected today. Is that because of this? Is there something on the backend that's required for notifications/sending already downloaded stuff from the app? I figured it did it all via the app on the client side, except the store.

If I can't even connect anymore, that's pretty screwed up, and I'm angry. If it just worked as it had before, just without the Pebble store or something, I can live with that.

Please just be some minor glitch. I'm very happy with the device as it was yesterday.

Anyone else having this problem?

55
jtruk 5 hours ago 0 replies      
> Active Pebble watches will work normally for now. Functionality or service quality may be reduced down the road. We dont expect to release regular software updates or new Pebble features.

I hope they open source Pebble OS, maybe even the assets that drive the Pebble store.

56
linsomniac 3 hours ago 0 replies      
Love the Pebble, so sad to see it go. I had one of the originals, and now have a Time Steel I love. Feel a little bit like they shot themselves in the foot because I'd have been willing to pay $200 for the watch, but there were tons of refurb ones for under $100 available, so that's the one my Fiance got me. I tried one of the Android watches, but hated it. The Pebble was soooo much better.
57
toxican 4 hours ago 0 replies      
I'm devastated. I remember being so excited when the first kickstarter happened, but I was broke and couldn't buy one. Then finally after years of waiting and following them with interest, my wife bought me a Pebble Time for our anniversary. That was 2 months ago and now the future of this amazing device on my arm is completely up in the air. And what is the alternative? Some over-priced, under-featured piece of garbage fitbit? No thanks.
58
dkroy 4 hours ago 0 replies      
Is there an alternative out there right now with comparable battery life and features? It looks like I won't be receiving my next pebble so I am looking for something similar.
59
deegles 1 hour ago 1 reply      
Did Pebble employees have stock options? Is there any money left for them?
60
JustSomeNobody 2 hours ago 0 replies      
I wanted that Pebble core. This is sad.

I sincerely hope all the Pebble employees are able to transition to other jobs with minimal impact to their lives. Good luck in your future endeavors!

61
headgasket 3 hours ago 0 replies      
This is so sad. I had the new time2 with the core on kickstarter. This would have been a truly innovative product, why oh why? I see on crunchbase they had only raised 15M-- so theres G$ available for a nth round of evernote or dropbox and not a few M$ to help these guys see it to market? This is a terrible day for innovation.
62
afrancis 4 hours ago 0 replies      
Love my Pebble. Has almost everything I wanted in a watch. Found it a pity that on the marketing front, Pebble never seemed to get top of mind (or anything near there). My current's watch's display is starting to shred. Debating buying a second watch while they are still available. Downloaded the SDK and will grab the tutorials. Hopefully Fitbit will keep this information around.
63
jotjotzzz8 4 hours ago 3 replies      
I'm curious why they didn't take the Citizen offer for $700+ million. And then that Intel offer, which is now a better deal than what Fitbit offered. There must be more to the story. I feel that the CEO bears the blame for letting this company down, could it be hubris? Can't wait to read more when this story comes out.
64
iblaine 2 hours ago 0 replies      
I'm not sure how to react to this news. I have 3 pebble watches and 2 of them are broken. If fitbit can fix the pebble quality problem then I may buy more.
65
trapperkeeper79 4 hours ago 1 reply      
The iFixit was very interesting. It has a freakin FPGA?? A comment said it was there to drive the e-ink display, while the MCU slept. Any confirmation on that? Also, what the heck was the smart strap supposed to be?

This is sad because I was just about to get a Pebble (had tried beefier watches but felt battery life was too limited).

66
merpnderp 3 hours ago 0 replies      
I'm sad I'm not getting my Time 2, but that is really awesome of them to refund my money from their Spring Kickstarter. They didn't have to do that, which is much appreciated.
67
jscheel 4 hours ago 0 replies      
So, basically, there will be no way to load watchfaces or apps when their servers go down, and a lot of other things will also stop working. I've been a big advocate of Pebble for a long time. This is a great middle finger to all of us that have been with them from the beginning.
68
digi_owl 4 hours ago 0 replies      
I can't help but wonder if the whole timeline thing overcomplicated the pebble platform. I for one lost a bit of interest in the whole thing once i learned they where heading in that direction with future products.
69
dudisbrie 3 hours ago 0 replies      
What a great story from Kickstarter's most valuable player to a debt monster that make every of its loyal customer angry
70
kingosticks 5 hours ago 1 reply      
That's a real shame. The search for a small Spotify-enabled device continues.
71
reustle 4 hours ago 1 reply      
For those curious, you can still buy the Pebble 2 online via BestBuy, Walmart, Amazon, etc.

Did the Pebble Time 2 ever get completed? Did anyone receive one? I was really looking forward to it...

72
ecesena 3 hours ago 0 replies      
tl;dr: hardware won't be produced anymore (currently working hw will still work).

Software will work on fitbit. Details here: https://developer.pebble.com/blog/2016/12/06/developer-commu...

73
mattmaroon 4 hours ago 0 replies      
I know how heartbreaking that must be for the founders, but at least they're going out the classy way. I'm sure we'll hear from them again.
74
bryanlarsen 5 hours ago 1 reply      
Is there any way to get a Pebble 2 instead of a refund on my Time 2 pledge?
75
yalogin 4 hours ago 0 replies      
I was looking at Pebble before but this shuts that down.

Coincidentally I noticed that the market for luxury watches has heated up ever since Apple Watch was released.

76
joshstrange 4 hours ago 0 replies      
I have a first gen Apple Watch after having the Pebble Steel and I was very much considering going back to Pebble, this is very sad news.
77
tokenizerrr 4 hours ago 0 replies      
I actually had a Peddle around my wrist a few months ago, decided I didn't like it and sent it back. Really glad I did.
78
DiabloD3 5 hours ago 3 replies      
But I thought Fitbit was exiting the wearable market?
79
djhworld 4 hours ago 2 replies      
I've had my Pebble Time (1) for about 18 months now, sad to hear this.

No other smartwatch can boast 4-5 day battery life.

80
lucaspottersky 4 hours ago 0 replies      
wow.

this sounds like "yeah, f*ck ya'all up, we are leaving this boat".

i guess that's what you get from "small startups".

81
tezza 4 hours ago 0 replies      
So do the existing hardware watches become collectors items or second draw fillers ?
82
distantsounds 3 hours ago 0 replies      
"66,673 backers pledged $12,779,843 to help bring this project to life."

Welp.

83
sickbeard 4 hours ago 2 replies      
What's the point of warranties and cloud services if you can just be like "oops, goodbye"? Can they be sued for this?
84
rdl 4 hours ago 1 reply      
This is the most orderly shutdown of a hardware+services company I've seen. Congrats to Team Pebble for that.

It has to suck to end this way after 8 years. :(

I hope someone builds a product like Pebble Core; I'm not sure how generally viable that is, but I'd love to have it myself.

85
gerryk 4 hours ago 0 replies      
Sad to see the failure of a truly alternative product.
86
m4tthumphrey 5 hours ago 0 replies      
Wow that didn't take long.
87
k2xl 5 hours ago 1 reply      
I guess their latest Pebble version didn't get the sales they expected.

Definitely surprising that they weren't able to sell the company - they had the brand and a loyal customer base. As an owner of a Pebble Time, I was impressed by the integrations, simplicity of design, and battery life.

I wonder went wrong - hopefully, there will be some type of post-mortem on these "various factors" over the next few weeks.

88
pwelch 5 hours ago 0 replies      
This is sad to hear. It was a really cool product.
14
DoomRL Open Source Release github.com
105 points by mariuz  6 hours ago   36 comments top 5
2
wyldfire 5 hours ago 2 replies      
It's an extra click to get to a video/screenshots [1].

I remember playing turn based RPGs and really enjoyed them. It was really hard for me to adjust to the frenetic pace of RTS when they arrived.

This video looks a bit faster paced than the turn-based games that I recall, but it's been a long time.

[1] https://www.kickstarter.com/projects/2020043306/jupiter-hell...

3
jam 2 hours ago 0 replies      
I was sure from the title that this was a reinforcement learning agent set up to train itself to play Doom...
4
module0000 5 hours ago 0 replies      
DoomRL scratches the space marine variety of my crawl itch(crawl as in Dungeon Crawl Stone Soup: https://crawl.develz.org )
5
andrewclunn 4 hours ago 2 replies      
As somebody who had to code in Pascal (in this millennia) I just... I'm not sure I can get passed that to enjoy the game. I think this is the moment where I realize that I'm a coding language bigot.
15
Show HN: Poets Know It A literature network for poets to share and collaborate poetsknowit.com
7 points by jaydubb1234  43 minutes ago   7 comments top 5
1
wf 10 minutes ago 0 replies      
The signup page has a steep price to pay. Maybe just setup the login and then ask for profile information once users are in?

Asking for a specific date of when someone started writing is a little daunting. Maybe just have a year? Not sure what the information is for.

Also the terms of service I'm agreeing to leads to a 404 ;)

I've recently gotten in to writing some poetry so I'm super interested in this project! I hope you guys can really get this to kick off.

edit: I would add, you need a real landing page. Something that has examples of features or results of collaboration. This is pretty similar although a microcosm of HitRecord, so maybe check that out for some inspiration.

2
mgkimsal 13 minutes ago 0 replies      
No way to see anything without logging in? I'm being forced to a login/register page only.
3
lisardo 17 minutes ago 0 replies      
Sign up with 100 fields before seeing any content?
4
jaydubb1234 42 minutes ago 2 replies      
Happy to answer your questions, if anyone is curious about this project.

Feedback is wanted as well, thanks guys.

5
lexap 16 minutes ago 0 replies      
What is it?
16
A Short Introduction to the Lambda Calculus (2004) [pdf] bham.ac.uk
98 points by kumaranvpl  6 hours ago   11 comments top 4
1
astrobase_go 3 hours ago 0 replies      
While the linked explanation makes obvious parallels between the lambda calculus and other programming languages, I think Rojas is even yet more accessible:

http://www.inf.fu-berlin.de/lehre/WS03/alpi/lambda.pdf

2
arethuza 3 hours ago 2 replies      
I had to vote this up as it referenced a work by Greg Michaelson who did a splendid job of teaching me about lambda calculus back in the 1980s and who really got my attention when he explained about S and K combinators.

Another excellent work from that same time is The Implementation of Functional Programming Languages by Simon Peyton Jones which is available online for free:

http://research.microsoft.com/en-us/um/people/simonpj/papers...

[Edit: I know this is an old work - but I'm very fond of it!]

3
monkpit 2 hours ago 2 replies      
Are there answers to the exercises? I'm kind of stuck on 3b in section 8. Should I evaluate from right to left - normalize 'y' lambda given a y-value of 5?

Then, in that case, there is only one argument (const 10) to pass to the 'fx' lambda and I guess you end up with a partial or something?

Or should the 'y' lambda and the constant 5 be considered the 2 parameters passed to the 'fx' lambda? In which case I guess the answer comes to be const 20?

4
0xdeadbeefbabe 2 hours ago 2 replies      
Why is it a calculus and not an algebra?

Relational algebra is an algebra for example.

18
Vladimir Nabokov and Edmund Wilsons Epic Literary Feud publishersweekly.com
28 points by samclemens  3 hours ago   3 comments top 3
1
dri_ft 1 hour ago 0 replies      
Weird. I read the New York Review of Books articles about Eugene Onegin last week, because I'm reading it (in a different translation) at the moment.

Douglas Hofstadter spends a chapter in Le Ton Beau De Marot, his book about translation, talking about and comparing various translations of Eugene Onegin, and he covers the Wilson/Nabokov feud described here. He is deeply antithetical to Nabokov's approach to translating it (I have to agree) and says that he finds some of Nabokov's remarks about Wilson unspeakably cruel.

He also says that his favourite translation is James Falen's; I can't comment on how it compares to the others, not having looked at them, but I can confirm that it seems excellent.

2
icantdrive55 4 minutes ago 0 replies      
I never appreciated Literature in college. I took the courses, and faked my way through the course work. Yea--I read the books, but most were just dry, and hard to read; for myself.

Years later, I read Lolita. There was a part of me that almost put it down. I read it because I wondered what all the fuss was about. From the first page, it might be the best written book I have ever read.

3
yolesaber 1 hour ago 0 replies      
Ugh, the way this writer talks about women is pretty gross. I know its a piece about two of the most macho types in midcentury literature, but must they really refer to women as "conquests"?
19
Show HN: React-Most Declarative Monadic Reactive State Container for React github.com
22 points by oyanglulu  2 hours ago   5 comments top 3
1
griffinmichl 1 hour ago 0 replies      
Really awesome little library. Nice work. I'm always excited to see different approaches for making react 'reactive'.
2
imjared 35 minutes ago 0 replies      
Looks neat and absolutely love the diagrams. Thanks for your work.
3
polskibus 53 minutes ago 1 reply      
Can anyone explain what value does 'monadic' give to react?
20
Precision Oncology: Epigenetic Patterns Predict Glioblastoma Outcomes nih.gov
34 points by sciadvance  4 hours ago   4 comments top 2
1
kensai 2 hours ago 1 reply      
Just a reminder: the guidelines for gliomas (brain tumors) have been updated after almost 10 years. And the outcome is more than ever decided at a molecular level. I am pretty sure this kind of information will be included in the next version.
2
gmarx 2 hours ago 1 reply      
Makes sense. An interesting question is what causes the epigenetic modifications that drive the tumor forward. Do the driver mutations also cause these modification? Is it random and these cells are selected for?
21
Show HN: React-svg-pan-zoom A component that adds pan and zoom to SVG github.com
32 points by chrvadala  3 hours ago   6 comments top 3
1
brian_c 1 hour ago 0 replies      
Nice! I worked out a little proof of concept a while back for a pan-and-zoom wrapper around any ol' HTML, if that's of any interest: https://github.com/brian-c/react-zoomableI haven't tried it with SVG, but I imagine it'd work fine.
2
chrvadala 3 hours ago 2 replies      
Hi, I'm the developer of this React component. I started this work after I realised that there wasn't any SVG pan zoom component fully written with React. I hope that it will be useful for the community.
3
ceejay 1 hour ago 1 reply      
This looks really cool. Can't wait to try it.
22
How Doctors Die (2011) zocalopublicsquare.org
83 points by known  6 hours ago   29 comments top 12
1
jrumbut 54 minutes ago 0 replies      
This has been a pretty controversial article, because the evidence supporting the author's claims is not terribly good. One of his key studies relied on people who volunteered, while in med school, to participate in a study that would continue as they aged and died. It's not hard to imagine this group was more comfortable thinking about mortality than most doctors.

Certainly more doctors than members of the general public have things like living wills that simplify end of life care than the average person, however more people who make as much money and have as much education as doctors also have living wills more often than the general public. I haven't been able to find numbers for doctors compared to, say, lawyers or professors.

There does seem to be a subculture among doctors who are looking into how to die well, and may be better at it and act on their beliefs with greater confidence and urgency than those who don't encounter death as often, but it seems like many, if not most, doctors cling to life and try to delay the inevitable like the rest of us.

For some additional data, see here:https://www.sciencebasedmedicine.org/doctors-and-dying/

2
MrFoof 3 hours ago 2 replies      
>Some medical personnel wear medallions stamped NO CODE to tell physicians not to perform CPR on them. I have even seen it as a tattoo.

I've had many doctors indicate to me that if they find this on someone coming into the ICU, most hospitals will still attempt to resuscitate.

It's a "damned if you do, damned if you don't" situation. If you don't attempt to resuscitate, the patient's family may sue for letting them die and not attempting resuscitation. Granted, if you do resuscitate, you may be sued by the patient. Most hospitals feel there is far lower risk if they resuscitate, so "NO CODE" or "DNR" tattooed on your chest will likely be ignored.

3
woliveirajr 3 hours ago 0 replies      
>When doctors ask if they want everything done, they answer yes. Then the nightmare begins.> But doctors still dont over-treat themselves.

This is an interesting article. The main point is that nobody, in general, is prepared to be in a almost-dead situation, and when this event comes, the patient nor family is prepared to answer "ok, I prefer more life quality than trying all possible treatments". Because the implicit answer is that when you give up all alternatives, you are saying "I prefer to live few months and die".

Not that choosing all treatments might be different. But it's a possibility, it's a try, and it's not "giving up".

Doctors, on the other hand, deal and see all the side effects of the treatment. They know what will cost (in quality, not only money). And if the end will come anyway...

4
klenwell 3 hours ago 1 reply      
This Radiolab story (2013) covers the same theme:

http://www.radiolab.org/story/262588-bitter-end/

It notes the discrepancy between doctors' preferences and the general public's and points to the role television medical dramas play in explaining it.

I've always been in the "If I'm too ill to enjoy life, please let me go" camp. Still, this was one of those pieces that significantly tilted how I look at an issue.

5
phn 1 hour ago 0 replies      
I guess it's only natural. I don't expect non-technical people to make the same technical choices I do, nor can I recommend them to the general population.

I suspect that it's the same with doctors, but their field happens to be the workings of disease and their treatments.

6
gcb0 3 hours ago 0 replies      
the irony is that most surgery advances that ends up saving a life 100% of the time with good quality of life, only get discovered because of thousands of people demanding the 5% with bad quality of life if it even succeds.

and surgeons love to practice the difficult cases because, as the article mentions, that's how they make a name for themselves.

7
neaden 4 hours ago 1 reply      
A living will (and a regular will too off course) is a blessing for your family as well. Make your end of life care decisions now so your loved ones don't have the burden of deciding them for you in case you are unable to make these decisions. And talk to your family as well so they know your wishes, even if you are young you never know what tomorrow will bring.
8
paulddraper 1 hour ago 0 replies      
I imagine the letters to the left are important, but I guess I won't know for sure, because of social media.
9
dhimes 57 minutes ago 0 replies      
Whaaaaaat is going on here? This article is from the Atlantic.

Edit: Saturday Evening Post

http://www.saturdayeveningpost.com/2013/03/06/in-the-magazin...

10
hprotagonist 2 hours ago 0 replies      
The 2014 Reith Lecture, given by Atul Gawande, addresses these issues in great depth. Well worth a listen.

http://www.bbc.co.uk/programmes/b04bsgqn

11
acqq 1 hour ago 0 replies      
Also worth checking the "past" link, there are a few hundreds of comments already.

https://hn.algolia.com/?query=How%20Doctors%20Die&sort=byDat...

12
swiley 4 hours ago 1 reply      
The format of this page actually makes it very difficult to do anything but skim because the social media buttons on the lft cover up the ~ the first word of every line.
23
How the Circle Line rogue train was caught with data data.gov.sg
5 points by Hooke  1 hour ago   1 comment top
24
Liberouter Combo Cards FPGA boards focused on network data processing liberouter.org
61 points by kerdop  5 hours ago   31 comments top 6
1
airesQ 4 hours ago 1 reply      
There was an article at Ars [1] that explained how Microsoft uses FPGA powered network cards at Azure.

The idea is to move "network decision making" (load balancing; maybe firewalls and other assorted stuff) from the CPU to the FPGA, where this kind of thing can be done faster, and more reliably (e.g. you can have hard timing constraints on a FPGA).

Guess the other players in this field are pure software switches, which can be very flexible, but sometimes slow. And ASICs, which are very fast (potentially faster than FPGAs) but not as flexible.

[1] - http://arstechnica.co.uk/information-technology/2016/09/micr...

2
trapperkeeper79 4 hours ago 6 replies      
I saw the page via wayback machine since the site was down at the time. Seems like a cool academic project. I've been getting into FPGAs personally, with this exact application in mind.

I've been really stymied by how to process packets in hardware. The obvious approach seems to be to run an RTOS or even full-fledged linux if your FPGA has hard IP cores on it. But is there a better way? How much performance would one lose? I'm also a bit confused about how to communicate on PCI-Express (I'm a software guy ... so learning about DMA). I have seen soft IP for TCP/IP stacks but it seems too crazy. I'm doing this as a hobby education project btw. It has been great fun so far! Wish there were meetups on this topic.

3
theocean154 4 hours ago 0 replies      
Working on a pcie card, not 100gbps but hopefully not $10k also: https://github.com/theocean154/fpga-board
4
tyingq 2 hours ago 0 replies      
I wondered if an FPGA approach would be worth it now that Intel has their DPDK approach.

Searched a bit, and found a terrific comparison of doing the same work three different ways. It compares serving up a Key/Value store using traditional software, then DPDK, then an FPGA based approach: http://www.hoti.org/hoti23/slides/lockwood.pdf

Skip to slide 22 if you're impatient.

5
delinhabit 5 hours ago 2 replies      
I can't open the site on my Android phone due to an SSL error. Is it just me, or there is a problem with the certificate?
6
xenophonf 5 hours ago 1 reply      
Looks like we hugged them to death. Here's the Wayback Machine's most recently cached copy of the page:

http://web.archive.org/web/20160604121207/https://www.libero...

25
Saving Data: Reducing the Size of App Updates by 65% android-developers.blogspot.com
285 points by jor-el  13 hours ago   123 comments top 26
1
cperciva 12 hours ago 6 replies      
It's a bit humbling to think that my "quick hack" is yielding bandwidth savings measured in petabytes per day.
2
i336_ 10 hours ago 2 replies      
I'm reminded of Courgette: https://www.chromium.org/developers/design-documents/softwar...

It's used to deliver unbelievably small Chromium OS updates.

To quote the link above:

 Full update: 10,385,920 bsdiff update: 704,512 Courgette update: 78,848
The reason it's not being used here is because Courgette's disassembler/symbol resolver only works on x86/x86_64/ARM assembly language.

But it got me thinking - how much bulk does binary code take up in an Android APK? If it's noteworthy, a JVM disassembler could produce really interesting results.

If it's mostly images and sounds then things are pretty much as optimized as they already are. (I have no idea myself.)

3
kolistivra 8 hours ago 1 reply      
Disclaimer: I used to work at Google exactly on this project.

I'm so happy this finally made it to daylight! =) I was the original one researching for the feasibility of this, but at the time (3.5 years ago), the re-compression burden made it a no-go even for the most modern phones so we decided to table it.

4
pja 8 hours ago 0 replies      
Instead of faffing about re-compressing all the App data in order to compare signatures, wouldnt it would be simpler to store two signatures alongside each App in the first place: one for the compressed version & one for the uncompressed one?

Then computing the signature after using the compressed diffs to upgrade an existing App in place would just require walking over the upgraded files & comparing the hash to the previously computed one. No CPU intensive re-compression required.

(Clearly youd have to sign the diffs in some way to prevent bad actors injecting data into the system, but thats a separate problem to the 'does this data match what the App developer sent us in the first place' question which Google is currently solving by re-compressing everything at great CPU expense.)

5
r1ch 6 hours ago 1 reply      
I really wish Google would let us download pre-compiled native blobs on fast WiFi connections. Downloading is by far the fastest part of app installation / update for me, the time spent recompiling the bytecode can measure in the minutes for some apps.

Even worse is the forced-recompilation of every single app for the tiniest system patches, which can take upwards of an hour.

6
pjc50 10 hours ago 1 reply      
Now if someone could figure out how to reduce the size of installed apps. And preferably explain why most Android apps seem to be about 60MB even for trivial things.
7
mirekrusin 7 hours ago 1 reply      
This kind of problems could be made public.

Small or big company, government or organisation could define problem, give test input, expected output and performance points (delta size, cpu usage etc); submissions open for all.

Similar to programming competitions but instead of made-up problems, there is a real world problem to be solved.

This could be good for everybody - companies, because they'd get (I hope) the best solutions (there could be some price for top solutions, but still fraction of in-house r&d cost), for people, because they could be hired or at least would have a chance to test their skills on real problems; it could be used as part of hiring process to skip early nonsense etc.

The biggest win, IMHO, would be to have government organisations getting involved in this kind of "Open R&D" - open for contributions and also open for new, not yet articulated ideas.

8
legulere 11 hours ago 4 replies      
So they are recompressing the files after applying the patches and hope that it's the same? Wouldn't it make more sense to work on having the signature work on uncompressed files?

Also it's kind of shocking that almost everyone is using deflate in with compression level 6 or 9. Why is 6 even used? Why does almost nobody use zopfli which achieves 38% higher compression rates. Why aren't other compression formats supported like lzma, brotli, etc.?

9
adrianN 9 hours ago 1 reply      
Slightly offtopic: What algorithm does git use for binary diffs in packfiles? Is it bsdiff, or the improved algorithm form Colin's thesis, or something else?
10
blaze33 10 hours ago 0 replies      
11
_delirium 8 hours ago 1 reply      
> Disclaimer: if you see different patch sizes when you press "update" manually, that is because we are not currently using File-by-file for interactive updates, only those done in the background.

Out of curiosity, does anybody know why that would be the case? I had assumed automatic app updates used exactly the same code paths / APIs as manually pressing "update" in the Google Play app did, just triggered automatically. But it sounds like they actually go via a different route?

12
amluto 4 hours ago 1 reply      
Why recompress at all?

Rather than using .zip, an improved APK format could be more like a tarball. You'd tar up the files, sign it, and compress the result.

To verify, you decompress (streamily, without saving the result anywhere) in a tight sandbox and verify the signature on the output. Then you decompress again to install. Call it APK v3.

This adds a second pass at decompression, but decompression is generally quite fast. In exchange, you avoid a much slower recompression step.

13
rohan1024 4 hours ago 0 replies      
I actually did exactly the same thing over a year ago. I needed to download Cynogen nightlies quite frequently which was not feasible at that time as I was on limited data. So I used to download the nigthly on my digitalocean droplet and calculate patch over their. Patch sizes were just around 12MBs. I would then download the patch file and patch the old nightly on my local system. Voila! phone upgraded by downloading just 12MBs! I did thought why Google can't do the same thing with Android applications.:)
14
krzrak 10 hours ago 1 reply      
On a side note: I "love" when I have to download 100+ MB update of the mobile app with only changelog description: "minor fixes".
15
jfroma 5 hours ago 0 replies      
Even before bsdiff and this new file-by-file patching mechanism I find Android updates much faster than iOS. I don't know if iOS updates are just bigger becuase application are bigger, or is just that apple has a worst CDN (I live in Argentina).
16
voidlogic 2 hours ago 0 replies      
TL:DR? Compress diffs, don't diff compressed things?
17
SnaKeZ 12 hours ago 4 replies      
Enabled only for automatic updates because it's CPU intensive.
18
esturk 11 hours ago 1 reply      
This is great for games like Hearthstone that currently requires a re-download of the whole app which takes 2 GB whenever there's an update.
19
hawski 7 hours ago 0 replies      
Could rsync algorithm be used to prepare binary diffs? How would it compare to bsdiff?

EDIT:

Thanks for the downvote.

There is a tool using rsync algorithm for binary diffs. It's called rdiff [1]. I found Master's thesis Binary Differencing for Media Files by Vladimir Komsiyski [2]. What I take from there is that rdiff is fast, but bsdiff produces smaller patches.

Excerpts:

> bsdiff is marginally better than xdelta as far as compression is concerned. rdiff and especiallyedelta generate much larger patches. The upload gains from the viewpoints of the server areexactly the same as the compression rates and the saved disk space is proportional to it. Forexample, an expected number of versions per file of 3.7 (which is the case in Dataset A) anddifferencing with xdelta result in 70% less required disk space.

> As expected, bsdiff s slow differencing time results in 3 times slower upload from the viewpointof the client when compared to the servers experienced time. Apart from that, the addedtime due to the differencing is smaller compared to the transfer of the produced patch and leadto up to 21 times faster transfer than when no differencing is done. Even the worst performingtool edelta reaches a speed-up with a factor of 3. xdelta, showing the best results out of thefour tools, achieves a 21x speedup when transferring a file to the server. The second best tool,bsdiff , is only 9 times faster. However, its coefficient may dramatically increase with increasingthe file size (Adobe Photoshop files) because of the non-linear runtime of this tool. edelta isseverely outperformed by all other tools. The fastest tool rdiff loses its lead due to the biggerpatches it produces.

> For Adobe Documents (and most likely other image editing software files) the binary differencingtool xdelta shows the best run-time for the compression it achieves. rdiff is faster,but its patches are bigger. bsdiff shows better compression, but its non-linear runtime makes itunusable for files of this size. The benefits of xdelta are considerable - decrease of the file sizewith more than 96% for Adobe InDesign files, causing up to 30 times faster file transfer. AdobePhotoshop documents also show substantial gain despite their much larger size.

[1] https://en.wikipedia.org/wiki/Rsync#Variationshttps://linux.die.net/man/1/rdiff

[2] http://scriptiesonline.uba.uva.nl/document/490827

20
lultimouomo 8 hours ago 0 replies      
I wonder how this deals with renamed files.

If it doesn't, one should avoid renames of bigs assets when working on updates of an already released app.

21
samsk 7 hours ago 2 replies      
The question, why took this so long ?8 years for figuring out how to make differential updates...
22
franciscop 11 hours ago 2 replies      
Is this basically something like git? Isn't it crazy that something like this hasn't been implemented until today?
23
mkj 7 hours ago 1 reply      
Nice work there but who really talks like this?

"in order to provide users with great content, improve security, and enhance the overall user experience"

24
ekux44 8 hours ago 1 reply      
The author of this post now works at Amazon!

https://www.linkedin.com/in/andrewhayden

25
Aaargh20318 11 hours ago 0 replies      
If only they spent this much effort in getting Android OS updates to consumers.
26
aembleton 9 hours ago 2 replies      
How does this differ to the delta updates that came out over four years ago?

http://www.androidpolice.com/2012/08/16/google-flips-the-swi...

26
Whats New In Python 3.6 python.org
185 points by orf  4 hours ago   82 comments top 17
1
fermigier 1 hour ago 1 reply      
First of all, congratulation and a huge thank you to the core python development team.

I know some of them have expressed frustration (or more negative feelings) at the way some people have been reacting to their work. As the Python ecosystem is progressively moving to Python 3 (according to some stats, the tipping point should be reached in a few months), I hope that this trend of excellent Python 3 releases will continue.

2
devy 4 hours ago 0 replies      

 Note Prerelease users should be aware that this document is currently in draft form. It will be updated substantially as Python 3.6 moves towards release, so its worth checking back even after reading earlier versions.
Although this document is dated today, but it bears the above note right below editors.

Also according to PEP 464's Python 3.6 release schedule, Python 3.6.0 final was scheduled on 2016-12-16.

So the title should be changed to "Python 3.6 release candidate 1 released"

3
module0000 3 hours ago 3 replies      
The dict shrinkage(25% less!) in memory is pretty sweet! I'm not sure how many of you abuse dicts to hold [just about] everything, but this is a big boost for those of us that do.
4
kazagistar 2 hours ago 1 reply      
I'm disappointed in the interpolated strings. We finally get them, but its already behind the curve compared to Scala or C#, due to not being lazy and allowing context sensitive string interpolation.

The better design binds the values to the string, but does not interpolate into a string type fully. Then, the resulting object can be passed to a consumer like an SQL engine (and appropriately escaped) or an internationalization library (and swapped out for a translated string before interpolation).

I mean, I appreciate what they did, but it seems like missing a massive opportunity to provide a linguistic building block for library authors.

5
herge 4 hours ago 0 replies      
I do not know which feature I will miss the most whenever I have to use older versions of python, either the f-string interpolation or the underscores in numeric literals.
6
underyx 4 hours ago 0 replies      
7
jjwiseman 1 hour ago 0 replies      
"The default console on Windows will now accept all Unicode characters and provide correctly read str objects to Python code. sys.stdin, sys.stdout and sys.stderr now default to utf-8 encoding."

Thank god.

8
wbond 4 hours ago 0 replies      
My favorite bits include UTF-8 encoding support for Windows filesystems and console, scrypt, and OpenSSL 1.1.0 support.
9
gigatexal 2 hours ago 0 replies      
It's really neat to see async coming to things like generators and comprehensions. Looking forward to trying it out.
10
vosper 4 hours ago 4 replies      
Maybe this should be obvious, but I don't have a computer to hand to try and figure it out: In the example for f-string interpolation, why does value have to be declared like this:

 value = decimal.Decimal("12.34567")
Why wouldn't this work?

 value = 12.34567

11
pbiggar 2 hours ago 1 reply      
I wonder if there's a way to make all strings be format strings?
12
orf 4 hours ago 1 reply      
Hmm, the documentation seems to be updated to show 3.6 in the dropdown but it's not on the release page yet.
13
RodericDay 2 hours ago 1 reply      
Love interpolation, still shaking my head @ the typing syntax

 primes: List[int] = [] captain: str # Note: no initial value! class Starship: stats: Dict[str, int] = {}

14
SixSigma 3 hours ago 0 replies      
> On Linux, os.urandom() now blocks until the system urandom entropy pool is initialized to increase the security

I prefer to use the phrase "less insecure" than "more secure".

15
jscheel 3 hours ago 1 reply      
Great, another release that python devs can refuse to use.
16
d_theorist 2 hours ago 3 replies      
This will probably be an unpopular thing to say, and I understand that people have different opinions and preferences on this question.

However, for me, every time I see one of these Python 3 releases it makes me appreciate Go's model of language maintenance and development more and more.

Compare the last few major Go releases to the last few Py3 releases. Go has so much more discipline about when it's appropriate to add things to the language. Most of Go's changes are confined to bug fixes, performance improvements, and toolchain improvements.

By comparison, it seems like Python is on a runaway train of core-language additions.

17
fogleman 1 hour ago 3 replies      
I'll say it. Python 2: Stability. Python 3: Feature creep.

I've been doing a lot of Go lately and hugely appreciate the minimal syntax and orthogonal features. Seems like the opposite is happening not just in Python but many languages.

28
Show HN: CakeResume Drag and drop resume snippets to build a unique resume cakeresume.com
150 points by trantor  10 hours ago   99 comments top 24
1
StevePerkins 7 hours ago 19 replies      
I hate the fact that so many of these resume generators only support downloading as PDF.

Maybe (?) that works for the super-elite echelon who don't really have to "job hunt", and who maintain a resume only as a formality. But for the other 95%+ of plebs who have to actively apply or work with recruiters... MS Word is the only game in town, like it or not.

I loved the idea behind JSON Resume (https://jsonresume.org) a year ago (i.e. separate the content from the styling, store the content in source control and track it or branch as needed, and apply the content to whichever template you like). But I didn't like the limited export capability... so I wrote Resume Fodder (https://resumefodder.com) as an open source alternative. I'd love to create more template options when I have time... pull requests welcomed!

The people behind these resume generators know that MS Word is what most people need, but choose not to support it because that would undercut their business model. The business model dream is for you to host your content on their server, so they can mine it and sell access and hopefully cut off a slice of LinkedIn's pie.

So be it, but I just don't think there is a viable business model there. LinkedIn is already LinkedIn... and I suspect that smaller rivals will run into the same wall as Diaspora, Ello, and all the other would-be Facebook replacements. I think that people who check out these resume generators REALLY are looking for... a resume generator! And if it doesn't let you save your resume in the format that most people demand, then it isn't particularly useful in the real world.

2
tedmiston 3 hours ago 2 replies      
Personally I've gone all-in on the Stack Overflow CV / Developer Story (mine, for example [1]). I'm exploring building the missing tooling to update everything else (LinkedIn, AngelList) from SO as the single source of truth.

Developer Story does have a PDF export but it's very limited to including everything which is a bit heavy, and no UI customization right now.

I'd be more likely to explore a tool like CakeResume if they imported from an SO CV i.e., if the cost of adoption was reduced. I think this reflects the typical developer opinion on most resume generators.

I'm not saying SO has to be the standard, it could be a JSON schema with even more features, but we really need some standard.

[1]: http://stackoverflow.com/cv/taylor

3
awalGarg 7 hours ago 2 replies      
When I click "Try Now", I get a modal to signup. Is there something specific about this tool that requires signing-up first? Why can't we access it as is? (I understand some reasons, but I feel they don't apply when you are doing a "Show HN" of the beta version).

Otherwise looks nice, atleast in the images.

4
WhitneyLand 4 hours ago 0 replies      
Trantor after thinking more about your site, I'm sure it's a mistake to require registration before allowing them to feel how nice it is.

First, you could simply require the registration before allowing them to export so you still capture the data.

Secondly, I'm afraid the usability and slickness are so nice that you will lose more than gain by not letting people get a quick chance to see how good it feels.

Glad I got that off my chest. My opinion and $1.85 will buy you a cup of coffee at Starbucks, so fwiw.

5
SippinLean 14 minutes ago 0 replies      
Cool. I tried to "try it now" but got some modal instead, so obviously I then closed the window instantly.
6
darkhorn 4 hours ago 0 replies      
I dunno. I like the standart EU CV. http://europass.cedefop.europa.eu/documents/curriculum-vitae

You can save it as XML if you want to update it later. You can email it as PDF or .docx file. And it supports many languages.

7
wingerlang 10 hours ago 4 replies      
Looks nice from the landing page, but maybe a bit image-heavy for a resume isn't it?

On the topic of resume building though, while I haven't had the need for making one in a long time I have this idea I just want to throw out there.

Just make like an HTML page with every possible detail about your history. Then, in e.g. Chrome, you can easily hide the different sections/words that isn't related to the specific job you're applying for. Then print as PDF. Seems like it would be easy to maintain and "generate" the resumes per application.

8
agounaris 6 hours ago 0 replies      
What I don't like on resume generators is the fact that what they say about being "unique" and "impress" is the exact opposite from what will happen if suddenly everyone will start using them. All CVs will be the same eventually....
9
ameesdotme 8 hours ago 2 replies      
Pretty interesting concept! I'd like to be able to add variables that are used throughout snippets, so changing designs doesn't require me to re-enter a lot of information.
10
metaprinter 5 hours ago 2 replies      
I always thought it was best-practice to never include a photo of oneself on their resume.
11
gentleteblor 3 hours ago 0 replies      
This looks good (i like the drag and drop mechanic).

I've spent a lot of time exploring and building career tools [1], and my observation so far has been that "formatting and style" isn't the main problem with resumes. Seem to me that most people struggle with "what" to put in a resume and "how" (phrasing, concreteness etc) to put it.

Good luck and congrats on launching.

[1] https://jobrudder.com

12
krupalshah55 1 hour ago 0 replies      
Most resume builders are not popular because they ask for money for some designs. I hope that does not happen with this one.
13
jenskanis 8 hours ago 1 reply      
Awesome little tool. I like the idea of drag&drop snippets, but every list snippet has a fixed number of items. Why not one snippet with the ability to add/remove list items? Moreover you can't easily replace snippets without keeping the current information. Lots of copy/pasting involved.
14
wccrawford 8 hours ago 1 reply      
I expected to see the Experience sections listed in the dropdown, but instead I just see "paragraph" and "list". I almost just clicked away from the site at that point.

You should probably do a better job of calling out the things people expect to put on a resume, instead of hiding them under generic non-resume terms.

15
emirozer 6 hours ago 3 replies      
Looks nice but gonna be a bit off topic and ranty, I really don't want to bother about resumes and their formats anymore. Is it really not acceptable to give a LinkedIn URL when asked for a resume, or as a recruiter if you see my LinkedIn profile, why do you still ask a resume? I think it looks well enough to replace any resume in any format, and its generally available. (of course if you don't choose to limit it to only 1st level connections)

Farsighted Note: I am aware of PDF export feature, but its very ugly..

16
ohstopitu 5 hours ago 0 replies      
I love this, would be possible to add in an HTML export functionality that I could use to host on my website for example?
17
WhitneyLand 7 hours ago 1 reply      
Sheesh modal/reg just to try it! You could allow some playing and collect users 1 step later.

I like the idea. Your site looks great - clean and attractive. The animations are enticing.

18
4rtemis 4 hours ago 0 replies      
Resume generators are getting a little trope-ish. Personally, I just use jsonresume's schema more or less to keep all my employment information. I don't like their generators, too heavy and esoteric, personally. I just use the JSON file.

My website is generated with a static website builder, hugo, and uses wkhtml to generate an optional pdf. It just pulls a subset of what I want to display from the exhaustive, version controlled json file. My entire website pulls contact information, name, location, social media profiles etc information from that one json file. It separates content and presentation and I keep it all in one file. If I wanted two versions of the information, I just change the html document and what I pull.

19
brosirmandude 6 hours ago 1 reply      
Given the name I really thought this was going to be a service that puts your resume onto a cake and sends that cake to a company you want an interview at.
20
arc_of_descent 6 hours ago 0 replies      
I like the website. Haven't tried it out yet.

I usually just whip up a good looking HTML page and then use wkhtmltopdf :p

21
dominotw 5 hours ago 0 replies      
Facebook login seems to be broken. I get 'application error'.
22
mnw21cam 6 hours ago 1 reply      
Web site doesn't make much sense. What's it about? What's being resumed?
23
WA 6 hours ago 1 reply      
Can I download the final resume as a standalone HTML website too?
24
arkitaip 8 hours ago 0 replies      
(Oooh, I want to call this Cakesume so badly..!)
29
I was a robot and this is what I learned theregister.co.uk
61 points by CapitalistCartr  6 hours ago   24 comments top 7
1
Animats 14 minutes ago 0 replies      
The Beam is a wimpy teleoperator. Send the new Atlas, from Boston Dynamics [1], to a conference, and you won't have that problem. People running away in terror might be more of an issue.

(It's not clear what will become of Boston Dynamics. Google wants to sell them. DARPA and the Marines gave up on their BigDog as not militarily useful. The technology is impressive, but it cost well over $100 million (mostly DoD funding) and 25 years to get to this point, with no market in sight.)

[1] https://www.youtube.com/watch?v=rVlhMGQgDkY

2
cr0sh 2 hours ago 3 replies      
I've experienced this as well - albeit in a slightly modified form, but one more people can relate to.

I work with a friend of mine who has a non-profit to repair and donate power wheelchairs and scooters for people in need. Basically, he gets old or unused chairs (you'd be surprised at how many "new" chairs get donated - simply because the batteries died, and people can't afford new ones), and we fix them up, clean them up, then donate them back out (many times they get donated back to us when the person no longer needs the chair).

Anyhow, one year we decided to go to the Abilities Expo which was being held in Los Angeles that year. As a part of this experience, we decided to take some of our chairs (including some we had customized in various ways - my friend is also an artist when it comes to metal craft - and fire art) to the expo to ride in them and "experience" what users of these chairs experience and gain that perspective, so we could apply what we learned to customizations and such.

What we learned are that people are assholes (big surprise).

Despite us being in chairs, at an Expo dedicated to products and companies marketing devices, materials, etc for those in need - we experienced on a constant basis people not watching out for us, stepping in our way of travel, not respecting us as human beings (like some people couldn't even look us in the eye as we talked with them - like we weren't human or something), etc. We also found the aisles between vendors to be poorly laid out for wheelchair and similar navigation.

We came away from that conference with a new perspective on what power wheelchair users and other people in similar situations face - and it isn't a very nice situation to be in. Furthermore, these are real people, intelligent people - just with a different way of getting around.

Unfortunately, for many able-bodied individuals, it appears that those with less ability to move around either don't exist to them, or are a nuisance in some manner - or they have some kind of fear about their situation. The experience greatly opened my eyes to something which until that time, I hadn't been aware of (iow - I was probably one of those on "the other side").

3
MrQuincle 5 hours ago 1 reply      
How could this experience be improved? The "funny" behaviour of sneaking up behind it and covering its eyes is just inexperience with the rules that come with new tech perhaps. Some of it might improve by just upping the number of telemachines on the streets.

* How visual is your head? Do you see someone's head also from behind?

* Do people know it's a person or do they think it's an AI?

* Do people know you're a visitor or do they think you're a researcher?

* It's small. Would making it bigger already help?

* I say excuse me when I want to pass through. How good is the audio to convey that intent?

* Do you see your surroundings good enough? People are smart in finding their way, so might see a different route you can take and don't step aside because of that.

And probably a 100 other things to research and improve!

4
yardie 1 hour ago 0 replies      
We have a Beam. We put a staff shirt on it just to humanize it a bit and it worked pretty well. From a distance you can't really tell if it's a robot or a dispenser. Our Beam is 2 pedestals with a screen and camera. Our sanitizer dispenser is 2 pedestals with a head full of sanitizer gel. If you put them next to each other you have a 50% chance someone would stick their hand under the Beam camera expecting gel to come out.
5
gumby 49 minutes ago 0 replies      
I used a Beam to "attend" a robotics conference in San Jose (just a short drive from my house, but I wanted to try it out). A lot of people treated "me" oddly, of course, but it did work to get vendor info.

It felt like a kind of gimmick until I had one amazing experience. I was talking to a sales guy from a big machine company -- he looks like he used to sell trucks or aerospace stuff. He forgot that he was talking to a screen and at one point leant forward to touch my on the "arm" (I assume he touched the vertical screen supports). We both laughed. But it was a telling moment.

6
forgottenpass 3 hours ago 0 replies      
To admit this, especially within the confines of the technology industry, is to show weakness.

Really? It seems like every conference I go to the hottest off-subject topics of chit-chat are griping about conferences, work travel, and stress of above. Followed closely by other crowd favorites "things used to be better" and "I haven't walked more than a mile a day in months, my feet suddenly hurt!"

7
anonymfus 3 hours ago 2 replies      
So sad that this article has a stereotypic caricature as first illustration.
30
Open sourcing Embedding Projector: a tool for visualizing high dimensional data googleblog.com
116 points by runesoerensen  10 hours ago   8 comments top 3
1
jph00 2 hours ago 1 reply      
I'm really happy to see this. I demonstrated an (in some ways) more advanced version of this a few years ago in my talk on TED.com - see the last few minutes of http://ted.com/talks/jeremy_howard_the_wonderful_and_terrify...

Unfortunately back when I was at Enlitic we never got around to open sourcing this, but I hoped my demo would encourage people to explore tools built on projections. There's great potential to rapidly label data and improve models using these kinds of tools. I'm certainly hoping to find time to return to this myself sometime soon.

2
ohitsdom 7 hours ago 2 replies      
Looks cool, but couldn't quickly try it out. The website for Projector caused Chrome to crash- it showed a "WebGL hit a snag" error.

http://projector.tensorflow.org/

3
nl 9 hours ago 1 reply      
Is there a TF project to build (word) embeddings suitable for this? Gensim is so easy to use, but the added flexibilty of TF could be useful.
       cached 7 December 2016 20:02:01 GMT  :  recaching 2h 52m