Fork me on GitHub
#off-topic
<
2022-06-08
>
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)

tianshu08:06:05

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

p-himik09:06:53

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

tianshu09:06:22

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

tianshu09:06:13

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

sheluchin12:06:59

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?

tianshu12:06:58

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

respatialized17:06:19

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

tianshu01:06:50

But we are building our whole application in Clojure

sheluchin09:06:53

Yeah, there are a few people here in the space. • https://github.com/Convex-Devhttps://github.com/status-imhttps://github.com/district0x are probably the most notable. Not sure if there are many others, but there is obviously some crossover interest.

tianshu11:06:33

I like the idea of convex

Jacques11:06:39

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.

Jacques11:06:54

"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.

Jacques11:06:01

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

Jacques11:06:44

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...

Jacques12:06:59

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.).

vemv12:06:13

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.

vemv12:06:40

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

Jacques12:06:22

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!

borkdude12:06:55

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

👍 2
borkdude12:06:34

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
borkdude12:06:49

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
lread14:06:19

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)

lread14:06:51

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.

lread14:06:40

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

lread14:06:58

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

lread14:06:25

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.

Stuart16:06:51

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
isak16:06:38

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.

Stuart16:06:13

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.

Stuart16:06:28

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

Stuart16:06:49

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

Stuart16:06:00

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

Stuart16:06:16

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?

Stuart17:06:52

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
Stuart17:06:53

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...

jumar17:06:24

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

seancorfield18:06:35

@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.

Stuart18:06:35

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:

seancorfield23:06:53

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

didibus04:06:44

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

Stuart11:06:18

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....

nivekuil11:06:49

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

nivekuil11:06:41

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:

seancorfield17:06:38

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".

Mno16:06:54

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

Stuart16:06:11

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
Mno17:06:55

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"? 😄

gavin19:06:45

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"? 😮

gavin19:06:05

to buy it from a willing seller

1
borkdude19:06:06

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
seancorfield03:06:11

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

👍 1