Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

I hear regularly completly opposite opinions:

- the ones that wish programming would be more elegant and expressive like maths notations

- the ones that wish paper would publish a Python algo instead because maths notations are inconsistant and hard to read

I'm not a maths person, so can people with a lot of experience with it help me decide which one is the more reasonable?


No question about it. Mathematical notation is pure evil that should be cast into mount doom and then some. Mathematical notation makes Javascript operators look sane.

There is barely a single operation in the last few maths papers I've read that doesn't have at least four possible interpretations at first glance, so the only way to understand a single line is to understand the entire theory at once. Needless to say, all variables are described with single letters.

The best defense for it is that it evolved from handwriting, where the difference between `matmul(a,b)` and `a x b`, repeated a few dozen times, is significant. These days, as I type, I define commands to turn the unambiguous longhand into the shorthand.

("But yodel, a and b aren't bolded or uppercase so according to convention they must be scalars!", I hear you say. Ha, ha, ha.)

I am genuinely angry about this. A great deal of practical mathematics is not hard. Mathematical notation is hard, and everyone using it should be a little bit ashamed at how needlessly difficult the field is.


>No question about it. Mathematical notation is pure evil that should be cast into mount doom and then some.

This sort of juvenile over-the top hyperbole is getting pretty boring now. Can you present your criticisms like a normal person instead of calling technical things you don't like "terrible and evil"? Especicially when you say (imo) ridiculous statements like "maths is not hard, it's the notation that's hard".

Notation is, most of the time, trivial compared to the concepts they represent. Funny you should give "matmul(a,b)" as an example, that would be a pretty atrocious way to write mathematics. Imagine writing "equals( matmul(S,matmul(A,inv(S))) , A)" rather than "SAS⁻¹ = A". Which do you think most clearly represents the concept at hand? The "overloading" that you complain so much about, it actually illuminates the fact that the underlying concept of "scalarmul(a,b)" and "matmul(A,B)" is the same. Going even one step further, Einstein notation: a development purely of notation, that makes dealing with tensor algebra a million times more clear.

I swear I don't understand this line of reasoning.

EDIT: I'll go out on a limb here: you're a programmer, not a mathematician, so you tend to look at these things from the prism of a programmer, not a mathematician. When all you have is a hammer...


While I get your reasoning, I think it misses a few important points.

-- 1. Having the same symbol for several things is the mathematicians way of having polymorphism and is a very nice feature.

Take for example the plus sign. Everytime we encounter it, we will most likely be dealing with some kind of abelian group. So just from seing the sign, we can already tell a lot about the context.

Another example would be the sign for the tensor product. I we see it, we are most likely dealing with some symmetric monoidal category . It might be vector spaces, modules over some commutative ring, coherent sheaves, objects in some derived category, etc. But still the important part is that all the stuff we know about this context can be applied.

-- 2. "so the only way to understand a single line is to understand the entire theory at once."

What do you expect out of a single line? Just think of a codebase with 800k lines. Would you expect to understand what the codebase is about by just looking at a single line?

I guess not: You'd rely on the naming of the functions/classes/etc. and how they are composed to understand what the codebase is doing. You'd also need a lot of knowledge about the area the codebase is concerned with to tell what is going on: Is it about a webserver providing a SPA? Is it a database? Is it a compiler?

You also don't expect to understand the whole codebase and it's dependencies (including low level abstractions)in its entirety: If you write a frontend `<div>` tag as part of a frontend do you really need to know the exact way this will end up as instructions on the chip of the computer that is running running a specific version of a specific browser running a certain version using drivers for a specific monitor, graphics card, etc...

All this is also true for mathematics.

-- 3. "A great deal of practical mathematics is not hard. Mathematical notation is hard ..."

Of course mathematics is hard. In fact: If anything related to human thought is hard, it is mathematics.

And more explicit notation will not make it easier. Do you think the twin prime conjecture is still unsolved because a layperson may misinterpret the meaning of a plus sign?


> What do you expect out of a single line? Just think of a codebase with 800k lines. Would you expect to understand what the codebase is about by just looking at a single line?

The whole point is not having to understand everything at once. And I would expect to understand what that particular line does to whatever level of detail I want by reading that line and recursively working backwards through the definitions of each operation invoked. Like clicking on each identifier and then doing ‘jump to definition’ in an IDE, instead of reading a book from cover to cover.

With code, I do this on a regular basis. With mathematics, it is plain impossible.

(And yes, this is why literate programming is a silly idea best forgotten.)

> Do you think the twin prime conjecture is still unsolved because a layperson may misinterpret the meaning of a plus sign?

No. But it very much may be because too few people understand the relevant portions of number theory in sufficient depth — from the highest levels of abstraction down to the bits and bolts of set theory — to notice the key insight necessary to solve it.


> With code, I do this on a regular basis. With mathematics, it is plain impossible.

It's easily possible with systems like Coq [1] plus a nice IDE [2]. There are mathematical libraries for the foundations [3][4].

[1] https://github.com/coq-community/awesome-coq

[2] https://github.com/coq-community/vscoq

[3] https://github.com/UniMath

[4] https://github.com/math-comp


That only works if someone bothered to write their proof in Coq in the first place. Most don’t.


Polymorphism is lovely - if you have strong typing, otherwise it's horrible. I shouldn't have to guess (!!!) that I am "most likely dealing with some kind of abelian group".

I don't expect to solve the twin prime conjecture. I do expect to understand, say, a kalman filter, or a multilayer perceptron. Those are not difficult concepts. And yet... I could not name a single paper that I could say to someone who doesn't already understand them "go read <x>".

How is that anything but damning? What is the point of a means of communication if I cannot impart a novel concept with it, because the reader must already understand all possible and imagined meanings of the plus sign to understand what I'm doing with it?

