Better HN
topnewbestaskshowjobs
Log inSign up

bitdizzy

276 karma · joined Jun 19, 2020 (6y ago) · 134 submissions

[ my public key: https://keybase.io/bitdizzy; my proof: https://keybase.io/bitdizzy/sigs/CWf8_sulAck0EfbU3JHdemp3iO1gV6L0pSGaK69XGNQ ]
Submissions

comment 6y ago · link · parent

Mentioned in the PDF I linked to :) And lambda calculus came decades before still.

comment 6y ago · link · parent

While Haskell has a lot of influence from ML it is also a descendant of the highly influential line of programming languages designed by David Turner starting with SASL. If Miranda weren't a closed source language it perhaps would be what all of us are talking about now.

Some History of Functional Programming Languages (David Turner) https://www.cs.kent.ac.uk/people/staff/dat/tfp12/tfp12.pdf

comment 6y ago · link · parent

I enjoyed how scared I felt in Amnesia until the first time I died and reloaded. After that the edge was gone.

comment 6y ago · link · parent

Lovely! I think it speaks to the value of an idea that it is developed independently more than once.

It should be noted as it is in the abstract of your first reference that these are elaborations on the core idea of Church encodings (and Boehm-Berarducci encodings).

comment 6y ago · link · parent

My favorite solution to the expression problem is the tagless-final style. It can be implemented in both ML-likes and Haskell-likes leveraging either expressive module systems or type class systems to combine the benefits of both shallow and deep embedding of DSL's. It requires one to bend their mind to really understand but once it clicks it is extremely powerful. Perhaps that "click" is the mind snapping once sufficiently bent.

http://okmij.org/ftp/tagless-final/

"The so-called ``tagless-final'' style is a method of embedding domain-specific languages (DSLs) in a typed functional host language such as Haskell, OCaml, Scala or Coq. It is an alternative to the more familiar embedding as a (generalized) algebraic data type. It is centered around interpreters: Evaluator, compiler, partial evaluator, pretty-printer, multi-pass optimizer are all interpreters of DSL expressions. Doing a tagless-final embedding is literally writing a denotational semantics for the DSL -- in a host programming language rather than on paper."

comment 6y ago · link · parent

The intervention in the United States was haphazard and underfunded by the government. There was no reason for any business to go bankrupt while a proper lockdown was implemented. Instead there was a spotty, inconsistent response with very little help for people. Like, one 1200 check for people and two loans for businesses?

It was the worst of all worlds and you're blaming it on the wrong people.

comment 6y ago · link · parent

Why, the 5th dimension is your imagination of course!

comment 6y ago · link · parent

The use of marijuana for chemo patients is to manage the extreme nausea that accompanies the treatment. It's not about the munchies per se.

comment 6y ago · link · parent

While a useful metric must be implementable, not every implementable metric is meaningful. Is the metric being discussed here meaningful? What is it useful for?

comment 6y ago · link · parent

While yours are important questions they're somewhat outside of the scope of the topic. The submission is about a measurement of Britain's carbon footprint and the post you were replying to was talking about how that measurement may or may not be particularly helpful.

I don't think it's a particularly good argument that we should accept one method of accounting or another because we like or dislike its policy implications. What is an honest and clear method of accounting in your eyes?

comment 6y ago · link · parent

If the standard of living in the UK depends on imports from countries that heavily emit CO2's, then in what sense has the UK achieved a modern standard of living at a low rate of CO2 emissions?

How did you turn a comment on method of accounting into a screed against "modern standard of living" and for living "one with nature"?

comment 6y ago · link · parent

There was a whole scandal about this, wasn't there?

comment 6y ago · link · parent

I'm not downvoting you. I can't downvote anyone. I don't think I have enough points to downvote. If I didn't want to talk to you I wouldn't be replying!

comment 6y ago · link · parent

> This is the garbage pedantry that I warned you about earlier. I'm choosing the generally accepted academic definition. Hopefully you're not one of those people who can't comprehend "generally accepted" without an expose into axioms and different obscure branches of math.

