Better HN
topnewbestaskshowjobs
Log inSign up

patrickg

779 karma · joined Jan 1, 2010 (16y ago) · 336 submissions

https://www.speedata.de
Submissions

comment 10y ago · link · parent

(Lua)TeX only renders PDF and only on disc. The great typesetting (especially the math formulae) would make it feasible for such a job.

Depending on your need, LuaTeX can be quite fast. I have a project where I use a non-optimized version of LuaTeX to have a 'live' preview of a web form. It takes less than 1/2 second to run LuaTeX, generate a bitmap from the PDF and push it to the user. In most cases this will be too slow, but for me this was a good solution.

comment 10y ago · link · parent

No, TeX is not a compiler by a common sense of a compiler (unless you say it compiles to PDF).

TeX's input grammer can change during the TeX run, so I believe it is impossible to make an equivalent of LLVM (unless I misunderstand the concept of LLVM).

comment 10y ago · link · parent

LuaTeX has a great abilitiy compared to regular TeX: you are able to access the internal data structures of TeX. See my article about TeX without \TeX at http://wiki.luatex.org/index.php/TeX_without_TeX.

With this access you can read and write (and create,...) these "nodes". This makes it possible to completely circumvent TeX's input language, which can be a pain to program with (sometimes it is very nice though). Now that easy access to data structures and the rather nice (simple) programming language of Lua makes it easy to build rather complex programs on top of TeX.

