Fork me on GitHub
#off-topic
<
2024-01-11
>
kj17:01:22

gm ☀️📟🔮

👋 2
🌄 2
kj18:01:43

what are yall working on today? 🙂

Samuel Ludwig18:01:55

trying to deploy an API on a fresh server, pre-requisites are always a surprise :^)

kj18:01:57

haha nice! @U0482NW9KL1 what kind of API?

seancorfield18:01:54

Exploring XTDB 2 in the cloud @ AWS.

Sam Ferrell18:01:11

Polishing https://github.com/samcf/ogres for a 1.0 release and marketing push 🌟

Samuel Ludwig18:01:42

> @U0482NW9KL1 what kind of API? A (clojure-based) API for some internal management/processing of ad-campaigns that we run :^)

Samuel Ludwig18:01:07

(HTTP, but not really RESTy 😆)

Martynas Maciulevičius18:01:38

Also I was working on my project but today I'm taking a break: https://gitlab.com/invertisment/rnht/

Noah Bogart18:01:54

at work: another data flow into our kafka stream. oss: continuing to poke at an alternative to clojure.test

Vincent18:01:12

nonprofit for musicians to sell tracks on line (developing it as we speak)))

eggsyntax18:01:19

Studying technical approaches to AI safety.

Daniel Craig19:01:01

Graphql service for a graph database

cdpjenkins19:01:52

Setting up GitLab CI pipelines.

Samuel Ludwig19:01:28

I've already failed at setting up a CI pipeline this week 😅, might have a 2nd attempt on the next one

lread20:01:35

wistful haikus

stand21:01:18

I've been contemplating this post about making the indie web easier (https://gilest.org/indie-easy.html ) the last few days. I'm not sure clojure has much to offer on this score but I've been exploring tiddlywiki as a possibility (verdict: maybe?). I do miss the indie web though.

quoll21:01:02

I’ve been using Python a bit lately (yeah, yeah, I know. I’m not too happy about it either. But the APIs I needed were there), so I’ve been using my company-provided CoPilot, which I have integrated into both Vim and Emacs. CoPilot is actually really nice in Python as it fills in a lot of boilerplate for me. Anyway, I’m back to Clojure right now, and it’s the first time I’ve used Emacs on Clojure since I installed CoPilot. I created a namespace, and the first thing it tried to do was require [clojure.core.reducers :as r] which seemed like an odd first choice, but OK. I added clojure.string and then it wanted to bring in which makes sense (even though I didn’t need it). But the reason I’m here is because I added metadata to the namespace, starting with :author. The first string it gave me was "Miguel Alba". I started typing "Pand I got "Paulus Esterhazy". Then I finished typing "Paula and it gave me my own name. This is both totally in line with what I would have predicted, and totally weird.

😂 4
1
quoll21:01:30

Shout out to Miguel Alba for being the LLM first preference

chucklehead21:01:26

Curious how your Clojure experience compares with Python. I gave it a try recently and my main takeaway is its approach to closing parens is to throw 3 or 4 or 6 more on at the end just in case. I’ve considered trying it with paredit to see if that makes it less tedious to deal with. It often has reasonably useful suggestions if I didn’t have to spend so much time fixing that issue in particular.

2
chucklehead21:01:45

I opened a new namespace and required spec.alpha, then started pasting in webidl definitions as comments and copilot was generally able to get something like 70-85% of the structures right. I adjusted naming conventions of some code it produced and when I would paste in new idl comments it seemed to glean the style appropriately for new code.

quoll21:01:28

I like Vim, so I use Emacs in evil mode. This means I can always find matching parens, though I do miss paredit.

quoll21:01:06

I haven’t done a lot with copilot yet, but it’s generally on track

quoll21:01:46

I reference a lot of my own Clojure libraries, and it doesn’t know about them, so it makes some bizarre assumptions about what functions are available from my namespaces

seancorfield22:01:21

Copilot is definitely getting better at suggesting Clojure code. I find it's at its best when writing tests: once I have a few tests in place, it's pretty good at suggesting additional cases to test -- and it's nice to have the "boilerplate" of tests inserted almost automatically. It's also very helpful when writing documentation, because it seems happy to concoct sentences derived from stuff in the code and from docstrings and comments.

chucklehead02:01:28

Yeah, when I can set it up for success and let it do the equivalent of smartfilling in excel for several suggestions in a row it feels very useful and the templates/patterns it can recognize from context are pretty impressive. It also seems (in my experience) to do better about not blowing up the syntax when it’s writing whole top-level forms rather than inlining suggestions elsewhere

tomd07:01:10

@U051N6TTC when you say > ...though I do miss paredit. > Do you use evil-cleverparens or lispyville? If so, are they missing things from paredit?

quoll11:01:31

I use paredit in Clojure, but don’t have anything set up for Python.

tomd11:01:55

Might be worth taking a look at evil-cleverparens, as it is an evil wrapper for smartparens, which aims to deals with pairs for all languages, not just lisps

tomd11:01:14

(disclaimer, I do maintain it 🙂 )