I think you should look into domain theory it is one of the most celebrated discoveries pertaining to the semantics of functional programming languages. And maybe you'll understand that from a programming point of view, what a function is is much more flexible and subtle than you think.

> Yeah I'm not going to reply to your shit any more. HN really needs to change the policy of not letting parent posters vote others down.

Would it help if I pretended that you downvoted me? Every time I see my imaginary internet points I will subtract 5.

comment 6y ago · link · parent

I don't take wikipedia to be authoritative about anything but I'll bite.

> Functional programming is sometimes treated as synonymous with purely functional programming, a subset of functional programming which treats all functions as deterministic mathematical functions, or pure functions.

Well, obviously in this context the author of the submission wasn't using that definition. So you coming in and dismissing the conversation because sometimes people mean "pure functional programming" when they say "functional programming" is clearly erroneous. I know when people make this conflation, often when they're talking about Haskell. When talking about ML, no one would take that synonym. Context matters.

I just looked, you provided a set theoretic definition of functions, the wikiwand one. You chose a poor definition for the topic at hand. In most mathematical settings it would be a perfectly fine definition, but not here. Context matters.

Here are the problems with it: It assumes an interpretation in sets when there are a plurality of interpretations of functions qua functional programming which are not compatible with set theoretic models. For example, functions in homotopy type theory have higher dimensional structure than just being elements of a set. Functions in domains have more structure than just the extensional mapping from inputs to outputs. Your chosen definition also includes non-computable functions which are simply not admissible in this context.

So your definition is simultaneously too restrictive and too lax.

You seem to be confused by the existence of multiple definitions and how they are appropriate in context.

comment 6y ago · link · parent

You chose a definition among many and then dismissed the submission as "confused" because it does not meet your definition.

I noted that your definition would preclude ML functions from being called functions. Your response was that ML wasn't purely functional, but that doesn't make it not functional. The pure in "pure functional" doesn't "to the exclusion of non-functional", it is simply a narrower category.

Considering that ML is one of the most impactful functional programming languages both in theory and practice, I think it's right to call that absurd and dogmatic. If you take it as a personal attack that I called your argument absurd, I don't know what to say. Maybe grow a little bit of skin?

> You on the other hand... haven't even stated your definition yet.

I don't need to provide a definition to find a flaw in yours. I did not come into this submission looking to smugly dismiss the topic at hand with my obviously irrelevant preferences for terminology. You did.

comment 6y ago · link · parent

If you decide to dismiss a position by saying that it chose the wrong definition, you're not contributing anything useful. "Pure" functional programming is not more functional programming than "Functional programming", the adjective specializes it and makes it more narrow. I don't really care what a wiki article says. I can run a survey of my colleagues if you want?

As for calling me a junior, well, you don't know how much experience I have, do you? It's probably more than you, though. I've used and participated in the development of functional programming languages for over a decade at this point.

Unsolicited advice: Sophomoric pedantry isn't a good look.

comment 6y ago · link · parent

That is a very interesting claim on their part considering that they hold the private PGP keys used by their service. I'll have to figure out what they mean by this.

Edit: Ok I see. They store the PGP keys encrypted with your password. Like you said, they could just as well inject javascript to phish your password from your session.

But this does seem to mean that if one uses their API directly it would be possible to securely use their service. Thanks for the heads up. There is a third party open source bridge that reverse engineers their API. I think I will look into it to see how authentication is done.

https://github.com/emersion/hydroxide

comment 6y ago · link · parent

> No I'm using the mathematical definition of a function.

Which mathematical definition? A "box" is not a mathematical definition. There are multiple mathematically precise definitions of "function" possible. Yours is none of them. Some of them accommodate objects that model mutable state.

I don't think many (any?) PL theorists or functional programming practitioners would agree with your dogmatic stance. Where are you coming from with all this?

comment 6y ago · link · parent

You're making an argument from definitions that would exclude ML from being a functional language, which is absurd.

comment 6y ago · link · parent

> The problem is that ProtonMail could violate your privacy by sending you Javascript that gave them your keys and you'd never know about it.