A shameless plug is my database Publishing software (see https://speedata.github.io/publisher/index.html) which I believe takes this approach to an extreme: I can use TeX's algorithms like paragraph building, hyphenation, PDF writing and such (they are of excellent quality) and build my own software around it. I don't say that this is done on a weekend or so, but the posibilities are much, much, much greater than they were before LuaTeX was available.

comment 10y ago · link · parent

LuaTeX _is_ very fast. What makes it slow is luaotfload and fontspec (with LaTeX). LuaJITTeX is improving much, but a lot needs to be done on the two mentioned packages.

35.

TeX's hyphenation algorithm in Go(github.com ↗)

1 points · by patrickg · 10y ago · discuss

36.

Ask HN: How can I test binary packages automatically?

2 points · by patrickg · 10y ago · discuss

37.

Speedata Publisher examples(github.com ↗)

1 points · by patrickg · 10y ago · discuss

comment 10y ago · link · parent

I like the German word "Klapprechner" (something like "foldable computer").

comment 10y ago · link · parent

Shameless plug: https://github.com/speedata/gogit (I use that one with a 300 Gig repository)

Edit: this is the backend used in https://ctanmirror.speedata.de/ a "travel back in time" archive of CTAN (back to 2013-03-17, IIRC)

40.

Bibtex Entries for IETF RFCs and Internet-Drafts(notesofaprogrammer.blogspot.com ↗)

1 points · by patrickg · 10y ago · discuss

41.

Sublimetext new build(sublimetext.com ↗)

1 points · by patrickg · 10y ago · 1 comment

42.

XML Prague conference(xmlprague.cz ↗)

2 points · by patrickg · 10y ago · discuss

43.

Please Stop Writing Secure Messaging Tools(dymaxion.org ↗)

6 points · by patrickg · 11y ago · discuss

comment 11y ago · link · parent

You did read that I was talking about an 8 year old kid who is learning the words "clothes" and "red" in school? Still a few years to go to ask for and look for programming help in English.

comment 11y ago · link · parent

While I agree to the use case / tiny arguments, it doesn't seem to work in practice. I am now using Scratch (https://scratch.mit.edu/) to teach programming. Much better.

comment 11y ago · link · parent

Teaching programming to my 8 year old is a burden, because everything is in English. Teaching two things at a time is more difficult than it has to be.

comment 11y ago · link · parent

My database publishing system's programming language is both English and German. While programmers usually prefer the English interface, a rather large percentage of my users prefer the German one. (en: https://speedata.github.io/publisher/manual/index.html, de: https://speedata.github.io/publisher/manual/index-de.html)

There is also for example ConTeXt (http://wiki.contextgarden.net) - a typesetting language similar to LaTeX, which supports commands in English, Dutch and German.

comment 11y ago · link · parent

NV and nvALT were such a gereat push in note taking. My first note is now five years old. Before that, I have used a plain text file for everything.

I really like the hyperlinks and full text search in nvALT.

comment 11y ago · link · parent

I don't comment on the Kanzlerakte, it's obvious fake.

US barracks are not extraterritoriality zones, please cite your claim.

"US soldiers are not under German jurisdiction", this is only partly true. It's part of the "NATO-Truppenstatut". With Art. 19 Abs. 3 Satz 1 ZA (Zusatzabkommen) the foreign soldiers are part of German jurisdiction.

Again, please cite your claims.

comment 11y ago · link · parent

Please give a reliable source for your claims.

We have peace now since more than a few decades. It doesn't need a signed peace treaty to have peace in a country.

The 2+4 contract has explicitly stopped the allied control.

comment 11y ago · link · parent

Linked lists and arrays / slices are two totally different data structures with different applications: Removing objects from (anything but the end of) arrays / slices is expensive. If this is a common operation, linked list might be prefarable. This is not a language issue. At my day job, I manipulate lists a lot, this would not be faesable at all with arrays/slices.

Edit: this is a simplified, but typical example of my problem space: http://tex.stackexchange.com/a/233489/243 Traversing a list and manipulate the list entries by adding other items to the list.

52.

Codehouse is shutting down(codehaus.org ↗)

5 points · by patrickg · 11y ago · discuss

comment 11y ago · link · parent

Is the design of the playing cards open? I am always looking for nice demos for our open source database publishing software, which does handle cmyk + spotcolors etc. (https://speedata.github.io/publisher/index.html)

comment 12y ago · link · parent

I can't answer the question but anyway:

None of my customers have ever asked for that. I have not seen a printing house that demands XPS. So I doubt that it plays any role in the market (Germany here).

comment 12y ago · link · parent

Actually the XML part is the one that maps best to the problem space. I deal with structured documents (such as part/title/paragraph ... or product group/product/components). The database part (usually Excel sheets or SQL based stores) are the ones that are "insufficient".

comment 12y ago · link · parent

I was a bit unclear. When I get database dumps, I get them as Excel files or as an XML document.

Most of the times the documents I get are hierarchically structured.

Yes, JSON could be fine as well. But it simply lacks a standard toolchain which XSLT ans its ilk proides.

I am not trying to defend XML in any way. I just want to say the two things:

a) my customers never deal with JSON, but often with XML, so JSON (and other formats) are not an issue for me b) There is a very nice toolchain for XML, including formatters, tranformation tools, database publishing tools (my very own: https://speedata.github.io/publisher/index.html) and many others. I have not found such a toolchain for other formats.

comment 12y ago · link · parent

I am working for many years in the publishing business (dealing with structured documents, product data etc.). I can tell you, that all of my customers are more open XML than any other document formats (there exist none as suitable for the job).

You can call me clueless or dishonest, I don't care. I can only share my experience with the topic. You don't have to believe me.

comment 12y ago · link · parent

apples and oranges? There is no other way of encoding structured documents these days than XML. Like it or not, XML is the de facto standard for data exchange (export from databases, product information software,....)

XML might be overengeneered (which, except for a few things I don't agree with), but there is currently no alternative for it.

comment 12y ago · link · parent

+1 - I have to deal with structured documents encoded in XML on a daily base, and most of the time there is no other tool for me than to write an XSLT stylesheet.

I really like the computational model of XSLT (push vs. pull), it is so elegant. But it takes a quite some time to fully understand what is going on.

What I think is bad, is that the infrastructure for XSLT is not perferct. There is only one good XSLT 2 processor that I know of, everything else is XSLT 1.

I am currently eliminating some XSLT scripts with custom (Go) programs, because of speed issues.

12345
12