(side note: who's going to be solving the twin prime conjecture and not providing the proof as code? Why? A computer as an automated theorem checker is revolutionary.)


Sure often guessing is undesirable, but that guess can quickly be resolved with a little extra context. And with only a tiny piece of context you have an immensely powerful tool


> Take for example the plus sign. Everytime we encounter it, we will most likely be dealing with some kind of abelian group. So just from seing the sign, we can already tell a lot about the context.

This! This is exactly my biggest pet peeve in Python. That the plus operator is used, in the base language, for such a notoriously non-abelian operation as string concatenation. As Carlin would say, this is not a pet peeve, this is a major psychiatric hatred of mine. In the (fortunately few) occasions that I have to do string processing in Python, I go to great lengths to avoid any usage of the concatenation operator. I cannot bear myself to use it.


Maybe you've used it already, but you'll like how Julia does it. String concatenation is *, repetition is ^, and the identity element is one(String) = "".


Good because it's rarely a good idea to use it nowaday. Python has much better alternatives with join, __format__ and f-strings.


Aren't the key words, "most likely"?


Exactly. It could be what you expect, or it could be that the particular paper/journal/field has a slightly different syntactic convention, where underlined or bold letters mean something entirely different than usual. And even if the paper explains the syntax it uses somewhere, it's still a new ruleset that you have to constantly remind yourself of as you're reading the paper.


Yes, but sometimes you just want to code up a formula from a book.


> Of course mathematics is hard.

That wasn't what was said. What was said was "A great deal of practical mathematics is not hard.".

The notation "e^(i x pi)"is a crime in 2 languages against countless students. Why E? No good reason. Why pi? Also no good reason. i? When they named it they didn't even know if it was a real thing. They have many faces, and the notation manages to avoid representing a single one of them. Even "self_diff(rotate*half_turn)" would be an improvement; at least some of the meanings are captured.

Naming things is hard, but this is literally 1-letter-naming applied to the 3 most common and important functions humanity has ever defined. The only excuse for it was up until ~2,000AD the mathematicians were working by hand.


It's worse than that: The constant π is the wrong one! Never mind that it's a Greek letter, because we all studied that in our Ancient Greek classes, right alongside Latin and philosophy, where we read Plato.

No, the real issue is that the circle constant is 6.28319, not 3.14159. That's why a "full turn" is 2π instead of 1.

That's why every time I read an equation involving circles, or spheres, or any similar notion I have to take the constant that is in front of π and mentally divide by two.

And nobody should dare pipe up and claim that these are isomorphic and it "doesn't matter", because it does.

There's a tendency in modern theoretical physics to just ignore random small constant factors in equations, even when using natural units. In that case there ought not to be any unexplained constants! Any numbers in those equations ought to have an essential physical meaning, a real interpretation. Numbers ought to count things. But they don't, because of stupid extra constants like the ones needed next to π. This "2" gets blended into everything else, so you get stupid shit like the "8" in the Einstein field equations. Eight of what is being counted here exactly? Oops.. no wait.. 4 circle constants are actually 8 half-circle-constants.


Learn that i := imaginary unit. From then on, every time you want to write the imaginary unit just write i.

Skip learning that i := imaginary unit. Write "imaginary_unit" every time you want to refer to it, for maximum clarity.

Choose the latter and now you have to write "pow(euler_constant, mul(imaginary_unit, circle_half_turn))". Does this sound "maintainable"?


As a professional software engineer who is also formally educated in statistics, I actually think it does sound more maintainable.


But pi has lots of meanings. Sure, it represents a half-turn in geometry, but that is in no way its only meaning (for example, it is also a transcendental real number). The same is true for S. And the fact that that exponentiation with complex exponents is isomorphic with geometric operations is a non-trivial result that your notation losses. For example, log(e^i x pi) = i x pi. Would that be as self-evident as log(self_diff(rotate x half_turn)) = rotate x half_turn?


That "log(e^i x pi) = i x pi" is not self-evident at all. The only reason you know it is because you attended a math class and your professor made you solve 60 problems from a $1,000 textbook until you memorized it.

I don't even know what "e^i x pi" means. How does that translate into C notation? Is it pow(e, i) * pi, or is it pow(e, i) * x * pi, or is it something else entirely?


Unfortunately, the text inputs I have available are not good enough to represent the actual maths notation, which is extremely clear in this respect: it would have an e, and then in the superscript, i π. Since this is such a well known formula (Euler's Identity), I didn't think it would be a problem.

In C notation, this would be pow(e, i * π). Or maybe pow(i*π, e), I don't remember and the notation is pretty bad.

And the point about exponentiation is very simple, and I didn't need to do hundreds of exercises to remember: the natural logarithm of e raised to some X is X, whatever that X may be.

The other commenter's note was that raising some constant to an imaginary number is a very obscure way of expressing the geometric operation that this represents (multiplying by e^iπ is equivalent to rotating a complex number by a half circle). I was pointing out that, while that is true, it loses the algebraic interpretation, which also has value.


I agree with the other poster. If you can memorize log(e^N) = N, you could have memorized other notations for expressing the same. Math notation doesn't make Euler's Identity self-evident, and can be used to obscure the geometric operations taking place.

To those who haven't memorized Euler's Identity (I'm aware of it due to your comment, but will probably forget it in a day or two), this "self-evident" truth is invisible no matter which notation is used.

C notation is bad, but has the advantage of being precisely representable in ASCII. To post math notation you'd need to upload a PNG somewhere.


There is a lot more to work with there than with traditional notation. Traditional notation is literally one letter.

I'd be surprised, on a tech forum, if people didn't see at least the smallest hint of a problem at single-letter naming. The tech industry moved away from that approach with a certain implicit urgency.


There are many differences between the practice of mathematics and programming, to the point that I do t believe that they are comparable.

One basic thing is that PI (and even more so E) are pure abstractions. They correspond to certain physical or intuitive concepts in certain contexts, but their identity across contexts is more important. Even in programming, we sometimes use one-letter variable for very abstract things (the loop variables i, j, k; T, U, V as type arguments in C++ and co, or a, b, c in Haskell; and probably others).

Another major difference is the way this is actually done. Programs are written once and then mostly read, tweaked, debugged. Mathematics is all about writing and writing and writing, a lot of times from scratch. You're not as Lilly to be editing a file from 2 years ago, you're more likely to be writing a new attempt from scratch. And, people will likely only read your final version, not your hundreds of attempts before. So efficiency in writing your ideas is all the more important than in coding.

Another aspect is that, a lot of the time, the mathematician will spell out a lot of intermediate steps between a problem and a solution that, in a computer program, actually fall in the execution, since we're not in the habit of proving our code reaches the final state we envision (even informally); and certainly not in-line with the rest of the program. So again, in mathematics you end up writing a lot more the same few symbols, making long words all the more harmful.

Imagine

    X + 6 = 5X
    X - 5X = -6
    -4X = -6
    X = 6 / 4
Spelled out as

    Unkown plus 6 is equal to 5 times Unknown
    Unknown minus 5 times Unknown is equal to negative 6
    Negative 4 times Unknown is equal to negative 6
    Unknown is equal to 4 divided by 6
Which of these is clearer and easier to follow?

Edit: I'll also add that function notation works great for unary and maybe binary functions (though operator notation is generally nicer for binary functions), but it becomes horrible for anything past that. For example, the sigma notation for sums is much easier to remember than if I wrote `sum(1, 789, some_value squared)`.


Don't get me started on the notation for negative numbers, that notation is so easy to miss. Mucking up a calculation because it isn't clear which term a minus is associated with must be one of the single most common errors in all of mathematics. I might actually start experimenting with neg(6) instead of -6 after this conversation now that you've made me think about it.

> Mathematics is all about writing and writing and writing, a lot of times from scratch.

Mathematics is all about clever people communicating precise ideas.

> Even in programming, we sometimes use one-letter variable for very abstract things (the loop variables i, j, k; T, U, V as type arguments in C++ and co, or a, b, c in Haskell; and probably others).

They're defined locally though. A loop variable in one program is totally logically unconnected from a loop variable in another program to the point where programmers might give them mutually contradictory meanings. If the meaning was shared across all programs then yes the 1-letter-names would be troubling.

> or a, b, c in Haskell

And part of the reason Haskell doesn't catch on is because very few people can read Haskell programs; I know my interest in it ended when I saw =<< then decided to learn a lisp instead. I still live in cheerful ignorance of whatever that symbol means. I can't even search for it I get results pages in Chinese (!!). It is a bad community to look to on the subject of how to communicate ideas.


I agree that figuring out what the symbols mean can be a frustrating part of mathematics, but once that part is done, I find the notation to be lightyears ahead of what normal programming languages can do in the way of communicating an idea directly.

Seriously, take any 100 ksloc codebase; how many bugs do you expect to be in there? How many of the developers do you expect to really grok what their code is doing on all functional levels of abstraction?

Math papers certainly contain bugs sometimes, even critical ones, but the density of bugs is way lower overall. It's simply much easier to find a bug by staring at a terse one-liner than it is by groveling around 10 pages of "readable" code.

Arthur Whitney's code is definitely not approachable, but once you get over the hump, I find it emminently readable compared to what we hackers tend to tout as "readable code."

I think most of the debate boils down to different concerns. As a communication tool, what is the function of your code? If it's to introduce ideas to a large audience or many non-inductees, then please, use Python or similar. But if your primary communications are only between the system experts, do you really need to optimize for "this code looks grokkable at first sight"?


You are demanding to be able to read a random line in the middle of a book and understand everything. This is stupoid, the book/article/theory will have a section that defines everything is used.

You have same shit on JS where + can mean do a numeric addition or it can mean concat 2 strings and other powerful languages will allow you to have + enhanced so you can use it to add matrices,vectors,fractions time intervals etc.

If you want for example to understand the fundamental theorem of statistics you can read only it and his proof you need to read and understand everything in the book before it.


I disagree completely. You have to be aware of the context. It's like having hundreds of different programming languages. You work in a particular context and you get used to it. I assume you come from a non mathematical perspective.


yeah, I would view every Mathmatical discipline or any discipline that heavily involves maths as a different "programming language". Each having evolved their own sets of conventions and styles (e.g. Mathmatical physics vs Statistics sometimes differ in notations despite describing the same thing). You can't switch from one to the other without learning their style of writing.

They seem like a crazy mix of noise at first, but that's just because you're not used to it. It's like a javascript developer reading their first lines of rust, or the C-programmer reading their first lines of Haskell.


> The best defense for it is that it evolved from handwriting, where the difference between `matmul(a,b)` and `a x b`, repeated a few dozen times, is significant. These days, as I type, I define commands to turn the unambiguous longhand into the shorthand.

How much math/physics have you actually done? In deriving something, or solving a problem, I can have pages of the concise notation. Dealing with your expanded notation would be Hell that no mathematician/physicist would put up with. We struggle even with the concise notation. We'd like an equation to fit on a line, for example, and it's a pain when it doesn't. With your notation, very little of substance would fit on a line.

It's a bit like programming in that sense. If you can fit a function in one screen, it greatly improves the chances of you understanding it. With your notation, you're intentionally going verbose. It may help you understand that one line, but will likely make it harder to understand the overall picture.

And really, it's not `a x b`, it's 'ab' :-)

(And with matrices, it's more often 'AB').

> Mathematical notation is hard, and everyone using it should be a little bit ashamed at how needlessly difficult the field is.

Everyone has his preference of comfort. I don't like much of the notation of logic, and I'm thankful most other math disciplines don't replace "and" and "or" and "negation" with the symbols used in logic. However, the set of practicing mathematicians who share your comfort preference is virtually nil. I don't like the concise, implicit notation in general relativity, either (where lots of stuff isn't even written down but kept in your head) - but I'll trust what everyone who has studied it says: You'd go crazy if it were as explicit as I want it - let alone your level of verbosity.

Also, as an aside, I've had to read code that represented mathematical operations (numerical integration, matrix operations, etc) written by others, and without comments or access to the author it was virtually impossible to follow. Most of the standard programming language's syntax is poor for mathematics.

Edit: I'll add that if your primary exposure is through math journal papers, then I do understand your frustration. They're usually much, much harder to understand than the level in a typical textbook. Unfortunately, this is intentional.


Have you ever read a perl program?


> that doesn't have at least four possible interpretations at first glance

show us


OK, given yodel's answer, I'll go to bat for mathematical notation.

- It doesn't change very much, so you can just pick it up and understand it using what you learned at school. Cf e.g. looking at modern Javascript and wondering wtf all those JQuery selectors are.

- Relatedly, there's not a lot you need to know. I'm not a mathematician, but I can understand most mathematical theorems I've needed to look up with just basic high school algebra, derivatives, integrals, sums, products, trig, and matrix / suffix notation. Find me a piece of code that does anything interesting which has less than six calls to library functions.

- It's extremely concise, so you don't have to scroll through pages of code to get to the point - each line communicates a lot. This is really important, because it stops you getting lost or distracted in the middle of figuring things out.

- It's declarative, so it tells you what you're actually doing, rather than just how to do it. This is like the difference between saying "get me an orange", and giving full instructions for finding a shop that has oranges, navigating to it, etc. I know declarative programming exists (and it has these advantages) but I've never seen it used outside CS courses.

I honestly prefer mathematical notation; it has more upfront work to get good at it, but is much easier to use once you clear that hurdle. I haven't found ambiguity to be a big issue (especially compared to code; how often have you used a function which does something subtly different to what you expected?) although this may be due to the fact that I'm not looking at super advanced stuff (a couple of papers on deep learning, skew normal distributions, the rocket equation, that sort of thing). Especially with the deep learning papers, I found it infuriating how long they spent using confusing diagrams and wordy explanations where a couple of lines of algebra would have made their point instantly.

The true answer is almost certainly YMMV.


> It's declarative, so it tells you what you're actually doing, rather than just how to do it. This is like the difference between saying "get me an orange", and giving full instructions for finding a shop that has oranges, navigating to it, etc. I know declarative programming exists (and it has these advantages) but I've never seen it used outside CS courses.

I find this to be a problem quite often. Maybe my brain is wired differently, but I can't keep declarative definitions in my head and apply them unless I know of an imperative strategy to make them work.

I've first noticed this when, in high school, I was struggling to understand the epsilon–delta definition of a limit. The one that goes like this: https://wikimedia.org/api/rest_v1/media/math/render/svg/619d....

Only after many hours of classes, followed by many hours of staring at the formula, all over the course of weeks, I finally understood what it means. The one missing puzzle piece that no one explained to me was that, when you see "\forall _{sth > 0}", you should read it as "in particular, for a sth arbitrarily close to 0".

Declarative notation is fine if you comprehend all consequences of that declaration. In cases where you don't, it would be nice to have it spelled out which consequences are relevant.


Yeah it depends on the particular theory. Say, if you want to implement some physics model as a computer simulation.

Often, physics is presented as a set of interconnected of equations (some are general, some are based on assumptions, representing special cases). Unfortunately, most of the time these equations are not built "bottom-up", so to speak. They do describe various aspects of physical reality, but often don't allow a nice computational/operational interpretation of it right away. So converting this knowledge into a computational model can be non-trivial.


> It's declarative, so it tells you what you're actually doing, rather than just how to do it. This is like the difference between saying "get me an orange", and giving full instructions for finding a shop that has oranges, navigating to it, etc. I know declarative programming exists (and it has these advantages) but I've never seen it used outside CS courses.

Math notation is unlike declarative programming language in that it's possible to describe an something while telling the reader absolutely nothing about how to compute the object being communicated.


One huge advantage of the notation conventions in math is its concision. The current practice is, at its heart, that a we assign a single glyph to each concept. The notation is tailored for mathematicians communicating to other mathematicians. The terseness lets you communicate, visualize, and think about abstract concepts very directly.

Humans are really good at pattern matching. Giving your concepts very terse names maximizes the ability for this tool to find actually interesting patterns.

Of course, the terse notation sacrifices approachability. If your intent is to communicate to non-mathematicians then it's a bad language. That said, mathematical notation is full of historical quirks and irregularities akin to natural languages. Ideally, we want a one-to-one map between concepts and symbols, but in practice there are cases where the map ends up being more like many-to-many. There are competing notations, overloaded symbols, and often one needs significant context to actually resolve the symbol to its concept.

In a way, programming languages are an inversion of the above good and bad points. Progamming languages are very precise with their syntax, meaning that you don't need to consider author's intent to figure out what a piece of syntax does.

Also, programming languages, by virtue of being executable, are vastly more amenable to empower tinkering and exploration. There is something deeply satisfying about typing in some code and getting an expected result, and when the result differs from expectations, then you found a bug in your mental model. This is much harder to do with pen and paper.

That said, most programming languages and their standard conventions fall short by being relatively wordy and verbose. What is a good one-liner in math symbols often takes up a page of code or more, not including definitions. This severely hamstrings the ability to grok the big picture at a glance, and opting for "words" over "symbols" intruces noise that kills our natural visual pattern matching abilities.

So if you take the above thesis to its conclusion, one would want executable math notation. I'm not sure such a thing exists, but the APL family certainly is a solid experiment in this respect.


From experience in reading machine learning and computer vision papers (shared by many of my peers), it's often way more enlightening to see the code corresponding to a paragraph of equations. Some non-programming math people are angry at this view, but really a lot of mathy presentation is there to impress and obfuscate. Many times the code is straightforward and clear but it has to be artificially dressed up in fancy Greek letters and symbols to make it look like "proper science".

Also a lot of math notation is very sloppy, the opposite of unambiguous. Math people will say it's necessary for brevity, context is important, you must take the relevant courses beforehand etc, be properly initiated etc. then you will understand. But for me it's still annoying even after a CS master's with many math courses. In code, I can jump to the definition of anything and see precisely what is meant. But a math person would say ambiguity is a feature because, say, the integral sign may stand for different definitions, but in this context we don't care which one it is. They'd often say, well, here you could substitute anything, you could use anything here, it doesn't matter what we use for this and that. But really anything? Can I use a pound of dog fur? No. In working code there is at least one working example to suggest what you mean. I will have a much easier time to understand your abstraction and though process.

I think people often think in concrete terms but intentionally keep this secret because abstract ideals are more prestigious, so it becomes the reader's job to figure out what the actual motivation and reasoning of the author was.

Thankfully AI papers now mostly release their code so it's possible to see what they actually do behind the smokes and mirrors on the ground level. I'm all for abstraction and general patterns and proofs but there is such a thing as too much.


I think, in some areas math language is more appropriate, in the others programs and algorithms are more appropriate.

There is not wonder that a machine learning or a computer vision idea might be more accessible as an algorithm program, but this is not universally true for any kind of math.

A well written paper would describe things in clear terms, choosing the most comprehensible means to convey their idea. So, they might provide all three: 1) concise math formulas, 2) corresponding algorithms, and 3) an explanation in English. Not always all three presentation forms are achievable, but all of them can be useful and enlightening for the reader.

Unfortunately, in reality, there might be problems with presenting things in clear way:

1) A scientist might think that it is too verbose to repeat themselves, so they present the idea in only one form, at a single place in their paper, and think it's enough ("for the intelligent reader"). You want to find certain balance between conciseness and clarity, imo.

