Fork me on GitHub
#off-topic
<
2022-08-02
>
javahippie15:08:13

Can you recommend a tool to create public surveys to share? (~250-1000 respondents). Willing to pay for it, but has to host data in the EU and ideally would do as little tracking as possible.

gklijs17:08:36

I see Google Forms often used for such things. Not sure that would do?

Martynas Maciulevičius18:08:24

But he wanted less tracking so probably google is not it.

javahippie18:08:37

Thanks for the suggestion! Yeah, Google is not exactly privacy-friendly 🙂

Martynas Maciulevičius18:08:04

I use webo.hosting as an alternative for google docs. I don't know but probably some kind of open source alternative may exist too. Maybe this could give you a clue.

semykin16:08:06

I'm looking for a job. Does anyone need a junior programmer ?

1
Noah Bogart16:08:27

#jobs and other related channels might be better for this

Drew Verlee16:08:09

What are some of the trade offs between a monorepo and using git submodules? My intuition is that submodules have more potential constraints, so if you don't need those, it's not worth it. I'm not sure the tooling will impact anything, but practically speaking that could make a big difference. . LSP can be configured per directory. I think so can cider. My spacemacs default search functions are across a github repo, that that also might be configurable. With submodules, the git histories aren't interlaced, which actually feels like a hindrance in the case where the two pieces are a frontend and a backend.

hiredman16:08:13

Git submodules are very tedious

hiredman16:08:33

But you are conflating repo structure with directory structure, but those are separate things

Drew Verlee16:08:08

were i'm i conflating them? Git keeps a history of directory as it changes over time no?

Alex Miller (Clojure team)16:08:36

Git sub modules don't work as gitlibs fyi

👍 1
Alex Miller (Clojure team)16:08:09

I have to come to hate everything about submodules. They are weird.

☝️ 6
🙏 1
1
hiredman16:08:50

A monorepo doesn't mean you must have a single src directory that tooling sees as one project, and you could (but this would be truly madness) have a single src dir for tooling using submodules

hiredman16:08:52

Although, I am kind of a fan of the single src dir

Drew Verlee16:08:30

I agree hired. I was thinking out load about the specific tools that I use. My spacemacs configuration for instance, naturally treats a github repo as the "search space" so if you have two projects that share a data pipeline, like frontend http requests to a backend. and you want to rename they key that's sent, you have to do it twice by searching. I was thinking about little stuff like that, and then realizing i wasn't sure how far the coupling could go. As alex just informed me, i can't use submodules as gitlibs. Which i thought i could! and it sort of kills any chance of that idea being a good one.

hiredman16:08:31

Git subtree is nicer for a lot of use cases than git submodules, but it doesn't exactly match up with project organization like this.

Drew Verlee16:08:23

And i wasn't even aware of git subtree's i'll look into that. thanks 🙂

hiredman16:08:15

Git subtree is basically just copying a commit in another repo into a subtree of the current repo. submodules can get used like this, but are much more

Alex Miller (Clojure team)16:08:52

do you know how subtrees plays with worktrees?

Alex Miller (Clojure team)16:08:20

(asking because tools.deps is implemented with detached head worktrees)

Alex Miller (Clojure team)16:08:16

this is totally off topic for the original question, but worktrees pull separate working trees off the same shared git dir. submodules don't work with this because they are managed only in the git dir (which is totally dumb). But maybe subtrees would work, never tried that.

hiredman16:08:47

I don't, I sort of expect they just work, but haven't tried

hiredman16:08:03

They really are copying the content of a commit from another repo into the current repo, so you don't have to do anything special on first checkout, the content is just there

hiredman16:08:35

It does make continuous back and forth flow of changes between the repos trickier

pppaul17:08:59

i use gitsubmodules, i'm not sure why people don't like them, other than some extra commands to run with git. can someone explain how they have run into problems with them?

Alex Miller (Clojure team)17:08:36

well, I explained why they don't work as tools.deps gitlibs above

pppaul17:08:32

i'm not familiar, i'll look into them.

pppaul17:08:37

like in :deps {:git/url :sha } ?

pppaul17:08:54

oh, i just found it intuitive that i wouldn't be able to do that, and have to use

