Fork me on GitHub
#announcements
<
2023-03-03
>
beoliver09:03:46

Announcing https://github.com/beoliver/wiretap: A small library for adding custom tracing without having to modify source code.

👀 18
🙌 8
🎉 16
2
🕶️ 6
🎤 2
2
henryw37411:03:54

tick 0.6.0 released. The new version works with babashka. Thanks https://github.com/dvingo and https://github.com/borkdude ! Also new is a section in the README looking at the tradeoffs of date-time API choice : https://github.com/juxt/tick#should-you-use-tick-for-date-time-work . It's a question that seems to come up on here on slack quite a bit. Opinions welcome! Should you use Tick for date-time work? • If you are just working on the JVM and are comfortable with the java.time API then raw interop will work just fine. • If you are working in a Javascript environment then seriously consider using https://github.com/henryw374/cljc.java-time: Its build size https://widdindustries.com/blog/clojurescript-datetime-lib-comparison.html (unless targeting http://e.ga highly constrained context such as a https://github.com/mfikes/esprit). The main reason is the native Date API is https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/ • If you meet any of the following criteria, use https://github.com/henryw374/cljc.java-time: ◦ are creating cross-platform date-time logic ◦ are not proficient in java.time and would like https://widdindustries.com/why-not-interop/ ◦ would rather not maintain type hints in your code or deal with interop syntax • If you meet the criteria to use cljc.java-time but would like a more terse API and the benefits of e.g. https://juxt.github.io/tick/#_substitution or the interval calculus, but will not miss having every date-time recipe one google search away, then tick might be a good choice. Tick uses https://github.com/henryw374/cljc.java-time so you can always drop to that if Tick is missing something you need. • Similar in aiming for a terse API, but jvm-only is https://github.com/dm3/clojure.java-time.

🎉 42
babashka 20
clj 2
⏲️ 2
woohoo 2
🙏 2
Anders Eknert14:03:40

has the tag not been pushed? 🙂 I don’t see it in the repo

henryw37414:03:09

Ah good catch. Pushed now 👍

👍 2
wevrem17:03:34

@U051B9FU1 I really appreciate what you’ve done with Tick and I like using it and having a common API for both Clojure and ClojureScript.

raspasov20:03:22

tick is great, such a pleasure to have basically identical time-related semantics in Clojure, ClojureScript and now babashka!

👍 2
Anders Eknert22:03:24

ClojureCLR next! 😄

dvingo22:03:12

malli also recently got support for java.time based schemas, makes for a really powerful combination with tick :) https://github.com/metosin/malli#malliexperimentaltime

Chase22:03:40

Hey I wanted to explore the new OpenAI chatGPT API that was announced a couple days ago and I've been meaning to try out bababska so I wrote this quick little bb cli to have an ai conversation through the terminal. I'm on linux so not sure if it will work on Mac or Windows. You can find it here: https://gist.github.com/chase-lambert/c5533d8e8fbb71268a25e83ecf8e3cc6 with the instructions in the comments. It's quite barebones but quick and fun without having to go to the OpenAI website which usually takes a while to load for me.

🆒 5
4
Chase22:03:55

If you prefer a regular ole Clojure repo you can find that here: https://github.com/chase-lambert/chatgpt-cli This uses clj-http and clojure.data.json instead of bb's built in http client and cheshire.json so the code has a few minor alterations.

Chase22:03:01

The new API is crazy cheap and it's for their most powerful model. It is $0.002 for a 1000 tokens which equates to about 375,000 words for a $1.

Chase23:03:28

Whether it has anything of worth to say in that massive amount of words is still up for debate.

jjttjj23:03:25

Cool, I keep thinking about about starting a channel here for notable/interesting chatgpt interactions