HNHacker News
TopNewBestAskShowJobs

DemocracyFTW

161 karma · joined January 10, 2021

submissionscomments
DemocracyFTW··on Hong Kong pro-democracy Stand News shuts down after police raid, arrests
> a country thousands of miles away had a temporary foothold on Chinese territory

To effectively argue that "Hong Kong is of course part of China because it's right next to it on the map" opens the gates to all kinds of jingoism. Just for the record, to me the Falkland war was a war between two imperialist countries. Contrary to what was popular belief among my peers back in the day, I did not and do not think Argentina has more rights to the Falklands than the UK just because it's "right next to it" and not "thousands of miles away" like the UK.

China is always adamant that this or that region is "a natural part of China". For some reason people have to come to accept the state of affairs regarding Xinjiang, Tibet, the Spratly Islands. If they don't change their minds then there will be no stopping the fascist juggernaut. Mongolia, parts of northern India, Taiwan and Vietnam are to China what Belgium, Poland and so on were to the Germans in 1939.

DemocracyFTW··on Nicaragua seizes former Taiwan embassy to give it to China
“The arbitrary imprisonment of nearly 40 opposition figures since May, including seven potential presidential candidates, and the blocking of political parties from participation rigged the outcome well before election day,” U.S. President Joe Biden said in a statement in November.

"Von der Sovietunion lernen heißt siegen lernen."

DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
This doesn't sound right. First of all, I'm not complaining about TeX being Turing-complete, what I'm saying is the syntax is unnecessarily hairy because TeX's syntax is Turing complete, meaning there is no static grammar production that would allow you to recognize all the macros / commands / 'active' content parts in a given document—you have to typeset (compile) it, only then you can know. Nothing is gained by this, not in theory and not in practice; it's just a burden.

To say that "HTML is not Turing-complete, therefore CSS as a separate language is required" is not even wrong and I leave it to the readers to fill out the blanks.

To say that "HTML is not Turing-complete, therefore JavaScript as a separate language is required" is more or less correct although to be fair we've seen many, many features such as animation being absorbed by declarative CSS that had to be implemented in imperative JS so in that regard the need for JS has diminished.

I can say with certainty that a full fledged programming language (i.e. Turing-completeness + usability) is absolutely necessary for a viable solution of document production. And while one can and people do produce TeX and HTML output programmatically, this does not obviate the need for a typesetting engine that can tell you where you are and what the circumstances are while typesetting the document. JavaScript has grown many abilities in this direction, but TeX in comparison is, after almost 45 years in development, still lacking and CLUMSY AS HELL for crying out loud.

Nothing is easy, simple or straightforward in TeX. Numbers are difficult, units are difficult, command syntax is difficult, namespaces are difficult (because there are none), variable names are difficult, conditions are difficult (there are like hundreds of specialized \if s), knowing in which column you are is difficult, fonts are difficult, character encoding is difficult, keeping constant line heights is difficult, positioning floats is difficult, the processing model is difficult, the very syntax is difficult.

I've said it before and I will say it again: TeX is a computational typesetting system, but it turns out it's quite bad at dealing with numbers, strings, and conditions, the basic building blocks of computational typesetting.

TeX is an utterly broken system because every single aspect is a convoluted mess.

It does get a lot of praise for its incorporation of the Knuth-Plass line breaking algorithm, and rightly so. However this beast, too, is hard to handle unless you just go with the defaults. It will happily give you overshooting lines because Knuth decided to have a word jutting out the right margin was a better solution than unsightly spaced words or letters. Most printers would disagree and just bite that bullet where necessary.

Yes, TeX will issue a warning in such cases but this is almost insubstantial because TeX keeps warning you about many, many things in the same output stream as its informative messages. That stream is almost impossible to parse for humans and machines alike. To make it even harder TeX's console output is hardwired to wrap at column 80. Even TeX's error messages are a convoluted mess.

/rant