{:local/root 

Noah Bogart18:08:18

one thing to note, git subtree can have some really bad issues in repos with long and complex histories (some details https://doc.rust-lang.org/nightly/clippy/development/infrastructure/sync.html#patching-git-subtree-to-work-with-big-repos ), and the patch to fix it has been in the queue for nearly 3 years and doesn't look close to being merged https://github.com/gitgitgadget/git/pull/493

pppaul19:08:52

that's such a weird PR log to read. but seems like this is the main thing holding up the PR, at least where i left off.

At some stage, especially given the problems I pointed out with the
implementation detail that is a flat directory with a potentially insane
number of files in it, I think it would make a lot of sense to go ahead
and turn this into a built-in Git command, implemented in C, and with a
more robust file system layout of its cache.
cool find @UEENNMX0T.

Noah Bogart19:08:30

Thanks! Yeah, it's a really complex part of git and I am not surprised that it's taking a long time to figure out.

didibus21:08:25

> With submodules, the git histories aren't interlaced, which actually feels like a hindrance in the case where the two pieces are a frontend and a backend Isn't shared history/commit the only benefit of a monorepo?

👍 2
pppaul21:08:46

i think in the case where you own both libs, and one is frontend and one is backend (something like that), don't put them in diff repos if you want to have them in sync all the time

👍 1
pppaul21:08:20

i use submodule when i want to bring in libs that i don't own, may want to fix. mostly do it with frontend, or with CLI stuff.

👍 1
pppaul21:08:51

@U0K064KQV there are other benefits, related to CI and testing. there are also issues related to both of those things too

didibus21:08:46

Oh I see. So your own stuff all in the same git repo, but if you depend on source of other libs because you have to customize them, you make those submodules so they keep a separate history and don't conflict with your own commits. So, what is different about the submodule vs another git repo?

pppaul21:08:36

i guess you mean something like a deps.edn git ref? can't always do that. sometimes the repo needs to be built (yada, some frontend libs as well). stuff in other languages can't be refed, and sometimes it's easier to submodule than to try to figure out diffs between mac/arch/ubuntu/other which is a headache. for stuff like fonts and asset heavy stuff, i just submodule and forget about it. if it's clojure stuff than submodule is a very special case, and i aim get stuff working with git refs in deps.edn

didibus23:08:37

No I mean just like another folder with it's own repo that you local/root and/or git/ref

didibus23:08:19

I don't know much about submodules, so I'm not criticizing, just not sure what's different between that and two folders with two git repos

pppaul23:08:32

submodules are just that, cept you manage those folders in your git repo, and they don't clutter up history. otherwise you are managing a lot. how would you coordinate a sibling repo update in your example?

didibus23:08:29

Hum, so I mean say:

app1
|- src
|- deps.edn // Here we depend on lib2
lib2 • src • deps.edn // Here it depends on stuff from clojars If you edit lib2 you can just git commit and git push. If you edit app1 you can just git commit and git push. app1 grabs updates from lib2 based on local/root for dev, but using the prod repo in prod, so either a maven dep or a git dep.

pppaul23:08:11

ok, how you do that if you can't use deps.edn to manage your stuff?

didibus23:08:04

Like a C dependency you link too at runtime?

pppaul23:08:28

yes, or frontend stuff? how you manage a dep that is a font?

didibus23:08:16

That's not a dep, that's just a service calling your APIs no? So I mean you don't have to do anything, just point your frontend to your correct API endpoints.

pppaul23:08:14

the backend has the font as a dep in that case.

didibus23:08:28

For the C use case, I would symlink at dev time. And when I deploy, I'd pull down both and have a copy step copy the build of the C lib into a resource folder (replacing the symlink)

didibus23:08:59

Hum, in that case I'd have a 3rd repo for fonts shared between the two.

didibus23:08:09

Which they'd both depend on

pppaul23:08:05

where does your C lib come from? and for the 3rd repo, sounds like a git submodule use case

didibus23:08:18

I guess I don't see how a git submodule like helps in this scenario? How you depend on something else is a per-language specific thing. Do you mean some language can only depend on subfolders locally? And can't point to a separate folder? Even then though, you can pull a git repo in a subfolder of another and just set the parent to ignore that folder.

pppaul23:08:50

the thing you are talking about is like git submodules with extra steps

didibus23:08:27

Maybe, so like how does submodule reduce the number of steps?

pppaul23:08:31

you don't hide folders that are git repos, git manages those folders and you can coordinate updates via git

pppaul23:08:01

in your case, hiding a git repo... how do you coordinate that with your team when your dep changes versions?

didibus23:08:03

So, do you mean that even when you deploy or go to prod your deps.edn file still just uses local/root ?

pppaul23:08:04

for some things, sometimes. i usually don't use submodules for clojure stuff, i use it for frontend and CLI stuff. for yada i used submodules, but deployed to a local m2 repo, so i used deps.edn as normal, but it was not getting stuff from maven.

pppaul23:08:37

some libs are built weird and you can't even use local/root

didibus23:08:59

I think maybe I see where it makes sense in runtimes where deps are just meant to be subfolders

pppaul23:08:01

for frontend, i prefer submodules over npm or bundle or whatever is the current hot thing.

didibus23:08:42

I see, so like you just put all the libraries you need for your frontend in subfolders, but independently track them with submodules

pppaul23:08:56

that is what submodules are

pppaul23:08:17

and that is what npm and other tools do, they just hide those folders

didibus23:08:37

Ok, and its better then if they were separate git repo, because like you can run commands on all of them together?

pppaul23:08:06

they also tend to break, while git just deals with shas, so you get reproducible builds, unlike with npm. and you don't have to deal with a 1000 line package lock file, just a tiny git file

pppaul23:08:47

git submodules does have things like "foreach" for running commands on all repos. but submodules is best if the repos are not fast moving, just like normal deps.

didibus23:08:01

Ya, makes sense. I don't have a lot of experience with that style. I think most languages I've used have good version management and can pull things from an artifact repo by version when bundling for deploy

pppaul23:08:39

yeah, well you deal with sane package mangers. frontend world is just insane

didibus23:08:06

😛 ya, I've got a mostly backend career. Frontend I did used to be Flash/Silverlight and Windows Apps

didibus23:08:48

And that's been more than 8 years since I did that, so don't actually remember it all that much, can't recall how I managed deps. Think I was using SVN as well, so not even git

pppaul23:08:06

there was a time when npm/node had a 1 function per package phase

pppaul23:08:27

it's common to have a start app bring down 100+ deps, with just a hello world program

picard-facepalm 1
pppaul23:08:43

i think that long ago deps were a special case

didibus23:08:16

Ya, I feel I didn't use as many libs. It was like the one big UI framework and that's mostly it.

didibus23:08:38

Like for Windows apps, I think it was WPF, and that was it basically.

didibus23:08:58

And Flash/Silverlight also had like everything in it already.

pppaul23:08:27

also, another thing i find good about doing submodule, is that i only have to troubleshoot git with the juniors, i don't have to deal with 2-3 package manager errors. similar reason why i avoid fancy new build tools. i don't have time for fancy stuff, i just want things to be simple.

pppaul23:08:27

for windows i only used opengl. that was my 1 lib, other than std lib for C++

didibus23:08:29

It's kind of interesting how JS differed. Like you used C# and ActionScript 3, but really you were doing WPF and Flash development, both of which were massive front-end frameworks. You would think browsers could bundle a similar massive JS frontend framework within themselves that would become web standard.

pppaul23:08:24

they did the DOM. dom is ok, but it's so weird compared with a regular gui lib, but also does a lot more, sometimes a lot less.

didibus23:08:42

The good part I guess is it fosters innovation, in Windows innovation is at the pace of Microsoft for example, with Flash it was the pace of Macromedia/Adobe

didibus23:08:49

And if you didn't like it, too bad

didibus23:08:10

But Android and IOS are still like that, if you go native at least.

pppaul23:08:46

i think the html frontend provides for easy workarounds to most problems. there are some very weird things that aren't easy to work around, though. <select multiple> has the weirdest interface, and there isn't a good alternative. building components that work well on phones is almost impossible, and it's obvious when you aren't using a native phone component.

dpsutton18:08:15

There is pure chaos in the driver market for seats next year in formula one. If you're interested Twitter is wild right now

dpsutton18:08:53

Alpine could be a bit desperate next year

dpsutton18:08:14

I think you'd have a lock on their comms department if you threw your hat in the ring :)

dpsutton18:08:38

Cause they have just cratered

john18:08:31

Sounds like pure danger to me

chucklehead23:08:34

this is the best thing since Sauber signed 3 drivers.

Martynas Maciulevičius19:08:43

Got access to Dalle2 model. Woohoo! Any suggestions?

pppaul19:08:22

a machine with the body of a cat, and the head of a cat, that is producing smaller cats.

Martynas Maciulevičius20:08:57

Aah... not as good as I expected it to be 😄 You broke it 😄

pppaul20:08:03

hieroglyphic cat building a great pyramid next to Ra

pppaul20:08:49

that last cat image is a bit disturbing, there is just something off about it

pppaul20:08:08

those cats are from my nightmares

pppaul20:08:20

2nd one looks cool

1
pppaul20:08:35

"a cat phasing in an out of existence as it becomes a singularity, 80's comic book style"

pppaul20:08:14

3rd one is high quality clipart

Martynas Maciulevičius20:08:03

This one is pretty good

pppaul20:08:04

seems like dalle somewhat knows of the sungod Ra

cp4n20:08:10

Underwater city populated by squid people

cp4n20:08:25

Whoa those are awesome

pppaul20:08:26

those cats are wild!

Martynas Maciulevičius20:08:33

That's a good one. Alright, enough for today. I'll go to sleep 😄

1
cp4n20:08:18

Those are great. Kinda has a Rick and Morty vibe

pppaul20:08:00

gang of cats eating squid people over an ink covered public garden, with Alf cheering in the background

😆 1
Martynas Maciulevičius20:08:22

Enough for today ;D I'll do some tomorrow 😄 It's good to end on a good note 😄

Jacob Rosenzweig03:08:58

Rich Hickey leading the elven Gondor army into Mordor.

Endre Bakken Stovner16:08:11

Clojure sign on subway?

Martynas Maciulevičius18:08:59

I already tried Clojure in my first input. It didn't return anything meaningful. So this is why I resorted to this weird description. Also I found that I have only 50 evaluations in total and I have 15 or so left. And then I'll have only 15 per month. Quite sad.

Jacob Rosenzweig18:08:59

The breadline of AI computing

pppaul18:08:11

in a year we'll all have dall-e ish models on our PCs, don't worry

mr-burns-excellent 1
Martynas Maciulevičius18:08:44

We can already have dalle-1. This is just the improved version.

Jacob Rosenzweig19:08:14

Is Dalle-2 just Dalle-1 with more parameters? Like it's the same architecture (transformers)

🤷 1