Better HN
topnewbestaskshowjobs
Log inSign up

jjjbokma

149 karma · joined Apr 25, 2019 (7y ago) · 204 submissions

Senior Perl programmer learning Python.
Submissions

comment 10mo ago · link · parent

Wow, the 5 seconds one is really fast! My static microblog generator [1] takes 30 seconds to generate 2600+ HTML pages from a single Markdown file (it uses a single Markdown file with additional directives to define seperate posts). Example can be visited at [2]. Tested on a Mac mini Late 2014 (!).

I plan to buy an M4 or M5 Mac mini later this year. Curious how fast it will generate my blog then.

[1] https://github.com/john-bokma/tumblelog/ [2] https://plurrrr.com/

comment 11mo ago · link · parent

Nice to see another static site generator that uses commonmark. I use it as well in `tumblelog` which is available on [GitHub](https://github.com/john-bokma/tumblelog/). It's less lightweight as it supports tags, an RSS feed, and a JSON feed. Example site: [Plurrrr](https://plurrrr.com/).

comment 1y ago · link · parent

It's nice to read someone else's take on writing an SSG. I wrote one [0] specifically to generate a microblog [1] so I use a single markdown file with additional directives to provide meta data like tags and to split the file in blog entries. I am considering writing an SSG that can handle a large blog so I bookmarked your site for inspiration; thanks! I probably am going to use Python for it, though.

[0] https://github.com/john-bokma/tumblelog [1] https://plurrrr.com/

comment 1y ago · link · parent

I did the same :-) and also in Python (and there is a Perl version, too). The code is available at GitHub as [tumblelog](https://github.com/john-bokma/tumblelog). The site is generate from a single Markdown file with extra directives is called [Plurrrr](https://plurrrr.com/).

comment 2y ago · link · parent

The lesser known but inspiration for some well known authors [1]: [Jack Vance](https://en.wikipedia.org/wiki/Jack_Vance). I can highly recommend "The Demon Princes", "The Cadwal Chronicles" and "Tschai".

[1] Dan Simmons, George R. R. Martin

6.

1KLOC full-fledged static tumblelog generator(github.com ↗)

2 points · by jjjbokma · 3y ago · discuss

7.

Show HN: Static blog generator in about 1.2KLOC(github.com ↗)

6 points · by jjjbokma · 3y ago · discuss

8.

Show HN: Static blog generator in about 1.2KLOC(github.com ↗)

1 points · by jjjbokma · 4y ago · 1 comment

comment 4y ago · link · parent

For an example check out https://plurrrr.com/.

10.

Show HN: Single file static microblog generator(github.com ↗)

1 points · by jjjbokma · 4y ago · 1 comment

11.

Show HN: Static blog generator in about 1.2KLOC(github.com ↗)

3 points · by jjjbokma · 4y ago · discuss

12.

Show HN: Single file static microblog generator(github.com ↗)

2 points · by jjjbokma · 4y ago · discuss

comment 4y ago · link · parent

How well does it handle a large amount of writes to small files (say 1000 files, each about 8KB)?

Edit: the static blog generator I wrote [1] takes 11 seconds inside a Ubuntu virtual machine with the directory shared with MacOS on an Mac mini late 2014. Docker, on the same machine, takes 1m13 seconds using gRPC FUSE for file sharing. 1866 HTML files are being generated.

[1] https://github.com/john-bokma/tumblelog

14.

Show HN: Static blog generator in about 1.2KLOC(github.com ↗)

2 points · by jjjbokma · 4y ago · discuss

15.

Show HN: Static blog generator in about 1.2KLOC(johnbokma.com ↗)

2 points · by jjjbokma · 5y ago · discuss

comment 5y ago · link · parent

I blog [0] when I start a book and when I have finished it.

[0] https://plurrrr.com/tags/2021/book.html

17.

Show HN: Static blog generator in about 1.2KLOC(johnbokma.com ↗)

9 points · by jjjbokma · 5y ago · 1 comment

comment 5y ago · link · parent

Two reasons: to keep up to date, and to find interesting stories for my (mostly) link blog [0].

[0] https://plurrrr.com/

comment 5y ago · link · parent

Fwiw, I have made a LaTeX resume template [1] for Pandoc. Input is markdown and output is LaTeX or LaTeX rendered to PDF.

[1] https://github.com/john-bokma/resume-pandoc

comment 5y ago · link · parent

I read besides sci-fi and fantasy a lot of crime fiction. Can highly recommend the Harry Bosch series by Michael Connelly.

comment 5y ago · link · parent

https://github.com/john-bokma/tumblelog a static blog generator, see https://plurrrr.com/ for an example.

comment 5y ago · link · parent

https://plurrrr.com/ is a static tumblelog. The software to generate it can be found on Github: https://github.com/john-bokma/tumblelog

comment 5y ago · link · parent

If you use Emacs you can access RSS feeds via Gnus: https://www.emacswiki.org/emacs/GnusRss

comment 5y ago · link · parent

To answer your last question Blu-ray, especially M-DISC. Can store up to 100GB [0].

[0] https://en.wikipedia.org/wiki/M-DISC

comment 5y ago · link · parent

I never do. If I bother to do a thing with spam other than deleting it I report it to SpamCop [0].

[0] https://www.spamcop.net/

comment 5y ago · link · parent

I use Emacs to edit the page in Markdown mode with some additional font locking I wrote. It looks very similar to the actual blog.

Currently the input file is 1.4MB (828 blog entries) which Emacs can handle without any problems. Searching works very fast. I keep the file open and writing a new entry is just adding stuff to the top of the file.

comment 5y ago · link · parent

Mine is just over 1KLOC :-) But it includes both a RSS and a JSON feed, support for Twitter card / Facebook sharing, a calendar view, and a tag cloud. Live demo: https://plurrrr.com/

Code is available at github: https://github.com/john-bokma/tumblelog

comment 5y ago · link · parent

That's very true, thanks for explaining.

comment 5y ago · link · parent

Can't you store the meta-data as a YAML block like how for example pandoc uses for several of its output formats?
1234567