And to come back to your original question, yes, I do have the strong suspicion that the separation of styling (CSS), content (HTML) and programming proper (JS) into three distinct compartments with differing syntaxes is close to the local optimum that we as people in this time and age can and want to deal with. If anything the syntax of JS and CSS could perhaps be unified (CSS is 90% JavaScript's object literal syntax; it adds selectors, allows hyphens in property names, and has quite a few notational amenities on the right hand side; other than that, it's like object notation). One can also imagine to express CSS in HTML which would be a bit clumsy but still somewhat usable. However, to unify markup syntax with imperative syntax is almost sure to fail. JSP (remember those?) and embedded PHP are two examples for how we do not want things to be. JSX looks a bit more viable. Svelte does this very interesting thing where they have a single file define the markup, the styling, and the behavior in a single file with three distinct parts; to me that looks like the future.

DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
See, that might be cultural background or whatnot, I don't know, but some people find those cartoons to be a nice touch, and they admire the clarity of exposition of The TeXbook.

I'm the proud owner of the entire 6 vol Computers and Typesetting series (of which the former title is vol A), and have worked through sizable portions of those. I also read mot of the 680 pages of Knuth's Digital Typography monograph. I also owned one LaTeX book at some point. I admire the depth of Knuth's knowledge (typographic and otherwise), the sheer diligence, his quest for quality, all of that. Those lion doodles though, the author's urge to land another witty remark, come up with another finely crafted reference, and how he's prone to hint at stuff instead of writing a proper documentation are not aspects of his work that I enjoy.

DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
Every. Damn. Single. Thing. You. Said.
DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
In theory there should be no difference between theory and practice, but in practice there often is. TeX's syntax itself being Turing-complete means you can barely start to do static analysis on the code before hitting a wall you can only get over by installing a huge fraction of the ~1GB download that is TeXLive. "Being theoretically possible" is in no way orthogonal to "impractical in many or most circumstances".
DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
> a community only too willing to tell you how your question is wrong

Been there, experienced that. Like this one poor guy who dared to ask at the TeX.StackOverflow help desk—"what can I do to get this and that vertical line in my table", only to get lectured by one acolyte, "Oh noes, don't, vertical lines bad, only horizontal lines in tables, proven to be the only way to go". Which totally throws centuries of finely typeset mathematical, astronomical and nautical tables out of the window while not answering the question.

To be fair, there are quite a few people on the TeXSO that go to incredible lengths to give extensive answers—expositions really—to hairy questions ('hairy' being a technical term here which translates to 'daily' in the context of TeX).

DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
While we're already using machine learning and neural networks to solve this problem, why not use a blockchain? /s

TeX being "interleaved with natural language" is not at all at the heart of the problem IMO. Every HTML document does so, too. The real problem lies much deeper. TeX uses recursive rewrites of the code that is the document to achieve what it does, without properly keeping track of where it is and what it does. There is no technical necessity for doing so, but the technique introduces huge complexity costs. On a somewhat related note, TeX's syntax at its very heart is also not trivial to parse short of executing (compiling) a given document (i.e. TeX's syntax itself is Turing-complete). This has been done only because the author got carried away by the coolness factor of it. Already a few years after TeX came out, Leslie Lamport implemented LaTeX on top of TeX to make TeX more approachable to less dedicated / insanely gifted users; he chose to dial back on this very aspect—the inscrutable syntax—and proposed a much more regular syntax as a convention.

DemocracyFTW··on LaTeX Cookbook – Collection of LaTeX Recipes
This, totally. Nobody cares—or should be forced to care—whether a given compiler does something in a single or multiple passes, what counts is ergonomics and overall speed. FWIW when I still worked with TeX (XeLaTeX) I soon built my own wrapper for the executable that simply compared the sha1sum of the relevant *.aux file from before with that from after the run and would loop until the checksum wouldn't change any more.
DemocracyFTW··on Step Away from Stack Overflow
I think what the article does get right is a fundamental technique to solve a problem when you're stuck: reduce to the essentials, get your terms / naming things right, write a teeny self-contained thing (I call it 'building a model') to try it out. When the solution is understood and has proven to work, integrate. Especially when you're hard pressed for time, this may prove faster overall than the approach where you fumble with many screws.
DemocracyFTW··on Krita 5.0
"he was an utter asshole" is my take on it. See my earlier comment.
DemocracyFTW··on Krita 5.0
Just read this guy's vita. An entire long life of profit-oriented road rage, always using the law and presumably his connections to go after like everyone else for minor copyright and similar offenses, striving to make this planet a more miserable place for everyone else while raking in for himself. At almost 90 yo he finally got convicted for fraud and rather killed himself instead of going to jail. Not even his high-falutin name is all that real. At some point he tried to get courts deny people the right to even mention the fact that he was not born as a Von And Zu. Christ what an asshole.
DemocracyFTW··on Lapce – Fast and Powerful Code Editor written in Rust
> WASI is compelling to me because of the potential of writing plugins in different programming languages

