Fork me on GitHub
#off-topic
<
2020-11-27
>
scythx09:11:33

Hello, does anybody have clojure library recommendation to generate reports like invoice and db data?

borkdude09:11:00

@raefaldhiamartya do you mean generate PDF or ...? and db data is a pretty general term? could you clarify your requirements?

scythx09:11:54

yes a PDF. I want to export table of users info (email, fullname, ...) from db to pdf

dharrigan10:11:28

There are numerous libraries that can be used to query the database, with my particular favourites being next.jdbc with honeysql.

borkdude10:11:54

You could also generate asciidoc or HTML and then generate the PDF from that.

❤️ 3
scythx10:11:58

okayy, thank you!

alemedeiros12:11:27

@raefaldhiamartya I've used clj-pdf at work before. it is quite simple to use and has a good performance. prior to that we generated a html then used a shell command to generate the pdf, doing everything inside clojure scaled better for our use case. (this might be an useful information depending on what you're trying to do)

❤️ 3
nate14:11:25

@raefaldhiamartya I once wrote a report generator that created markdown which I sent through pandoc to generate a pdf. Worked really well.

❤️ 3
kbsant15:11:19

they don't have a dmg yet, just a zip..

kbsant15:11:42

so had to set JAVA_HOME in my shell and my Emacs

borkdude15:11:14

@kbsant That's what I do with GraalVM all the time. I don't use any installers, just download the gzip, unpack it in my Downloads and it sits there for about half a year until the nnext version

delaguardo16:11:19

Btw I'm maintaining homebrew cask for graalvm https://github.com/DeLaGuardo/homebrew-graalvm

delaguardo16:11:56

brew tap DeLaGuardo/graalvm and then brew search graalvm it should give you all available versions

kbsant15:11:25

@borkdude thats nice and clean, just discovered it now that a dmg was unavailable. so far tools work fine, so i'll stick to tar.gz

jpcenteno15:11:18

https://notamonadtutorial.com/rebuilding-the-racket-compiler-with-chez-scheme-210e23a69484 Not specifically Clojure, but the Racket team ported it’s compiler from C to Chez Scheme. With some coworkers, we interviewed Matthew Flatt & Gustavo Massaccesi that took part of that effort.