2) A scientist might be so immersed into the specific area of study they are writing about, so they don't see the reason for explanations for the more general audience. Here, it depends what audience the scientist is trying to reach. Also, not all papers present a good exposition of the field of study anyway.

So try finding good papers that explain things in clear terms at your level of comprehension. Read those, then move on to find new sources.


Neither. Mathematical notation and programming languages serve two different purposes, and I think they both work pretty well for what they're designed to do. Math papers are about communicating with other humans, so they use the shortest language that is effective for the particular problem they're studying. Notation is not meant to be universally unambiguous, because that leads to a much larger language.


This difference must not be exaggerated. Mathematical notation is declarative/functional, and programming languages designed in a similar vein are not unheard of.


The idea of using code to represent math in a paper is similar to an “idea” to stick with printing code in TeX instead of letting it be converted to the neatly typeset result.


Depends on who the paper is for. Theoretical CS papers for example, often don't have any code, but sometimes have pseudocode (for example in page 4 of PRIMES is in P [0]), to describe their algorithms. If the paper is written for people with less math background then writing up the algorithm in at least once language as a sample implementation is the way to go.

Also there's nothing wrong with doing both?

[0]: https://annals.math.princeton.edu/wp-content/uploads/annals-...


Maybe it's the french in my talking, but I really have a hard time trusting anything else than the state to handle health data.

Anytime you associate health with financial motivation, you end up with something twisted on the long run.