I think this is the future really, I've been pining for this to become a thing for so long.

DemocracyFTW··on Ideal Monitor Rotation for Programmers
Yeah that's like Louis and the rest of the family pretending to eat and enjoy Stewie's sand cake (complete with plastic toys for decoration): "Mmmh yummie, Stewie is a great cook"
DemocracyFTW··on Lego has designed a set that can't be taken apart
That kind is quite entertaining and you should take him serious. His complaints are as a rule fact-based as he has sets he discusses right in front of him to show and tell. He does highlight what there is to highlight in the products of the involved companies. He is widely famous for this. Since you refuse to talk about his political rants, I will not get started on those either as I have never seen a clip with a political rant from him.

Definitely watch his channel (https://www.youtube.com/results?search_query=held+der+steine top result), also observe he gets quoted quite a bit and has collaborations with other people interested in similar things.

DemocracyFTW··on Lego has designed a set that can't be taken apart
This is wrong, he called himself Held der Steine. To suggest that because a solitary small time shop owner uses a fully generic image of a toy brick will cause the mighty Lego brand to get lost is bizarre. To be sure Lego does not have a copyright, trademark or patent on generic click-to-fit toy bricks and this has been ascertained by a high German court after one decade of strenuous litigation. Lego acts as though they had won that case but the didn't.
DemocracyFTW··on Why WHO skipped 2 Greek letters to name new variant ‘Omicron’
While we are at it, Corona is a common brand name and Kovid is a (given?) name, too.
DemocracyFTW··on Why WHO skipped 2 Greek letters to name new variant ‘Omicron’
I'm sure this has nothing to do with the name of one particularly popular person.
DemocracyFTW··on SQLite Release 3.37.0
came here to say this (approximately)
DemocracyFTW··on Proof of stake is incapable of producing a consensus
That argument could even be somehow valid if it were only possible to demonstrate that these intangibles improve life for people, like contributing to food, housing, education or even only entertainment. They do not. We do not have to care for those who are affluent enough to burn electricity just in order to gamble. Those people have the resources to gamble in less harmful ways without raising electricity prices and polluting the air the way they do. Those people could even do something helpful and productive if they chose to. Cryptomining is wasting energy for the sake of wasting energy. You may argue we (the 99.999% who do not cryptomine) are too stupid to see the value of your imaginary intangibles but that's not true. We are the ones who want no part in a pyramid scheme, who do not want to succumb to gambling, and whose time and money are too scarce and too precious to be put on the line. Sure, all activity has its price, its waste, and sure, there are other occupations whose overall usefulness is doubtful and askew with the accompanying resource consumption. Doesn't mean you have too excuse bad behavior just because there are other guys doing no good.

Just as an aside, when you move a newspaper or a magazine from print to only existing as a web page, you certainly have 'dematerialized' it to a degree. However you still need hardware to keep and display the data and energy to move it around and light up the screens. In so far it does not stop being physical. The 'intangible' is somewhat of a red herring. Yes, it is less haptic, but it's still physics, physical all the way down. Other than that, currencies, freedom, equality, education, entertainment—we've been having intangibles all the time, at least from the dawn of human culture onward. Cryptomining does not bring anything genuinely new to the table in this respect. It's not even new in being a fraudulent, volatile scheme that betrays traits of a cult, one that benefits a few and hurts the many.

DemocracyFTW··on Ask HN: What are the best-designed things you've ever used?
The good ones are quite tiny and make out of a single piece of fiber, at least that's what they look like. All corners are round and there's a floor drain meaning you can make a splash and not worry about it. Their small size makes them ideal for hotel rooms and apartments alike where space is a premium. Since they are prefab you can also put them into the garden as standalone modules which some people prefer.
DemocracyFTW··on NodeOS – A Node.js Operating System
an OS based on WASM could have merit

Came here to say this. Beyond Rust and AssemblyScript, there are quite a few other programming languages that target WASM, meaning that WASM is a good candidate for that holy grail, the unified environment where you can write your stuff in 'any' language and re-use and talk to stuff written in 'any' language without relying on relatively clunky, type-challenged and slow IPC.

DemocracyFTW··on Poster2Plot: Generate Movie/T.V show plot from a poster using Machine Learning
The story of a group of people who are forced to fight for their right to self-determination in the face of oppression and oppression. The film is based on the novel by the same name. The story is set in the 1960s and follows the struggle of the

Impressive seeing as the AI manages to reproduce the same text for any uploaded image.

DemocracyFTW··on Tree Sitter and the Complications of Parsing Languages
It's a bit of a mixed bag and the terminology is difficult to grasp. I'd say Tcl and Bash are languages that only have strings ('stringly typed') that can be interpreted in a number of ways. JavaScript, PHP, and SQLite's SQL OTOH have lots of implicit type coercion---`1` and `'1'` can both act as a string, a number, or a boolean.

Python is considerably more picky in what it allows in which constructs; it does all the numerical typing stuff implicitly (so switching between integer, big int, and float happens most of the time without users even knowing about it), and b/c of backwards compatibility, coercions between numbers and booleans still happen (`True + 1` is still `2` in Python3.9). By extension, this includes empty lists, strings, and dictionaries evaluating to `False` in appropriate contexts.

I believe that in retrospect most of these efforts—coming up with a Just Works arrangement of strategically placed implicit coercions—that so much defined the rise of scripting languages in the 90s are questionable. Subsequently, many millions of USD went into making JavaScript faster than reasonable (on V8) giving its pervasive dynamic nature. Just bolting down types and banning any implicit coercions would have given it similar performance gains with a fraction of effort and a fraction of the resulting complexity. Backward compatibility could have been done with a pragma similar to the existing `'use strict'`.

I guess what I want to say is that strong and loose typing exists on a continuum much like human languages are never just of a single idealized kind.

DemocracyFTW··on Space colonies of the future as imagined by NASA in the 1970s
there's a calculator for that: http://www.artificial-gravity.com/sw/SpinCalc/SpinCalc.htm#c...

From a radius of ~300m onward you'll see green lights (= good for people) for all considered parameters. RPM drops from 1.7 to 0.5 for a radius of 3000m.

DemocracyFTW··on TIL the assumption that string length does not change when upper-cased is false
Very much so. And one may add that the implementation of UAX#11 "East Asian Width"[1] was done in a myopic, backwards-oriented way in that it only distinguishes between multiples 0, 1 and 2 of a 'character cell' (conceptually equivalent to the width one needs in monospace typesetting to fit in a Latin letter). There are many Unicode glyphs that would need 3 or more units to fit into a given text.

* [1] https://www.unicode.org/reports/tr11/tr11-39.html

DemocracyFTW··on TIL the assumption that string length does not change when upper-cased is false
To make things worse (or better), æ, œ, and ß have evolved from ligatures to becoming letters in their own right (a choice that may depend on the language), while fi stayed a ligature. So 'fieß', if there was such a word in German, would count as 4 letters.

Also, talking about 'glyphs', one has to clearly separate between what Unicode encodes and what a given font uses; in the context of fonts, 'glyphs' are also called 'glyfs' or 'outlines', and any OTF my choose to render any given string with any number of glyfs/outlines, including using a visual ligature to display 'f+i' = fi but doing so by nudging the outlines for f and i closely together.

DemocracyFTW··on TIL the assumption that string length does not change when upper-cased is false
"symbols in Hindi which are not characters and can never exist as their own character but when placed next to a character they create a new character"

a.k.a. 'ligatures', as in f+f+i -> U+fb03 'ffi'

DemocracyFTW··on TIL the assumption that string length does not change when upper-cased is false
This could've been a solution but is not what Unicode chose to do (in this particular case). Also relevant: discussion around unifying glyphs like A, B, C, E and so on across Cyrillic, Latin, and Greek, all with their language-specific casing behavior.
DemocracyFTW··on TIL the assumption that string length does not change when upper-cased is false
I think this goes to show that the file system is not the right place to implement natural language handling to its full extent, like it's probably not a good idea to implement time zones as a primitive function in your new programming language.
← PreviousPage 2 of 6Next →