HNHacker News
TopNewBestAskShowJobs

patrickg

774 karma · joined January 1, 2010

https://www.speedata.de
submissionscomments
patrickg··on Benchmarking Automatic Typesetting Systems
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.

patrickg··on Benchmarking Automatic Typesetting Systems
Correct, I rarely submit something, I wasn't aware that I don't have to fill in all fields.
patrickg··on Benchmarking Automatic Typesetting Systems
I benchmark six different typesetting systems, typst ist by far the fastest. This article describes why the speedata Publisher is still my choice for producing product catalogs.
patrickg··on Learn LaTeX in 30 Minutes
LuaHBTeX support has improved in the current version (next year's TeX-live), for example support for subsetting fonts.
patrickg··on Learn LaTeX in 30 Minutes
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. )

patrickg··on Learn LaTeX in 30 Minutes
(Author of speedata Publisher here)

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

patrickg··on Unit Testing PDF Generation
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)

patrickg··on I hate LaTeX, I love LaTeX
In which sense “better output quality”?
patrickg··on I hate LaTeX, I love LaTeX
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)

patrickg··on Making Open Source economy more viable with dual license collectives
Did you try to enforce the AGPL somehow? In the sense that the user that puts it on a (web)server must provide the end user the source code? (The 'A' in AGPL).
patrickg··on Svgrepo: Browse SVG vectors and icons
https://openclipart.org is (somewhat) back. I think this was better browsable and searchable in the past. At least there is some contents available.

These pages are really valuable.

patrickg··on Distributing Mac apps outside the App Store, a quick start guide
There is osxcross: https://github.com/tpoechtrager/osxcross
patrickg··on Creating a QR Code step by step
I have written a QR encoder in Lua and documented it a bit. Perhaps this goes into the direction?

http://speedata.github.io/luaqrcode/docs/qrencode.html

patrickg··on Ask HN: Dear open source devs how do you sustain yourself
I started with a closed source software but I opened it shortly after. So I didn't start with this in my mind, but since I love open source software, I had the feeling that I should open it and try my luck. I love the idea of the GNU projet.
patrickg··on Ask HN: Dear open source devs how do you sustain yourself
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!

patrickg··on ePub 3.2
Changelog to 3.0.1 here: https://www.w3.org/publishing/epub32/epub-changes.html
patrickg··on Textadept – A fast, minimalist, and extensible cross-platform text editor
No official support for Mac yet... Interesting anyways, thanks
patrickg··on Textadept – A fast, minimalist, and extensible cross-platform text editor
Data files and source code. Sure I have considered using line wrap, but I don't like it.
patrickg··on Textadept – A fast, minimalist, and extensible cross-platform text editor
Yes, I've had an exchange with the author about this, and he said, it might be possible to tweak this, but his is buried in some obsucure configuration.
patrickg··on Textadept – A fast, minimalist, and extensible cross-platform text editor
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.

patrickg··on Amazon Go
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).
patrickg··on Amazon Go
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.

patrickg··on LuaTeX 1.0.0
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.
patrickg··on LuaTeX 1.0.0
(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.

patrickg··on LuaTeX 1.0.0
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).

patrickg··on LuaTeX 1.0.0
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.

patrickg··on LuaTeX 1.0.0
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.
patrickg··on Show HN: Smartmockups – Create product screenshots with just a few clicks
I like the German word "Klapprechner" (something like "foldable computer").
patrickg··on Show HN: Go-git – low-level and extensible Git client library in Go
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)

patrickg··on Show HN: Programming in non-English languages
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.
Page 1 of 10Next →