Sure, you can say that Apple, right now, is in the proper state to do that (although given they were part of PRISM, it's debatable).

But what about in 10 years? What if their executives decide that Apple Pay should lead to the creation of a bank? Then from a bank to an insurance company? Then they have a conflict of interest.

Simpler than that, what if they change their stance on user data, and decide to exploit it to understand their customers better? Or sell it? Or just partner it to labs, insurance companies, hospitals?

Like with facebook, it will of course all be "made anonymous", until it's not anymore.

Money and health data are not meant to be mixed IMO.

But even without all that, we are adding yet another tracking system on top of what is already a sensor packed pocket self-spying device.

It's hard to not worry that such concentration of power has a high potential for suffering.


The solution to this conundrum and similar potential problems with other 'smart' devices is to leave them on the (virtual) shelves. If your insurer starts to promote the use of such a device you change insurer. The same goes for car insurance which wants to have access to (live) tracking data on your car, home insurance who demand the installation of and access to 'security systems', the list gets longer and longer. The way things are going this new nosy technology is set to create a new class of Luddites, those who while not averse to technology in itself do not accept their lives to be steered by profit-seeking entities through the use of such.

Another interesting question is whether law enforcement will be allowed to access such data and whether it can be used as proof against the wearer. If your data indicates you were in a higher state of alert with a raised pulse, the gyroscope and position sensors indicate you were physically active, the location data puts you in a given area and the microphone picked up suspect sounds they won't need much more to convict you. Who is the legal owner of the data? Some countries give people the right to refuse to testify against themselves so if the data is owned by the wearer I'd expect it to be off-limits to the law.

The potential good uses of this type of technology are myriad, it just needs to be made big-brother-proof. That will be a hard task since there are situations where you'd want some of these easily-abused features to be used - e.g. call in emergency services if the device detects a life-threatening condition, etc.


> leave them on the (virtual) shelves

That's easy today because this option is unpopular. But look back and see how many things we (as entire populations, not necessarily individuals) starting accepting that was unfathomable a couple of decades ago.

Without strong government intervention we may end up at the point where you can take it or forfeit the insurance.


This is what I see coming as the mega corps eat our society alongside software. Look at the regulatory capture the telcos have managed with their negotiated service area monopolies or duopolies. It’s easy to say “buy something else” until there’s nothing else to buy and the product is a requirement for functioning in society (insurance, internet connectivity, healthcare). We need trust busting candidates now.


I don't think trust busting can make the telco problem go away. You can punish someone for their past wrongdoings, but that doesn't necessarily incentivize anyone to become an ISP after the fact. You have to look at how we invest in infrastructure instead. In most of the country, ISPs are responsible for building their own infrastructure; they have to either dig up streets or beg the local power company for pole access. If they didn't have to do that, many more companies would be interested in being ISPs. As it stands right now, it's too expensive and too risky. Sure, being an ISP is 95% profit once you've paid for the infrastructure, but the payoff period is many decades. Nobody has that risk appetite anymore.

In Manhattan, under every street is a subway where you can put power cables, fiber optic cables, etc. The result is that there are a multitude of business ISPs around, because someone already dug a hole in the ground where their cables can go. The actual stringing of cables is a straightforward procedure; sure you need to buy trucks and cables, but that's a lot cheaper than saying "hey we're closing 5th Ave. for 3 months" and digging the whole thing up. The street was dug up once (in 1891!), and now nobody has to do it again. (OK, the tunnels are pretty full, but it's better than nothing.)

If every street were built like this, it is likely that there would be many more ISPs. The big risks are gone. (There is a secondary problem in that many people still like linear TV, and many TV networks are owned by companies that are also ISPs. AT&T owns HBO. Comcast owns NBC. So that would be the sticking point after there is infrastructure, and sure... have the government break them up. They'll probably be dead long before we have the infrastructure, though.)

The short term solution is probably to invest in better trenching techniques. I've heard of microtrenches, nanotrenches, and picotrenches. Maybe we need femototrenches where you just run a fiber to someone's house through their lawn and cover it up with tape where it crosses the sidewalk. It's better than nothing. But probably still too risky for anyone to attempt.


Here in the Netherlands I see a tracking device for cars becoming popular. It is being marketed as a device to get early insights in car breakdown oh and btw you get a 10-20% discount on the insurance fee. That could amount to €40 a month which is a big incentive for people. Sometimes there are even additional insurance discounts when the accelerator has detected a gentle driving style.


Why should a gentle driver subsidize aggressive drivers? Why should a person that has a healthy diet and does regular cardiovascular exercise subsidize someone who doesn’t? Should someone that drinks only water subsidize those who regularly drink carbonated sugary or alcoholic drinks?

With more data, it’s possible to see how much certain lifestyles subsidize others, so it will be interesting what society deems eligible for subsidies and not.


You just described exactly how insurance actually works. I don’t really want to live in a world where the higher risk people are MORE disincentivized from being able to secure insurance by eliminating “subsidies” because of their behavior. Insurers need more of lower risk people to subsidize higher risk people (or events) otherwise the whole thing simply doesn’t work.


As an insured, insurance is to protect yourself from an unknown randomly distributed loss that you can’t afford.

As an insurer, you can afford to insure if the losses occur within the assumed probability distribution and loss magnitude parameters.

In the case of auto (or driving) insurance, it is known that driving aggressively will cause more collisions hence more losses. Therefore, any insurance company not taking this knowledge into account will have uncompetitive premiums compared to another insurance company that is. Insurance only doesn’t work in this case for people who choose to drive aggressively.

A more contentious point would be people living in poor areas having to pay more for insurance due to more property crime in poorer areas. It’s easy to say someone who drives recklessly chooses to and should suffer the consequences, but what about someone who happened to be born to poorer parents?

In the case of healthcare, there are a few known factors that make many chronic health events not random, such as bad diet, lack of excercise, and bad genes. A broken arm might be a sufficiently random event, but what should society do about the non random health losses? What if you were born to poor parents and never had much of a chance to make it so you had a job schedule that allowed you a routine to workout regularly? Or time to cook healthy foods? Or you don’t make enough money to live near grocery stores that sell nutritious foods?

But then at least 70% of Americans are fat. And I see them voluntarily buying large containers of sugar water multiple times a week. Why should I have to pay for their diabetes? Same for a smoker or an alcohol drinker?

It’s a nuanced topic that makes me wonder what freedom is and how much freedom can cost. Am I restricting freedom by not wanting to pay for others’ actions known to cause certain losses? Should people be restricted from certain actions if they can’t afford the losses, therefore restricting their freedom? Can they even be restricted, logistically?


How do you know that more aggressive driving causes more collisions?

How do you know which accelerometer-measured[1] parameters correlate with aggressive driving? High speeds? Abrupt acceleration? Hard acceleration? Abrupt braking? Hard braking? Late braking (how do you know the difference?) High lateral cornering loads? How are these differentiated from abrupt lane changes? Does the dongle know if you used your signal or not?

Studies show that driving late at night is far riskier than driving during daytime; due to visibility, alcohol, etc. Lots of late night trips? Time to punish that graveyard shift ER doctor for driving her car at such risky times!

1. Presumably most of these OBD-II dongles really only use accelerometer data to report back, even though they have access to more data if they want it, and if they're programmed to understand every model of vehicle


> How do you know that more aggressive driving causes more collisions?

I don’t, but insurance companies employ some pretty smart people who can figure that out. If they offer discounts for certain driving characteristics, I’m willing to bet that they reduce the insurer’s expenses. Otherwise they won’t be in business for long.


Most insurers that offer a tracking-based discount also offer policies without. It seems to me, all that matters is, on average, they don't offer a discount to tracker users that is larger than those users, as a pool, save them in claims.

The only incentive to get it "right" is that, if they do a really poor job at this, they will lose business to insurance companies that do a better job at it -- again, to the extent that the differences between insurers are significant, that customers are price sensitive, aware enough to shop around and compare the actual rates they pay, etc.

We already know that your non-tracker-based insurance premiums may vary wildly from one insurer to another. One may penalize you heavily for being 18. One may offer a larger discount to those who complete driver's ed courses, or own a car with airbags.

Maybe you'll be penalized for that first accident or ticket, or maybe your insurance company will give you some leeway (and, presumably, double down on the surcharge after your second accident).

I don't see how it's inherently obvious that an insurer that gets their tracker-based metrics 'wrong' will go out of business in short order. Again, all they have to do is charge more than they pay out in claims and overhead.


> insurance is to protect yourself from an unknown randomly distributed loss

But when randomly distributed loss hits you'll surely expect to be subsidized by others who somehow weren't affected by this despite their aggressive driving, or bad diet, etc.

> bad diet, lack of excercise, and bad genes

Now imagine the fun times when your insurer decides which one they can use to screw you over and how badly.

Sure, I get your point but it's buried in a mountain of nuance that makes the "straight forward logic" meaningless. The insurance industry doesn't need yet more ways to screw people over, or give the people who need it most an even bigger middle finger and hang them out to dry.


>A more contentious point would be people living in poor areas having to pay more for insurance due to more property crime in poorer areas. It’s easy to say someone who drives recklessly chooses to and should suffer the consequences, but what about someone who happened to be born to poorer parents?

This already happens of course. Auto insurance (and I assume other property insurance) varies based on where your auto is garaged (by a lot).I live in an exurban town. I assume my insurance would be 2x-3x is I lived in Boston.


I’m more than willing to subsidize the more aggressive drivers in order to maintain my privacy. Joe Schmoe gets slightly cheaper car insurance than he “deserves” and my driving habits are known only to me. That’s a win-win for everyone except the insurance companies who want to collect data about our habits and monetize it to pad the bottom line.


When aggressive drivers pay more than gentle drivers, that creates an incentive for aggressive drivers to drive more gently. Some of them will, and that in turn will save lives, not just money.


I do agree with the possibility of uses for this kind of technology, however at least in the United States, health insurance is largely tied to ones employer which makes it impossible to switch insurance companies.


> Maybe it's the french in my talking, but I really have a hard time trusting anything else than the state to handle health data.

I have a hard time letting the state amass more data from people.

> Anytime you associate health with financial motivation, you end up with something twisted on the long run.

Well, the state is not some objective, incorruptible entity without any ulterior motives. You end up with something twisted even when you let the state handle health data. The key is for individuals to decide how, where, when and what they want to share and provide enough control and literacy on why this is important. Unfortunately, too many people get lost in who should or shouldn't get some data and miss the point of maintaining one's freedoms.


I don't disagree with you in general but I wanted to say why I feel comfortable enough with Apple's approach. I looked at the privacy statements for Apple's health apps and the 3rd party sleeping apps. It is my understanding that all data stays on my watch and iPhone unless it is encrypted. My understanding is that only I have access to this data.

I would like to share some data with my doctor and insurance but I want that under my control.

EDIT: just wanted to add that I am also in general deathly against IoT devices re: tracking. I read Surielance Capitalism and took the book seriously.


Apple is a for-profit organization that's free to alter their privacy terms any time they want. I don't trust that future modifications of those terms won't make all that data available to anyone who pays.

And even if they don't sell the data it will still be a huge attraction for all kinds of black-hats.


And the government is also free to change the rules depending on the administration in power. I can leave a corporation I don’t like much easier than a government.


That’s not necessarily true - realistically not using google or Facebook, for the average, non-tech person, is in many ways up there with moving from say, France to Germany (I chose the EU to make a specific point about ease of movement) in terms of difficulty.

Also, at least democracies have formal mechanisms for holding governments accountable, even if these mechanisms are often corrupted or flawed.

Living in a democracy means you have options beyond “voting with your feet”.


Even in the best case ignoring the effects of the electoral college, two senators per state regardless of the population and gerrymandering suppressing the will of the people. It’s fine when a democratic government having power is ruled by the majority as long as you are in the majority.

Look at the history of how the government treats minorities (racial, religious, non straight, etc)


I agree about gerrymandering, think the Electoral College is anti-democratic, and see you point about the way the Senate is set up (though that is maybe a bit trickier than the above 2 items).

But I feel like this is kind of outside scope of what we were talking about? The US is a flawed democracy, no doubt, and some political scientists argue it no longer functions as a democracy, but, it is still, both formally and somewhat in practice, a democracy.


If this is anything like find my iPhone they don’t have access to the data even if they want to. It’s all encrypted and your hardware is the key.


Except when encryption becomes mandated by law to be backdoored. Having the data distributed over multiple disparate systems is at least a major inconvenience for any attacker.


Maybe it's the french in my talking, but I really have a hard time trusting anything else than the state to handle health data.

I wouldn’t trust the American Government with any more power than they have now. It’s not just contempt for the current government, but it wouldn’t matter which party were in power.


Health data being in the hands of the private organizations is disastrous.

There's no price transparency and there's no recourse for abuse or selective targeting.


Not trusting the government doesn’t have to mean trusting companies.

I completely agree with you, but I also have my doubts about governments as well. This leaves only the option of my health data being controlled by myself.


Which is impossible because your records are shared in the course of doing business.


You mean selective targeting like the government just announced with respect to transgender rights and health care?

https://www.nytimes.com/2020/06/12/us/politics/trump-transge...


At least you know that it is happening

What's the recourse when that action is hidden away behind some algorithm by a private corporation?


So knowing is little solace for people that are affected. People who aren’t affected seem to always be the ones saying stuff like this.

See for example - “at least we now know that minorities are getting beat by the police now that it is getting filmed” ignoring the fact that it was happening for decades and no one believe it.


> I really have a hard time trusting anything else than the state to handle health data.

I would say I'm exactly the opposite. The less data the state has about me the better.

In reality it's probably more a concern about anyone having too much data. I don't mind different organisations having little bits but I get concerned when people want to bring it all together.


> The less data the state has about me the better.

This seems to me the wrong mentality. What you ultimately care about is the leverage you have over the entity holding your data. In most cases you have more leverage over the state via voting and lobbying.

> it's probably more a concern about anyone having too much data

I agree. The issue is what you give up when you let people have that data, and how to mitigate those downsides.

> I don't mind different organisations having little bits

Sure, but realistically that's not how it will work. The point of gathering all the health data is that it's valuable to provide your health information to other businesses. This is specifically called out in the article, with the example about the gym and your doctor.

> but I get concerned when people want to bring it all together.

Bringing it all together is the whole idea. Apple may not literally give the raw data to anyone, but they will do what is functionally equivalent. They'll provide an API for third parties to make business decisions about your individual health. There is no way to do this is a privacy-preserving way.


> This seems to me the wrong mentality. What you ultimately care about is the leverage you have over the entity holding your data. In most cases you have more leverage over the state via voting and lobbying.

I would argue the exact opposite. I've always found private companies to be far more responsive to my needs than government.


Their responsiveness is contingent to how it affects their bottom line.


Of course, but the government doesn't really have such a bottom line, so it doesn't exactly need to care.


Other than, you know, their jobs...


You realize the President won the election while losing the popular vote and more voters vote Democratic than Republican in both the House and the Senate bit because of both gerrymandering and the 2 Senators per state regardless of the population, Republicans have a disproportionate number of seats?

This isn’t meant to be a partisan statement, more to the point of how the voting system works in the US.

Besides that, people aren’t going to vote based on privacy. All a politician has to do is tell “terrorism” or “think about the children” and they can pass anything they want.

Not to mention that most regulations come via agencies run by unelected officials and judges are unelected and have a lifetime appointment.


No US president has won the popular vote, because no popular vote has been held. The rules of the contest influence the number of people who vote.

I do agree though, health care data handling is probably too niche to get people diselected, most voters are going to be more woried about other issues.


A popular vote has been held. People who don’t vote are by definition not part of the popular vote.


Which US President was elected by the population? As far as I know, they were all elected by the results submited by the electors of each state, or the selection of the house of representatives (or through succession after a vacancy of the office).

Pretending there was a popular vote when there wasn't is like claiming whichever team scored the most points during a series of games won the series dispite the fact that the series is decided based on which team won the most individual games (although some tournaments do include total points scored as a tiebreaker).


You are being overly obtuse. The term popular vote has a clear definition in US presidential politics and the meaning of “won” the popular vote has a clearly defined meaning. That this has no bearing on the outcome of the election is a separate issue but doesn’t diminish in the slightest the meaning of winning the popular vote.


The term may have a clear definition, but the value doesn't mean anything.

Without arguing if it's a good or a bad thing, we do not have a popular vote, and summing the votes of the individual contests is not a meaningful estimation of what the results would be if we did. If someone wants to take the time to make a nuanced estimate, with consideration of how turnout might change and what results we might see, that would make for an interesting discussion, and I'm sure we'd all have fun arguing over the details of the assumptions and the results.


There was a “popular vote”. We know the exact count of who voted, whether the popular vote decided the outcome is completely orthogonal to whether it had an impact doesn’t say that it didn’t exist.

The fact that the popular vote is ignored because of how the system is designed is the entire point.


have you ever been to a post office?


> In most cases you have more leverage over the state via voting and lobbying.

How is this leverage at all? Apple doesn't have my health data. I have a device produced by Apple that allows me to store and share health data conveniently. The state has the unilateral authority to use violence against me. I have very very little leverage on the state vs a company that sells me a glorified filing cabinet.

> The point of gathering all the health data is that it's valuable to provide your health information to other businesses. . . They'll provide an API for third parties to make business decisions about your individual health. There is no way to do this is a privacy-preserving way.

The point is that's valuable to me, the person who the data is about. Apple already has a. privacy preserving model all they to do is follow their current model. Collect all that data for me, the person who the data is about, store it on my device, and allow me, the owner of said data to provide it to whoever I see fit. This allows me to get the best of all worlds. I have this amazing resource that tracks my activity, diet and environmental exposures and various clinical health metrics across many different information streams. If I want to share my workout routine with my insurance company to get a discount I can decide to do that, if I want to show only my doctor i can pull it up during a visit and show him. If I want to share my Xrays or medications with my personal trainer I can likewise make that decision. There is no reason for me to think that Apple will implement an API here for mass data exports because there is no reason too, I can send the data on a case by case basis. And if Apple changes their privacy policy, which I honestly find unlikely, I can delete and walk away.


I also feel the exact opposite, I have almost no personal control over the state. Not to mention the relentless incompetency and bureaucracy of state institutions, which often end up covering up their own mistakes.


It really should be both: (almost) no health data with private entities, as little data as possible with authorities.


Maybe it's the french in my talking, but I really have a hard time trusting anything else than the state to handle health data.

I'm not French, and also feel the same way. It can also due to the fact that is is the center of all the political focus and other stuff. In general US has worse data protection polices than other developed nations (of course still better than country like China).


And state doesn't care about money ? I've heard several places talking about bumping insurance for stuff the moralising politicians find easy to wilify - from stuff like dietary choices and whatever the diet fad seem to be popular (nutrition being the scam that it is basing mandatory public policy on it is ridiculous), over drinking to smoking, illegal drug use (recreational or performance enhancing) etc.

I don't want anyone collecting data on me - I should be in charge of disclosing the information - there is an adage in the PED community - if you mention steroid use to your physician and it gets on your record the next time you brake a bone or catch a cold it's going to be "steroid related". Probably the same shit for rec drugs or regulated nootropics.


> if you mention [X] to your physician and it gets on your record the next time you brake a bone or catch a cold it's going to be "[X] related"

Yeah, and likely they will treat you differently, and not consider that in outcome analysis. If you badger people about [negative health factor] every time they come in, they're not going to come in early, and you're going to blame the resulting poor outcome on the factor, not the behavior induced by the system. /rant.


As a Dane I don’t trust the government with my health data, but I don’t have a choice. Don’t get me wrong, it mostly perfectly safe and well managed, but then a government organisation mail CD-Roms with health data (unencrypted) on 5 million people to the Chinese embassy by mistake. Or the politicians decides that I can have medical help, but I lose all control of any tissue samples taken in the process, they will now be stored forever. I also have to accept that my daughters DNA is now stored by the government, and that’s not comforting in a country where xenophobes have to much power.


I think you're right about all of this! And to add another point, I worry the only people who will have access to this are those who can afford a bunch of health gadgets and a premium primary care provider.

But, at the same time, it's impossible to imagine our government creating such a thing :(


> I worry the only people who will have access to this are those who can afford a bunch of health gadgets and a premium primary care provider.

A new iPhone SE costs $399 unlocked.


That's a lot of money to most people in the world. To my mother it would be 2 months of food.

Even more if taking in consideration planned obsolescence.


To me with my $1700/month health "care" plan its a drop in the bucket.

You have to compare apples to apples. This is the kind of industry where a visit to the ER for a broken arm can and should cost $50K, supposedly.


Tons $100+ iphones on ebay. Apple devices are everywhere now, obviously it's not luxury class.


Totally, but in order to benefit from this system you'd probably also need a connected mattress, watch, maybe a continuous glucose monitor, some sort of workout device, etc.

It adds up. This is a country where half the population earns $40k or less a year.


And it's already a lot compared to most other countries.


Which is peanuts in the overall costs of healthcare. At what point are you given one as part of your welcome kit? There are already health plans in the US that offer fitbits or will subsidize their cost. The game becomes encouraging a healthier lifestyle to help people avoid getting sick or hurt which costs alot less than treating someone once they have developed a full blown disease. It's one place where both the patients' and the insurer's and hospitals' interests are all in line with each other.


> But, at the same time, it's impossible to imagine our government creating such a thing :(

Government institutions created the internet ...


time trusting anything else than the state to handle health data

Why would you trust the state with anything? Didn't the UK govt sell health data to a Google owned company?


> Didn't the UK govt sell health data to a Google owned company?

The 'Google owned company' was given access to more sensitive health records than they should have with a NHS trust and was found to be illegal. [0]

[0] https://www.newscientist.com/article/2139395-google-deepmind...


I don't, but I already have to. They run my life, and in France, my health. And they are not for profit.

I'm all for putting a better system in place, but meanwhile, I'd rather have my health data being in state own institutions that I feed from time to time with my visits, than having an always on monitor that streams directly my life to a for profit company.

But to be honest, I don't want to stream my life to any entity.


On the other hand, I also have a hard time trusting the government with the health data. I would actually prefer a federation of foundations under public law.


As for most things, we probably would be better of with a lot of separated institutions instead of a big centralized governement: one in charge of police, one in charge of health, on in charge of education, one in charge or budget, all of them separated and not governed by one entity at the top.

But that's what we got now, so If I have to chose, I chose the gouvernement. At least in my country: they are paying for health already.


> At least in my country: they are paying for health already.

Assuming that you pay taxes it will be you paying for health care services, albeit indirectly. If you live on government subsidies it is others who pay for your health services. The government is the intermediator between tax payers and beneficiaries.


Of course, I used that phrasing to highlight the fact it causes less conflicts of interests (albeit not none).


The most terrifying words in the English language are: I'm from the government and I'm here to health.


Yeah well, that's maybe an over active imagination. The best healthcare systems in the world (with respect to quality, and quantity of people getting it) are public health systems. So I dunno, I'd rather have the (functioning democratic) government, a body I actually have a stake in be in charge of health as opposed to a body that it's only duty is to it's share holders. As I see it, a governmental body is (should be) something we all have equal share in independent of our financial situation. I'm quite aware to the ways this body could malfunction. But at least we have a moral footing to work against these malfunctions. With a public/private company as long as it makes money, I have no moral grounds to oppose it ruining my and our lives.


In Europe the most terrifying words you can hear are "We're gonna switch to a US style health system."


US has best health care in the world.


Slight correction: the US has the world's best health care that money can buy.


I heard enough about the Amercan health system to be eternally grateful to the one I have in France.

I made my tax declaration this month.

I made it with a smile.


You will say that if you live in the US, try living in some other developed countries with free healthcare, you will change your mind.


For many people, most of wanting to keep their data private is to keep it private FROM the state.


A for-profit company will sell or hand-over data at the government's request anyway. Apple's stance on encryption of phones is nice, but once health data is on a server, nothing matters.

Anything cloud is government property, just like all financial data. Now, if your health data starts in state owned DBs, like say in Germany, there is a fighting chance the data will stay in Germany.

Once it is in a global cloud like AWS, GC, Azure? Any major government has access.

China bought so much data already, and with recent enforcement of their Cybersecurity laws, all data touching their citizens is fair game. Oracle pulled out of China, other like AWS go the route of joint ventures to continue operating.


Apple Health data is stored on the phone only. It would end up in encrypted iCloud backups of the phone, which would put it in the government requesting all your data with a warrant situation. It’s not an easily accessible thing.


Can I haz both plz, state and corps? Kthxby


That concern immediately screams for an "in perpetuity" agreement that can perhaps only be amended (like a constitution or other open source licenses; amended for updating technology etc.) within certain pre-established limits that are hard to circumvent, such as a limitation on the use of health data for profit via insurance. As long as the company agrees to stick to such an agreement for every customer forever, I don't see the problem (unless, of course, they are secretly selling data that you never find out about and can thus never sue them for -- I don't know how likely that is).


I’m conflicted as we are having this exact debate with contract tracing: Apple And Google came with a solution and the french gov chose a completely different one.

TBH can we trust the current gov. to do the right thing:

- In terms of competency: it took how many weeks to come up with an online form to generate a PDF ?. Then their contact tracing app hits all the limitations that motivated Apple and Google to work on an integrated solution, which then again means its effect will be super limited and people just don’t bother installing it.

- in terms of legitimacy: a lot of messaging and decisions caused litteraly hundreds of death for stupid or corrupted reasons. Like delaying lockdown because there wasn’t enough contaminated people. I mean, even at this point wearing a mask in public is still officially touted as some “perhaps you do perhaps you don’t” kind of behavior.

I really wonder if at this point the gov. is as motivated to keep people alive as some of the global companies.


Why would you trust the state either? States aren't exempt from abuses of power or needing to balance a budget.


> you can say that Apple, right now, is in the proper state to do that

I wonder why you say that. Is it because apple has been pushing the "privacy is a right" dialog and that somehow makes apple more trustworthy, right now?

Because I think apple is, right now, playing both sides of the privacy game.

for instance, all the blockers they allow are opt-out rather than opt-in.

Actually all their data choices are opt-out. I think they know statistically that nobody would willingly opt-in, so for business advantage (and fear?) that's what they do.

IHMO any data collected, whether "anonymized" or not, can be used against people and the human race so it should be opt-in. And opt-in should not be cleverly engineered into a faustian bargain.


This is one of the reasons why it’s nice that Apple currently has no access to health data. They might change this is the future, but you can always stop sharing then. (Rather than them saying they’re cool, having your data, and doing something malicious with it later.)


Because their software is not open source and they are very secretive, you have no way to verify that.

No to mention it assumes you would know about their change of heart, which you may not.

Apple said they were not part of any spying program, until it was revealed they were part of PRISM.

They also said their home button had a hardware problem and you had to buy a new phone, when it's been later demonstrated it could be fixed with software.

Everything a company says must be considered marketting until proven otherwise.

It's not specific to Apple, and it's not a moral stand. It's a practical approach to have with every companies since their driver is being profitable.


> Apple also said they were not part of any spying program, until it was revealed they were part of PRISM.

This does not seem like an accurate statement. After the PRISM revelations, which named Apple, Apple said they were unaware of the program and were not giving them access. As far as I know, this is the way things still stand today. The leaks claim access to Apple, Apple says they are not providing access. This may be explained through either party lying, or by the FBI being able to access Apple without their cooperation.

> They also said their home button had a hardware problem and you had to buy a new phone, when it's been later demonstrated it could be fixed with software.

This also seems inaccurate. Apple has never claimed you need to buy a new phone if the home button breaks. The actual issue is that the home button is part of the security system of the phone, runs its own fingerprint detection and is paired with the mainboard, and thus cannot be replaced without updating this pairing, otherwise there would be a trivial security break for the fingerprint protection. As a result, only Apple have the required access to replace the button, and thus third-party replacements are impossible.

As far as I know this is also still the case.


> This does not seem like an accurate statement. After the PRISM revelations, which named Apple, Apple said they were unaware of the program and were not giving them access. As far as I know, this is the way things still stand today. The leaks claim access to Apple, Apple says they are not providing access. This may be explained through either party lying, or by the FBI being able to access Apple without their cooperation

Of course, gag orders (and PR common sense), prevent them from giving you this information.

But given what we know about the NSA and the context around it, I'm enclined to trust The Guardian and Snowden about it.

> This also seems inaccurate. Apple has never claimed you need to buy a new phone if the home button breaks. The actual issue is that the home button is part of the security system of the phone, runs its own fingerprint detection and is paired with the mainboard, and thus cannot be replaced without updating this pairing, otherwise there would be a trivial security break for the fingerprint protection. As a result, only Apple have the required access to replace the button, and thus third-party replacements are impossible.

No, the failure I'm refering to is of the iPhone 4 home button, which didn't have a fingerprint sensor yet.


> But given what we know about the NSA and the context around it, I'm enclined to trust The Guardian and Snowden about it.

None of my options suggested above required not trusting them. Either Apple lies about cooperating, the FBI lies about having access, or the FBI has access without Apple's knowledge.

Anyway, their statements on the matter go much further than what a gag order would require.


Dang, I'm keen to understand the process here on HN because I can see my reply is hidden, not flagged. It is only visible to me when I am logged in. Where can I read about your framework that you use to make decisions like this?


You're shadowbanned, usually because people have flagged your comments as nonconstructive in the past, and although I would personally think your other one is a bit ranty it's probably not worth being flagged, so I vouched for that one and this. If you're seeing this consistently I would email the moderators at [email protected]; they'll be able to help.


> You're shadowbanned

saagarjha and dang - please could you give an answer to my previous question?


> You're shadowbanned

@dang @saagarjha - Does this mean all my comments will keep getting banned? I just wrote a comment, and it is blocked again. Where can I read the rules/process on shadowbanning? I am committed to trying to tone down my replies and focus on being accepting of others' realities, and being constructive.


Thanks


> and thus cannot be replaced without updating this pairing

Congrats, you've successfully swallowed both the marketing of Apple the corporation, and the marketing of the 'benevolent' rentier hacker empire that is America! [1]

I believe PRISM, Crypto AG, Dual_EC_DRBG, Intel Management Engine, etc. are just the tip of the iceberg. I think we're only just now starting to understand the massive impacts of the continued existence of these backdoors. The immense covert power the NSA has had since the beginning of the digital age (and in the case of the CIA-owned Crypto AG, even long before [2]), most of these powers it has actually been able to keep post-Snowden. Have you heard of the United States Foreign Intelligence Surveillance Court, which Snowden revealed is used extensively by the NSA [3]? If yes, then you know that it is undemocratic, yes? We cannot have courts that are closed, and at the same time call ourselves a democratic country. That is Doublespeak.

Is it strange that many are starting to see the US as essentially the biggest propaganda machine in our new hyperconnected digital world? That it is selling the wasteful consumerist nuclear family way of life, plundering the commons, while at the same time being a militant (military industrial complex) hypocritical rogue agent through parasitical corporate neo-colonial practices [4]?

How many times do these things need to happen for us to start believing it?

Fuck Captain America. Fuck Hollywood. Fuck the NSA powered US empire. Fuck the corporate charter.

I am talking about the power we humans have given to these ideas. I mean the people in them no harm. I am campaigning for us to collectively transcend these ideas and to stop destroying our earth's capacity to support humanity. The idea of America, the NSA etc. are in actual fact metaphysical power systems that do violence to hundreds of millions of people, daily [5]. The sooner we dismantle the current racist systems [6], especially black-box surveillance apparatus, and shift away from Platform Surveillance Capitalism and move towards Protocol Cooperativism, the better. We can do this using technologies like Ceptr and the Holographic chain pattern/framework by the MetaCurrency Project (an agent-centric Ruby on Rails-type framework for distributed networking applications, built using ideas from Git and BitTorrent)[7].

I believe Commons based peer production (instead of firm production) has to be our future. For beautiful visions I often turn to the works of Kevin Carson, Arthur Brock and Eric Harris-Braun.

[1] https://www.resilience.org/stories/2017-08-03/book-day-corru...

[2] https://www.npr.org/2020/03/05/812499752/uncovering-the-cias...

[3] https://theintercept.com/2019/10/10/fbi-nsa-mass-surveillanc...

[4] https://www.youtube.com/watch?v=btF6nKHo2i0

[5] http://www.openculture.com/2017/11/carl-jung-psychoanalyzes-...

[6] https://lareviewofbooks.org/article/banking-against-black-ca...

[7] https://medium.com/holochain/holochain-reinventing-applicati...


For people who innately distrust the state's competence, maybe it's more appealing.


Mentions in the middle Google also doing this a much bigger instl base then just ignores it. Also more specialist devices justs asks for all data that Apple or Google has in the health apps so how is this a moat?


All valid complaints. However when you look at how doctors deal with data and information tech they seem unable to innovate in that space. No medical establishment has the capability to make something like what Apple is doing. It just doesn't exist in that intellectual DNA. Furthermore, in my experience doctors are terrified of tech. They fear being replaced for some reason. I've seen it over and over.

(full disclosure, I've been working the the health sector for a while making new applications using Apple's HealthKit.)


> Maybe it's the french in my talking,

That's a very April 1940 French perspective


So do you think the machines in the hospital are running US-os?


No, and they are very insecure. It's real problem.

But they are not meant to be connected to a home base.

I don't carry them with me all the time, while they are measuring and streaming metrics about my life.


It they just put commercial details follow up data + some stats in there, it's ok.

It is very infrequently updated, integrity is not at too much risk. In case it's lost, business is not impacted too hard as long as you can find contact details eslewhere.

But the replication story is good, and if they got tons of different schemas, it will make their life easier.

So yes, for transactions it would be bad, but maybe for this particular use case, it's ok.


Agreed. Before that, you had to choose between exceptional graphics and short loading times.

Now they can do both.

I mean, it's nice, but it's not really revolutionary.

It's a welcome incremental improvement, at best.

But the PR machine worked really well.


The alternative is to not be in China at all.

The problem with that of course, if that the softwares that do comply will suddently win an unfair market advantage against the ones taking a moral stand.


There is an argument that where China is blocking market access, the West should reciprocate.

If Zoom is a Chinese company with just a registered US office as has been suggested, then it would appear to be an attempt to circumvent that.


> There is an argument that where China is blocking market access, the West should reciprocate.

Faire point. But what I'm expecting that we already do it: we probably ask for modifications in their software as well, it's not not something we talk about.

> If Zoom is a Chinese company with just a registered US office as has been suggested, then it would appear to be an attempt to circumvent that.

I would think it's more of a PR move. WeChat has such a reputation it would never make it into the west.


>There is an argument that where China is blocking market access, the West should reciprocate.

I'm not sure following local laws is considered as protectionism if the same standard is applied to local companies. Blocking market access would be applying unequal standards depending on origin (which I don't allege that they don't do - but for this particular case it doesn't look like they do).


