HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
davejarvis
scrivenvar
HISTORICAL RECORD2017–2020
davejarvis / scrivenvar · Not publicly available

scrivenvar

Discover this repository through its Hacker News conversations.

2Distinct people
10Mentions
0Explicit recommenders
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 5:58:53 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year10 dated mentions

Observed mentions: 2017-02-04 21:42:20 UTC to 2020-09-15 23:00:10 UTC.

02462017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 6 mentions; 1 submissions, 5 comments2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC202
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC615

What Hacker News says

6 sources
> I suspect that formatting functions with named placeholders would be difficult to make acceptably ergonomic or performant in Java yamlp performs string interpolation from YAML files: https://bitbucket.org/djarvis/yamlp/ I reuse my library in my text editor: https://github.com/DaveJarvis/scrivenvar/ The text editor can interpolate strings in a variety of contexts (such as Markdown, R Markdown, XML, and R XML documents): https://www.youtube.com/watch?v=u_dFd6UhdV8 As far as I can tell, there is no performance degradation from the recursive interpolation; the editor reads, interpolates key/value pairs, and substitutes the resulting values into R Markdown documents riddled with up to a thousand simple formulas in about 600 milliseconds (on my desktop computer). Also, the editor provides a way to maintain the interpolated variables in a tree
Read the rest
-like view: https://github.com/DaveJarvis/scrivenvar/blob/master/README.... The substituted values appear in the preview pane in their final form. This is all real-time and pure Java.
In JDK 15
Of late I've been modernizing ExTeX[0] for integration with my markdown editor Scrivenvar[1][2] so that the editor can include TeX. My Typesetting Markdown series[3] dives into numerous reasons why I prefer to embed plain TeX in Markdown over LaTeX (skip ahead to parts 7 and 8). The text editor's TeX integration hasn't started yet[4], but if you're keen, star the GitHub page. [0]: https://github.com/DaveJarvis/extex [1]: https://github.com/DaveJarvis/scrivenvar/ [2]: https://www.youtube.com/watch?v=u_dFd6UhdV8 [3]: https://dave.autonoma.ca/blog/ [4]: https://github.com/DaveJarvis/scrivenvar/issues/69
In Writing math papers in pre-LaTeX era (2010)
There's an endless variation on how shell scripts can present help information. Here's another, consider this array: ARGUMENTS+=( "a,arch,Target operating system architecture (amd64)" "b,build,Suppress building application" "o,os,Target operating system (linux, windows, mac)" "u,update,Java update version number (${ARG_JRE_UPDATE})" "v,version,Full Java version (${ARG_JRE_VERSION})" ) The lines are machine-readable and alignment is computed by the template: https://github.com/DaveJarvis/scrivenvar/blob/master/build-t... When install script[0] help is requested, the following is produced: $ ./installer -h Usage: installer [OPTIONS...] -V, --verbose Log messages while processing -h, --help Show this help message then exit -a, --arch Target operating system architectu
Read the rest
re (amd64) -b, --build Suppress building application -o, --os Target operating system (linux, windows, mac) -u, --update Java update version number (8) -v, --version Full Java version (14.0.1) Using an array reduces some duplication, though more can be eliminated. Scripts typically have two places where the arguments are referenced: help and switch statements. The switch statements resemble: https://github.com/DaveJarvis/scrivenvar/blob/master/install... Usually parsing arguments entails either assigning a variable or (not) performing an action later. Introducing another convention would allow hoisting the switch statement out of the installer script and into the template. Off the cuff, this could resemble: ARGUMENTS+=( "ARG_ARCH,a,arch,Target operating system architecture (amd64)" "do_build=noop,b,build,Suppress building application" "ARG_JRE_OS,o,os,Target operating system (linux, windows, mac)" "ARG_JRE_UPDATE,u,update,Java update version number (${ARG_JRE_UPDATE})" "ARG_JRE_VERSION,v,version,Full Java version (${ARG_JRE_VERSION})" ) The instructions to execute when arguments are parsed are thus associated with the arguments themselves, in a quasi-FP style. This approach, not including the FP convention, is discussed at length in my Typesetting Markdown series[1]. [0]: https://github.com/DaveJarvis/scrivenvar/blob/master/install... [1]: https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdow...
In Help Message for Shell Scripts
I wrote an editor (based on the aforementioned architecture diagram) that makes the integration of interpolated variables much simpler than what the blog describes: https://github.com/DaveJarvis/scrivenvar/ Here's the money shot: https://raw.githubusercontent.com/DaveJarvis/scrivenvar/mast... Variables are visible on the leftmost panel. You can insert a variable by typing in any partial value followed by pressing Ctrl+Space (two steps instead of over a dozen). The editor inserts the variable name and the preview panel updates accordingly. That definitely isn't clear from the blog post, though. Aside, can Word perform string interpolation on variables?
In “Typesetting Markdown” blog post series by a technical writer
My blog dives into Markdown, Pandoc, R, bash, and the ConTeXt typesetting engine. https://dave.autonoma.ca/blog/ Part 8 (coming soon!) uses annotated Markdown to reproduce a famous poem (original is on the left): https://i.imgur.com/idV1mTM.png The text of the poem is written in Pandoc-flavoured Markdown: ::: poem Some say the world will end in fire, Some say in ice. From what I’ve tasted of desire I hold with those who favor fire. But if it had to perish twice, I think I know enough of hate To say that for destruction ice Is also great, And would suffice. ::: > Markdown is good for generating HTML and terrible for making PDFs.² Yes, Pandoc is essential for transforming Markdown into beautiful PDF files. Tooting my own horn a little more, my illustrated photobook, Impacts, is written almost ent
Read the rest
irely in pure Markdown, with a few annotations for plots and spectra: https://impacts.to/preview.html Tangentially related, what would be amazing is a robust text editor that allows injection of interpolated string variables from various data sources and structured data formats. Here's an architecture diagram to clarify: https://i.imgur.com/8IMpAkN.png My open-source editor, Scrivenvar (https://github.com/DaveJarvis/scrivenvar), implements that architecture to some extent.
In Don't write documentation in Markdown

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.