38 karma · joined Mar 2, 2014 (12y ago) · 12 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
You have another value of the same type.
If there exist a function (let's call it "combine") that combines those two values and emits a third value of the same type.
AND
There exists a value of this type that does nothing when used as argument to this "combine" function.
then your type is a monoid. (basically)
comment 9y ago · link · parent
A LaTeX Document will always behave the same whatever its size and content. Whereas word processors may unexpectedly change formatting without anyone noticing, for example in the case where you share a file with someone and this person update the text and sends it back. The text written might not belong to the same formatting family as the rest of the text but shares the same appearance and this change will go unnoticed until the original owner changes the appearance of the formatting family.
Not to mention versionning. Having your thesis in Latex in a git repo will consistently work. Whereas you will struggle sharing a single .docx file across multiple system or even different word versions. And you lose any possibility to roll back, inspect the history or show diffs.
comment 9y ago · link · parent
For example one can contrast languages that choose to have total type inference at the price of some other features.
Typically Idris or Scala do not have complete type inference. But they have other features instead (dependent types/subtyping) Those trade offs make it feel like programming language features are a zero sum game where every feature you choose to have in you language will limit another aspect of it.
5.
Excuse me sir, there is no curry in my java(medium.com ↗)
3 points · by zephyz · 9y ago · discuss
comment 10y ago · link · parent
This whole project seem like a lot of duplicated, wasted (and error prone) work
8.
Ask HN: Get into PLT with no CS degree
5 points · by zephyz · 10y ago · 3 comments
comment 10y ago · link · parent
Thankfully, we have strong smart influencal people taking a stand for us,humans. And we should appreciate that.
And I don't think I'm risking too much by saying that dodging an authoritarian surveillance regime is better for humanity.
Finally, I understand that people dying is scary, but let me put things in perspective for you: Should the death of a finite number of people put at risk 7 billions lives and the lives of their children for centuries?
Edit: few -> finite