This. Google does this for a long time while competitors don't do this but weirdly Google isn't praised well in HN or other places.


Google's history here isn't so clean.

They spun backing out of China as something they did in the interest of free speech, but it was more a response to them getting hacked by the CCP (it's still not clear what was stolen, but something big happened).

More recently they were trying to re-enter the space with a search engine designed to fully comply with the CCP's censorship laws: https://en.wikipedia.org/wiki/Dragonfly_(search_engine)

It's unclear what caused that to get shut down, but its leak and subsequent public pressure was probably a factor.


I hope not.

I really don't want Rust to be crippled with a 1000 of DSL just because devs could write them easily.


The more I meditate (13 years now), and the more 1/5/6 seem to be yes/no/yes. It is congruent with many meditators exerience and teaching, which of course could be influencing this conclusion, not to mention it's not measurable nor objective.

I'm not sure 2/3 are something we can ever answer.

And that spawns many interesting questions about the physical characteristics of cousciousness. Does it start and end? It is present spacially? If you don't need thought, do you need the brain to be conscious? Do you need neurons? Can something without it be conscious? Is there only one form of consciouness? Is it persistent? Is it a whole? It is homogenous? Is it something in itself, or an emerging phenomena? Does it have a support, or is it a support in itself?

Unfortunatly, people tend to immediatly reach for spiritual, religious or mystical answers to those.


what do you make of the confessions of sages? respectfully: perhaps, do you prefer to stick to what can be understood from direct experience?

i personally can’t help but wonder how it is that many sages in different times and places seem to arrive at corroboratory confessions of what they’ve experienced as the ground of being.


This is not what this article is about.

The surprising conclusion of the article is that on a realistic scenario, the async web frameworks will ouput less requests/sec than the sync ones.

I'm very familiar with Python concurrency paradigms, and I wasn't expecting that at all.

Add to that zzzeek's article (the guy wrote SQLA...) stating async is also slower for db access, this makes async less and less appealing, given the additional complexity it adds.

Now appart from doing a crawler, or needing to support websockets, I find hard to justify asyncio. In fact, with David Beasley hinting that you probably can get away with spawning a 1000 threads, it raises more doubts.

The whole point of async was that, at least when dealing with a lot of concurrent I/O, it would be a win compared to threads+multiprocessing. If just by cranking the number of sync workers you get better results for less complexity, this is bad.


As far as I can tell, the main cost of threads is 2-4MB of memory usage for stack space, so async allows saving memory by allowing one thread to process more than one task. A big deal if you have a server with 1GB of memory and want to handle 100,000 simultaneous connections, like Erlang was designed for. But if the server has enough memory for as many threads that are needed to cover the number of simultaneous tasks, is there still a benefit?


Now the $1000 question would be, if you pay for the context switching of BOTH threads and asyncio, having 5 processes, which each 20 threads, within each an event loop, what happens?

Is the price of the context switching too high, or are you compensating the weakness of each system, by handling I/O concurrently in async, but smoothing the blocking code outside of the await thanks to threads?

Making a _clean_ benchmark for would it be really hard, though.


Anwsering my own comment cause I can't edit it anymore, but this article has started a heated debate on tweeter.

The author of "black" suggested that the cause of the slow down may be that asyncio actually starved postgres for resources:

https://twitter.com/llanga/status/1271719783080366086


Clearly, they don't play online games with a chat lobby. They would have quickly learned that such features is useless, as it's easily bypassed:

- in novembre, we should cost them the electrons. Ionize!

- It's time we u_nionize

- un10n1z3 people !

- let's fetch the U:\N\I\O\N\I\Z\E file

- all go to http://unio.ni/ze

- so we should do the u-thingy

- what about talking to Mr Ulysse Nionize

- never too late to unᎥonize

In fact, it actually creates a sense of community by fostering a culture, make the movement stronger, and give it more visibility.

I'm assuming on this one that FB employees know this, and are just giving idiots what they ask for.


I've fought this feature in products for years - the product ppl always wanna ban bad words and I'm like - you can't, it literally never works, it just becomes a stupid arms race and it's not worth our time. I always lose this argument for some reason.



Rocket League's approach to this is very good.

The D-pad is bound to several predefined words and phrases that are useful such as "Nice shot!" or "Great pass!". Because of the fast paced nature of the game it's pretty tough to try to abuse this system (maybe by spelling words with the first letters of allowed phrases?) but no one does that.

To appease the folks who wanted to express that they were using a curse word, you can also send "$#@%!". It's really satisfying to be able to express a curse when you accidentally send the ball flying towards your own team's goal, for instance.

Of course they also have straight up text chat where they asterisk out curse words and anything that might look like personal info such as phone numbers. If you're on a console, it's unlikely you even have a keyboard hooked up. And the text input system for controllers is just too slow to type anything worthwhile in the limited time you have during goal-replays. Typing anything more than a few words means you're not helping your team which is naturally shamed and can lead to a server kick.

It drastically reduces the toxic bigotry that usually pops up on extremely popular multiplayer games. The only exception is that people sometimes have bigoted usernames which are tougher to censor for the reasons mentioned in the article.

Anyway, while I do think it's an arms race of sorts, Rocket League has gotten about as close to possible to solving the issue.


> That reminds me of Rocket League's approach. The D-pad is bound to several predefined words and phrases that are useful such as "Nice shot!" or "Great pass!". Because of the fast paced nature of the game it's pretty tough to try to abuse this system (maybe by spelling words with the first letters of allowed phrases?) but no one does that.

Dota has that, and it didn't work.

People just used the nice phrases sarcastically, and repeatadly.

When you miss an actions for the 3rd time and your team mate congrats you everytime with a "nice one", it's equally infuruating. Even more, because it cost so little to be an ass.


> People just used the nice phrases sarcastically, and repeatedly.

As an avid player of rocket league, this happens. For example, if one team scores a goal, if they want to be mean they can spam "What a Save!" quick chat. Making fun of the other team for not saving the ball. The same for "Nice Shot!" when the opposing team misses, or "Great Pass!" if the other team makes a bad pass.

But it is still a decent system. People who abuse it are always gonna find ways to abuse things.


Is there a timeout on repetitive chat? In RL you're temporarily blocked from chat after repeating the same phrase three times. Solves the repetition issue.

As for sarcasm, yeah that can be used to harass people but only mildly. I consider that about the least toxic possible form of chat in a competitive video game where people want to engage.

If someone hits the ball into their own goal at least someone from the team that got the goal will say "Nice shot!" sarcastically. Mildly toxic but everyone's done it at least once before and so there's usually someone else chiming in with "No problem." Ultimately works out really well. Sometimes people quit but it's rare and it's usually due to embarrassment than anger.

Edit: just to be clear, I agree with the premise that it's an unsolvable arms race with the community. I just meant to say that RL's implementation was pretty good considering that fact.


It's not about repetitive chat in that game. The community always adopts certain phrases that are there to signal that somebody sucks. I've yet to play an online game where people compete and this doesn't happen. Even the most innocent words and phrases work for this.

People focus too much on the specific words used. That's not what hurts. What hurts is the intent behind the words.


Eggplant emoji.


well, it's different games, in dota (relatively to RL) your teammates have all the time in the world to harass you.


> Rocket League has gotten about as close to possible to solving the issue.

To be fair, it was Tribes that solved that issue, and Rocket League just implemented it.


I was just about to post this! It's such a good set of examples.


Ha, that's pretty great.


In apps targeted to kids I've found it to be often a useful deterrent. And can even shift the culture a bit; it makes it very clear what is "ok" and what is not.


Yes because kids don't have a strong opinion on anything, so as long as you don't prevent them to have fun, they won't try to find work around.

Try the same a few years later, with teens, and it's a whole different story.


It's like the button at traffic lights that does nothing: it's not about actually working, it's about giving the user a feeling of control.


And gradually you learn to stop pushing the button. Then when you are in a new neighbourhood you wonder why the green never comes. That's learned helplessness. You have been taught that any control was illusory and that nothing you do helps, so you don't even try.


So it does something.

When you push it, the electrical signal goes from finger to brain, inducing a change, instead from button to traffic light.



Waiting for the western version of this https://en.wikipedia.org/wiki/Baidu_10_Mythical_Creatures


Somewhat similar. I used to moderate a web forum and last summer I met someone from Scunthorpe. He said "yeah, its a small town, you've probably never heard of it." But I HAD heard of it because when I used to moderate that forum, we had someone from Scunthorpe sign up and the site blocked them for profanity. It was because their name contained the word "cunt". I've always found this funny and will remember Scunthorpe forever.


It's in the Big List of Nauthy Strings for this reason:

https://github.com/minimaxir/big-list-of-naughty-strings/blo...


It's the same thing fb does to avoid ad-blockers, though of course it's easier to evade than detect it


Or you could get round the block by just spelling the word correctly.


That's incredibly naive.


Facebook has one of the strongest AI research groups in the world led by Yann LeCun. They could build models that are quick good at finding all of these and similar versions.

And it doesn't need to be perfect. If you're an employee who may face severe repercussions if you mention unions, are you going to risk your job based on whether the filter catches your post?


The best AI in the world cannot currently understand the political and cultural context. Make up a slang and you win.

But the cost to process every single message with a powerful AI just to censor bad words would be way too much.

> And it doesn't need to be perfect. If you're an employee who may face severe repercussions if you mention unions, are you going to risk your job based on whether the filter catches your post?

You are conflating censoring and detecting. This is en different matter entirely which would necessitate a whole new debate.


The author of Pyinfra is just a dev like you and me working on a side project.

There is no relationship between pyinfra, pipenv and pip.

There is not even a relationship between pip and pipenv, they are completly different teams.

In fact, none of those projects are maintained by the Python core team or part of the Python project. Not even pip, which is separated from Python and provided using get-pip.py at install.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: