Fork me on GitHub
Ronnie Nissan06:06:23

@seancorfield hello, I am ronniedroid from the github issue. I do not fine a #tools-deps channel

Ronnie Nissan06:06:18

sorry, I found it (new to slack)


Anyone knows why web3 prefer to use bn.js instead of built-in Uint8Array


bn.js is for big numbers, right? How can you use Uint8Array to replace bn.js?


Oh, I mean when they use it to represent a list I guess. Like new BN(uint8arr).


I'm porting the Solana's web3.js to Clojure. I'm considering to use Uint8Array and BigInt. I'm not sure whether there are some tricky part I'm not aware of


There seems to be some interest in crypto among the Clojurians. I can't seem to find an active channel though. Am I overlooking something, or is the crypto segment of the Clojure community just not so large?


I don't know. We are building something on Solana blockchain, so I'm working something like solana-clj


I'd say cryptocurrency isn't as popular here because this community is pretty resistant to tech hype cycles 😉


But we are building our whole application in Clojure


Yeah, there are a few people here in the space. • are probably the most notable. Not sure if there are many others, but there is obviously some crossover interest.


I like the idea of convex


is anyone doing clj web dev on a macbook air m1 with 16GB memory? trying to decide if it's worth paying more for the equivalent macbook pro

Daniel Jomphe11:06:34

DHH has a maxed out M1 Pro and went back to his M1 and was surprised to see no regressive perf impact at all.


"went back to his M1", you mean went back to his macbook air M1? sounds like the mac air is quite a capable machine

Daniel Jomphe11:06:56

Still, I discussed with him by email trying to pick out of him if he's not the kind of guy to have 3 web browsers open and 2 IDEs at the same time, etc., and couldn't find a satisfactory answer. He said he couldn't do anything in his usual job that felt slower. He was tempted to try a M1 8GB just to see how fast it would swap in and out.


oh right. cool, will check that out. thank you


yes, from the research i've done it really looks like the air m1 will do the job for the usual web dev stuff

Daniel Jomphe11:06:59

I hope other people will bring out different perspectives to your question. I'm into the market for a M2 MB Air, I think, when it comes out next month. I'll upgrade it to the costly 24 GB of RAM to be sure...


i think all these new CPUs apple brings out every time is a new cash cow for them. now everyone has a reason to constantly wanting to upgrade. it was much more boring on intel 😄

Daniel Jomphe12:06:05

Let me allude to DHH's opinion again. He said once you made the step to M1, the next M1 steps are almost undiscernible small iterative improvements (unless you're into video editing or something that truly justifies M1 Ultra, etc.).


probably 24gb is the very least you should get, considering how hungry clj / the jvm are. You never know which crazy project you might be involved in later (typing this from my 64gb intel mbp... will have to get a 24gb mba for work reasons)

☺️ 1
Daniel Jomphe12:06:10

Some highlights of personal convo with him

Daniel Jomphe12:06:07

And this was my personal conclusion, which I'm reminding myself now.


I guess the crucial question is: does apple's ram packing trickery also work for the JVM? 👀


24GB ... sho, i'm on a 16Gb i7 Thinkpad currently & that has been fine

Daniel Jomphe12:06:28

One concern I might have in favor of a MB Pro is how many external monitors each model can drive. I'm not sure of the answer. I think it's something like : • 1 for M1/2, • 2 for M1/2 Pro, • 4 or more for Ultra... Don't take my word on this, though, this is clearly partly erroneous!

👍 1
Daniel Jomphe12:06:18

My RAM criteria is: I don't ever want to see big swap file usage because I lack RAM. On my current laptop (mbp) with 16 GB, I can't mix personal life apps and work life apps. Otherwise it gets into 2-3-4 GB of swap territory, and wakes up from sleep slowly, and wears out the SSD which seems to have had some failures that I had to repair using some software to e.g. reclaim broken sectors out of the OS's reach so that the computer would stop crashing. Still, I've used this laptop for 9 years now and it works perfectly fine. The episode with the disk incidents happened in the middle of those 9 years and never caused any trouble since then.

