HN user

patrickg

774 karma

https://www.speedata.de

Posts35
Comments296
View on HN
news.speedata.de 5mo ago

Benchmarking Automatic Typesetting Systems

patrickg
20pts5
news.speedata.de 2y ago

Mixing Go and Lua

patrickg
2pts0
www.openculture.com 7y ago

Original Bauhaus Journals for Free: Gropius, Klee, Kandinsky and More

patrickg
126pts15
www.openculture.com 9y ago

Original Bauhaus Journals for Free: Gropius, Klee, Kandinsky and More

patrickg
3pts0
netzpolitik.org 9y ago

TiSA-Leaks: Fundamental rights shall be levered out for free trade

patrickg
4pts0
github.com 9y ago

TeX's hyphenation algorithm in Go

patrickg
1pts0
news.ycombinator.com 9y ago

Ask HN: How can I test binary packages automatically?

patrickg
2pts0
github.com 9y ago

Speedata Publisher examples

patrickg
1pts0
notesofaprogrammer.blogspot.com 10y ago

Bibtex Entries for IETF RFCs and Internet-Drafts

patrickg
1pts0
sublimetext.com 10y ago

Sublimetext new build

patrickg
1pts1
www.xmlprague.cz 10y ago

XML Prague conference

patrickg
2pts0
dymaxion.org 10y ago

Please Stop Writing Secure Messaging Tools

patrickg
6pts0
www.codehaus.org 11y ago

Codehouse is shutting down

patrickg
5pts0
jmoiron.net 11y ago

Crossing Streams: a Love Letter to io.Reader

patrickg
1pts0
news.ycombinator.com 12y ago

Ask HN: State of the art mobile messenger (end to end encryption)

patrickg
9pts2
www.xmlprague.cz 12y ago

XML Conference

patrickg
1pts0
www.macrumors.com 12y ago

Software Allows Hackers to Activate MacBook Webcams Without Green Warning Light

patrickg
2pts1
sarovar.org 12y ago

Pulling Down Sarovar.org

patrickg
3pts0
stackoverflow.com 12y ago

Convert bar graphs into data?

patrickg
1pts0
gcc.gnu.org 12y ago

RFC: Replace Java with Go in default languages

patrickg
136pts15
math.stackexchange.com 12y ago

Why is there no “remainder” in multiplication

patrickg
1pts1
www.daimi.au.dk 12y ago

BETA: OO programming language influenced by simula

patrickg
1pts0
en.wikipedia.org 13y ago

Happy 15th Birthday XML

patrickg
1pts0
archive.xmlprague.cz 13y ago

Xmlprague conference proceedings [pdf]

patrickg
1pts0
speedata.github.com 13y ago

Show HN: A pure Lua QR Code generator (+ documented source)

patrickg
1pts0
code.google.com 13y ago

Barcodes in PostScript

patrickg
1pts0
www.thonky.com 13y ago

Qr code tutorial (lot's of math)

patrickg
2pts0
news.ycombinator.com 14y ago

Ask HN: How to write code that can be taken over by others?

patrickg
4pts8
tex.stackexchange.com 14y ago

Visual debugging in LaTeX

patrickg
4pts0
tex.stackexchange.com 14y ago

A free (non-copyleft) TeX distribution (kerTeX)

patrickg
1pts0

Thank you (author here). I deliberately used the default settings. Typst mentions settings for the line breaking system in the manual (for example you can set the penalties for changing interword spacing between lines), the speedata publisher can switch on margin kerning.

There might be settings to speed up things, so if any of the authors provide me with the settings, I'd be happy to implement those.

LuaHBTeX support has improved in the current version (next year's TeX-live), for example support for subsetting fonts.

I use the standard binary from TeX-live and use the integrated harfbuzz loader, which works like a charm.

The downloadable ZIP is ready to run and does not need any additional libraries. (That said, I include some helpers, for example for https access. )

(Author of speedata Publisher here)

Just a small note: the speedata Publisher ships with a LuaTeX, so you don't need it pre-installed.

This is what I do

I have ca. 190 test cases on which I run my software and compare the md5 sums of the resulting PDF. If they are not the same, I create a PNG for every page and compare visually with imagemagick.

The trick is to remove all random stuff from the PDF (like ID generation or such).

This takes about 3 seconds on the M1 Pro laptop. I think this is very much okay.

Links: https://github.com/speedata/publisher/tree/develop/qa (the tests) https://github.com/speedata/publisher/blob/develop/src/go/sp... (the Go source code for the comparison)

I have a related feeling about TeX. It has superb output quality but the programming is awful. When LuaTeX finally arrived a few years ago, it was possible to do almost everything you have done before in the TeX language (starting with \backslashes) in Lua.

See http://wiki.luatex.org/index.php/TeX_without_TeX for an introduction.

I have (shameless plug) created a database publishing software using this technique (https://github.com/speedata/publisher/). Once in a while I have to use LaTeX and it feels a bit old school to do the macro programming.

My next project is to rewrite the TeX algorithms in Go - see https://github.com/speedata/boxesandglue. Already usable but not TeX like in any way (this is just a library, not a frontend software like TeX)

I give away my database publishing software (https://www.speedata.de/) for free and make a living with offering services (helping companies producing high quality product catalogs and datasheets etc. using the software) Its not much, but I live a happy live.

I spend about 1/2 of the time doing services and 1/2 hacking on the software. Quite often, customers are paying for new features in the software so it is paid hacking. Great!

I really like Lua and hacking things in Lua, so this editor looks like its what I need. But there is one show stopper, that I have no idea how to avoid: scrolling horizontally on my Mac is terrible slow, and I have lots of files with long lines..

The author and the communtity around it is great, all questions that I had have been answered quickly. So every few months or so I download the newest package and look if anyting has changed meanwile.

Amazon Go 10 years ago

But it should be possible to a) use a prepaid credit card or b) pay with good old cash. That way it is still possible to buy without getting tracked (while all the others that don't care use the loyalty card).

Amazon Go 10 years ago

Not many comments about privacy. This is how I see it: You are identified when you enter the shop and amazon knows exactly the products you buy.

If you have the choice to buy or not to buy at the shop, that's fine, it is your decision. But let's imagine that in the not so far future, all shops in your neighborhood are like this. No way to go shopping whithout given exact trace of you, your location, the stuff you buy, the time you buy, the amount of food etc.

We all know that too much data is not good for us (yes, I am looking at you, my government).

While I like the idea of not standing in a line and wait, I really wish that these shops offer a prepaid anonymous card for those who don't want to be totally tracked.

LuaTeX 1.0.0 10 years ago

Short answer: no. In theory, it would be possible to increase the speed, but that would include a rewrite of these two font packages. Fontloading is not necessarily slow in Lua(TeX), but the mentioned luaotfload for example deals with all kinds of complex scripts which is not necessary in most cases.

LuaTeX 1.0.0 10 years ago

(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.

LuaTeX 1.0.0 10 years ago

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).

LuaTeX 1.0.0 10 years ago

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.

LuaTeX 1.0.0 10 years ago

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.