I think we don't agree on how proton mail works. As I understand it, they already have my keys. You can't even give them just a subkey, it only works if you upload a set of PGP keys including the master secret key. What is your understanding of how it works?

As for your other concerns, unless I am conversing only with myself, the attack vector for my data is the entire e-mail ecosystem. Even if I only talk to people who use encrypted email, they are also part of my threat model, even if I don't trust a provider with my keypair. e-mail is simply not secure. It wasn't meant to be secure; security cannot be bolted on top.

What is your threat model and how do other providers or self hosting achieve your desired level of security?

comment 6y ago · link · parent

To be clear, I am connected enough to security-conscious social media that I think I would hear about it if someone found it out. I agree with you that someone who isn't at least a little bit diligent would miss news like this.

Let me also reemphasize that I don't consider email to be a secure or confidential medium of communication at all, even with PGP. I only want that my inbox is not sold to advertisers and the security practices of my provider aren't utter garbage. Maybe the fact that they're in Switzerland helps me in some ways, but if I had a state adversary I wouldn't bet on it.

comment 6y ago · link · parent

PGP isn't any better on the first point and on the second point, I would bet the money in my pocket that GPG (being the most dominant implementation of PGP) is far more complex and bug-ridden than Signal's cryptography or implementation are unsound.

comment 6y ago · link · parent

I use proton mail just for the privacy guarantees enforced by social pressure on their brand. They hold your PGP keys (you can't give them a subkey of your own private master key) so there's no reasonable security there. In general, I don't think PGP encrypted emails provide much security anyway. If I need to send a message securely, something like Signal provides better cryptographic properties like forward secrecy.

All I know is, I would hear about it very quickly as soon as Proton Mail is discovered to violate my privacy, and that's all I can expect of email. To be honest, the fact that their API is not open sourced and I have to use their web client or mediocre IMAP bridge would make me seek alternatives if I were to reconsider email providers. It would have to be one that has as strong of a privacy-conscious brand, or self-hosting.

comment 6y ago · link · parent

What is RoW?

comment 6y ago · link · parent

Microwaving frozen bread slices for 30-60 seconds (depends on how much bread and how powerful your microwave is) works like a charm too.

comment 6y ago · link · parent

This language of matching brackets is also called the Dyck language and its syntactic monoid is the bicyclic semigroup, which is an interesting example of an inverse semigroup. Edward Kmett gave a talk on programming with these sorts of algebraic structures that some might find illuminating: https://www.youtube.com/watch?v=HGi5AxmQUwU

Inverse semigroups are used in the geometry of interaction to give a parallelizable interpretation of lambda calculus. I don't have a great introductory reference. Here's some people who have implemented a system based on the theory: https://www.cambridge.org/core/journals/mathematical-structu...

Sorry for the citation dump, I'm short on time and I thought they would be interesting to those who found this submission interesting.

References

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

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

118.

A Mathematician’s Manifesto for Rethinking Gender (Book Review)(nytimes.com ↗)

2 points · by bitdizzy · 6y ago · discuss

comment 6y ago · link · parent

> Astute observers will see some parallels with other groups.

I'm a little naive and curious about this. The examples that come to mind are HR departments I've worked with. What were you thinking of?

comment 6y ago · link · parent

I should have demonstrated my picks. I didn't just look for citation but also looked for at least some nontrivial review of the results of the paper^.

I pick these two papers. The first is literally about adjunctions pertaining to combinatorial species whereas the second devotes an entire section to reviewing the theory and stating results that it uses in a way that I don't really understand. I'm going to read the first paper though because it's relevant to my interests :)

Rajan. The adjoints to the derivative functor on species

https://www.sciencedirect.com/science/article/pii/0097316593...

Panagiotou, Konstantinos; Stufler, Benedikt; Weller, Kerstin. Scaling limits of random graphs from subcritical classes.

https://projecteuclid.org/euclid.aop/1474462098

The fact that I have to go rummaging around for these examples kind of proves your point, doesn't it? I don't think category theory will lead to any fantastic new results in the fields we're discussing, but the bar is quite low for it to be useful as an organizational tool.

^ I searched for the word functor of course! :)

12345