Daniel Jomphe12:06:43

My wife has an M1 Air and leaves all sorts of apps (browser and Microsoft Office) and Chrome tabs open. Every time I check it, it wakes up instantly and only has a few hundred MBs of swap in use. Not sure if some trickery is into play, but it behaves very well. Very satisfied. Still, I can't bring myself to buy 16 GB in 2022, the same qtty than in 2013!


16gb Air is doing fine so far for all my work. The most heavy one I'm building is and it's chugging along nicely (faster than my 32gb 2019 Pro)

👍 2

For my previous job I really needed the 32gb (or more) due to some insane in-memory-index that our app needed, but that was quite the exception

😲 1

But considering there are new models now, I'd invest in the future and buy the new model. I just needed the Air for going out on a vacation and conferences, etc but it turns out to behave pretty well so far on all my work

🙂 1

After using commit-count in my versioning schemes for a while, I’m starting to feel its main (for me) pain point. It is not easy enough to predict. If I want to include a commit-count version in my docs, I have to futz a bit to get it right in an automated release process that also updates those docs. Minor annoyance maybe. But just now I wanted to deprecate a var for my next release, so I started to type ^{:deprecated "1.0. and then thought, “oh, drat”.

🙂 2
Alex Miller (Clojure team)14:06:56

if you're bumping a minor version for that you could just say "1.1" (and skip the commit #)

🙂 1
☝️ 1
Alex Miller (Clojure team)14:06:48

(seems like a good reason to bump minor anyways)


Thanks @U064X3EF3 that’s a good idea, hadn’t thought of that!

Alex Miller (Clojure team)14:06:02

the A.B and the C are independent and somewhat redundant pieces of information - the first is semantic (for people) and the latter is automated data (for computering)

Alex Miller (Clojure team)14:06:58

which is not to say that this scheme is perfect and covers 100% of problems, no version scheme is. The not knowing what version it will be is definitely the biggest downside of this scheme, for sure.


That’s a good way to think of it. But C is also in my change logs so maybe also somewhat for people.


Yeah, everything has its pros and cons, of course.


Actually… this little chat just helped me to realize that if I bump B, and I decide the cons of commit-count are just offending me too much, I can also change the scheme for C.


Just had a C# senior developer interview. I've been doing C# for about 15 mins now. The interview was 90 minutes of technical questions. The 8 minutes or so on C#, I nailed, easy peasy. Then it was 80 minutes of other stuff 😞 Cloud provisioning, infrastructure as code, infrastructure scaling, front end, typescript, angular, security, performance tuning sql server, performance tuning sql queries, columnStore Indexes, foreign keys, indexing (advantages and disadvantates), execution query plans, how to architect and scale microservices, security of microservices, CI / CD pipelines, docker, OAuth, API Gateways, hashing (questions on different algorithms), encryption, salting, cross site scripting, sql injection, how sql server works under the hood (leafs, trees etc). PAAS v IAAS, advantages and disadvantages of both, how to know which to choose. Azure buses, hubs, blob storage... There's at least 4 jobs in there. They also asked me to do a take home programming challenge (but don't submit it, just do it and takes notes on how you did it). In 90 minutes it didn't come up once. They also asked me what degree I got (I'm sure it was 2:2) 15 YEARS AGO. He didn't seem pleased at all that I only got 2:2 (and not 1st, or 2:1)

eew 1

How bizarre. God forbid you aren't already sold on all those technologies / techniques, someone else on your team took care of that aspect, etc.


Yeah, i mean we have db experts. I don't spend my day performance tuning sql server. Stephen does that, he's shit hot at it. That's basically his job, his only job.


Oh, there was also questions on inter team conflict resolution.


In 15 years of dev, I can't say I've ever been in a conflict with someone on my team...


Where it wasn't solved in 5 mins with us just having a chat


And one of us realising, oh shit yeah, you are right, i hadn't thought about that. Good catch!

👍 1
Noah Bogart17:06:18

What’s 2:2?


In the UK you get graded on your degree. The highest you can get is a 1st class honours (I think 2 people in my class got a 1st). The second best is 2:1 and then it's 2:2, then its a 3rd. If you fail the 3rd, you get a regular degree (no honours). Looks like US equivalent is 1st: A, 2:1 A- to B+, 2:2 B to B-, 3rd is C+ to D and then fail (only get regular non honours degree)

👍 1

I think its 70% overall gets you 1st, 60-70 2:1, 50-60: 2:2, 40-50% 3rd, < 40% fail. My bigger point is it was 15 years ago I graduated. I went to university at 18 and graduated when I was 22-23 ish, Given that Uni at that age was mostly about drinking, 1) it's a miracle I actually survived! and 2) It's even more of a miracle I even graduated. Nothing I got taught at uni is relevant now. First year was entirely C, last 3 years was all C++. We did a bit of JS, but I remember the professor at the time saying we had to learn it to pass, but don't worry JS is nonsense and no one is ever going to care about it...


