Fork me on GitHub
#babashka
<
2022-05-26
>
zach02:05:20

Hello! I would like to use progrock in a babashka script, and wondering the best way to do it. from http://book.babashka.org, i can see that progrock is a compatible project. My goal was to add it to my dependencies in my bb.edn So my bb.edn is currently:

{:paths ["src"]
 :deps {weavejester/progrock {:mvn/version "0.1.2"}}}
I get this error, though:
Error building classpath. Could not find artifact weavejester:progrock:jar:0.1.2 in central ()
I am still new to clojure, and the dependency syntax trips me up a bit. progrock is in the mvn repository: https://mvnrepository.com/artifact/progrock/progrock, but available from clojars it looks like? For babashka, should i adjust the syntax of the dependency map in my above bb.edn? Or would I need to bring in progrock via some other method? Thank you!

mike_ananev05:05:03

Try to put progrock/progrock {:mvn/version "0.1.2"} instead of weavejester/progrock

borkdude07:05:28

I want to introduce some types that people can use with extend-type etc. SCI has its own way of representing custom record types, so class? returns false for a (defrecord Foo []) Foo. From the next version of SCI and babashka on these will return true for (instance? sci.lang.SciType Foo) . My question to you: Do you prefer the names:

sci.lang.Type / sci.lang.SciType
sci.lang.Namespace / sci.lang.SciNamespace
etc. Left or right?

lispyclouds07:05:47

Is it important to have the lang? I was thinking sci.impl.Type?

borkdude07:05:13

Nooooo! .impl means implementation detail, you should never use .impl classes /vars from SCI

lispyclouds07:05:34

ah right 😄

lispyclouds07:05:43

then sci.types.Type maybe?

lispyclouds07:05:03

can add in more stuff later on if needed?

borkdude07:05:06

Let's discuss in a thread

borkdude07:05:17

We already have sci.lang

lispyclouds07:05:26

yeah i guess thats a good place then, since its for having types, interfaces etc things

lispyclouds07:05:38

my vote would be for just Type

🙏 1
lispyclouds07:05:07

the *.types.* thought for me was influenced by the way Typescript exports the packages

borkdude08:05:57

I'll go with Type thanks!

1
🙏 1
heow18:05:53

Babashka/wee-httpd as a caxa static binary on a $4 Linode serves 1000 concurrent users at 140,000 requests/second!

😎 7
wow 4
✈️ 1