At least you know that you don't want to work there even if they give you an offer 🙂 .


@U013YN3T4DA You got what we used to call a Desmond degree (a 2:2) 🙂 I'm kind of shocked that an employer would care about anyone's degree after more than about five years since graduation!

Noah Bogart18:06:17

Ah yeah, that's super annoying. I love to drop "I've attended and dropped out 3 times" in interviews lol

Martynas Maciulevičius18:06:50

You forgot to mention how many hundreds per hour they pay 😄 Edit: And you also forgot to mention if it's a large corporation or a small start-up.


They are a big US health care company but told they have a "startup attitude." Pay is decent for UK, I believe up to £65k. Still another two stages to go if I get through (I wont)

Martynas Maciulevičius18:06:59

That's pretty sad. I think that they either don't know what they're doing or there are so many candidates that they don't even know how much they need to filter them :thinking_face:


I've said it before but it bears repeating: most companies are hopeless at interviewing developers... 😞


You can probably BS yourself into one of those, almost certainly the interviewer only has superficial knowledge of most of these as well.


Unbelievable, I got an offer this morning from them. Apparently I was smashing the C# questions, so they basically just wanted to start asking other stuff to challenge me (as I understand it from the recruiter), and that since I got the C# questions answered so well, he didn't bother with the tests. They have said I'm weak on the front end but they are happy to train me up on that on the job. hmmm....


as an interviewer, you're constantly looking for signal, so the candidate should always be at the edge of their comfort zone outside of a few warmup questions to ease the nerves


basically you're looking for reasons to hire someone, not reasons to not hire someone. the more you have to write about the better

Martynas Maciulevičius13:06:33

For me hearing that you're weak means that they want to lowball you. Why would they skip part of their own process just to say that you're not good enough. You don't know their codebase obviously... but I'm not sure if you meant that they meant it... :thinking_face:


If they're after someone "full-stack" and they get a candidate that they like and that checks most of their boxes but not all, I think it's pretty reasonable for them to say "Here are a couple of areas where we don't think you're as strong as we'd like but don't worry we're happy to train you up on those".


Good lord that doesn't sound fun, not that interviews are generally fun, but that sounds about as painful as can be


Especially since it was all condensed into 90 minutes and basically the questions coming quite quick fire. He did say he was reading them from a spreadsheet

😂 3

Doesn't bode particularly well for the company culture but maybe that's just the interview bit

Martynas Maciulevičius18:06:59

> he was reading them from a spreadsheet Did you ask for a spreadsheet with the answers and did you schedule an interview after this one to "pass"? 😄


Hey peeps… if anyone has an extra ticket to :clojureD hit me up on DM. I’d be happy to participate in a transaction. Thanks!

Martynas Maciulevičius19:06:37

What is this "transaction"? 😮


to buy it from a willing seller


There's also a #clojured where you can post a message

👍 1
Noah Bogart19:06:39

Homer's Brain: Money can be exchanged for goods and services.

😂 1

Deleting the OP message since Gavin posted it in at least three channels (and we discourage cross-posting questions here).

👍 1