Fork me on GitHub
#off-topic
<
2021-04-07
>
pez09:04:17

Anyone knows if there is a way to run Windows in the cloud and run it in a window from a Mac? I never seem to be able to get Calva Jack-in work on all windows machines. The last fixes for this from some months ago looked like they finally did it, but now people are starting to report problems. I think I need to accept that I will never be able to solve it completely, and keep an easy way to test things on Windows. VirtualBox doesn’t cut it. Things are super slow and it often just hangs. Remote controlling some Windows instances would be super nice.

dharrigan09:04:19

Doesn't AWS offer such a service?

dharrigan09:04:41

You can then RDP into it

dharrigan09:04:34

You can also just spin up an EC2 instance of Windows and again, RDP into it.

dharrigan09:04:15

We use EC2 instances at work to run some C# applications that requires the Windows system.

dharrigan09:04:58

I'm very sure that Microsoft Azure would offer a similar service (being their baby and all 🙂 )

dharrigan09:04:08

it may be cheaper than EC2

pez09:04:36

Thanks! Looks like I have options!

borkdude09:04:29

@pez I've assembled a PC that runs Windows and WSL2, I test all Windows and linux related things on that box. Maybe you have an old computer laying around for which you can do the same?

pez09:04:40

I don’t, actually. Besides, Calva works fine on my VirtualBox Windows. I need to be able to have machines with different Windows versions. (You would probably also need this, as one of the problems Calva has with Windows seem to be deps.clj related. 😃 )

pez09:04:03

Amazon Workspaces is too expensive for me. 😞

Ben Sless12:04:36

No chance to write it off as a business expense?

dharrigan09:04:02

They aren't cheap 🙂

dharrigan09:04:22

Have you had a look at azure?

pez09:04:51

Azure will give me 12 month free of Windows virtual Machines. Might try that out. Also looking at EC2 right now.

hindol09:04:52

Is this something that can be done using Github Actions? It is free for open source projects. https://github.com/features/actions

pez10:04:41

Doubt it. I need it to be development machines. The workflow is a bit like: 1. Someone reports an error 2. I try to fire up a machine like the user’s and reproduce 3. I try to fix on that machine 4. I verify on all the so far known machines If Github Actions allow for selecting various Windows versions, then maybe it can be used. But for step 3 it would be kind of slow to experiment.

hindol10:04:53

Okay, I think you are right. I was thinking the other way. 1. You already have a working Calva version. 2. You use GA to ensure it still works after the change. Via an automated test.

hindol10:04:16

You might already have done it, but still... Did you install VirtualBox guess additions? I found VirtualBox performance to be adequate.

hindol10:04:07

It might give you a more responsive Windows than either EC2 or Azure.

pez10:04:38

Yes, i have the guest additions. It’s painfully slow. And eats up a lot of my hard drive. And I will need several.

pez10:04:30

I have a an EC2 free-tier (free for 12 months they say) instance up now and am connected to it with Microsofts RDP Client. It’s super snappy. I fail to install VS Code though. Or rather fail to download it. Might have answered wrongly when accepting the suggested security requirements.

borkdude10:04:36

@pez Would it be an idea to just buy/build a PC computer with 16GB-32GB of RAM and install Windows home + WSL2 on it?

borkdude10:04:46

From sponsor / opencollective money

borkdude10:04:55

Might be cheaper in the end than the AWS solution

borkdude10:04:15

Or even a laptop

pez10:04:52

If I can have several windows versions on it, it might be an option.

borkdude10:04:16

what do you mean by several windows versions: 8.1, 10?

pez10:04:55

Yeah. Seems like some build of Windows 10 is the one causing grief right now.

borkdude10:04:52

Maybe pairing with the one who has the problem on his/her system might be the best option then?

borkdude10:04:02

As this can be very hard to reproduce

hindol10:04:08

Only supporting the last release of Win 10 might be an option.

hindol10:04:53

I don't know of a clean way to jump to a specific version of Windows. Not sure you can even download a specific version officially.

pez10:04:57

Indeed hard to reproduce.

pez10:04:35

Maybe it is not possible to set up the workflow I want. It is all quite sad around this. I think 95% or the time implementing and maintaining jack-in has been spent on (failing to) support Windows cleanly.

borkdude10:04:17

I don't think jack-in is worth it at all ;)

pez10:04:09

I know you don’t.

pez10:04:48

It was surprisingly easy to start a windows machine on EC2 and connect to it using RDP. From creating an AWS account to being connected it was 15 minutes, tops. Then it failed because I don’t know how to use Windows.

pez10:04:05

And now closed the account. Also easy. 😃

pez12:04:05

I feel a bit defeated now. Revenge on Friday maybe, I just ordered a mini-pc that I plan to RDP to.

pez12:04:20

Even if I can’t repro the various errors on it, I can at least quickly try out different ideas.

borkdude12:04:11

@pez Exciting! Which one did you buy? This is also how I use my PC

pez15:04:44

I went as cheap as I dared. An https://www.asus.com/Displays-Desktops/Mini-PCs/All-series/Mini-PC-PN40/ with 4GB RAM and 64GB SSD. It has Windows Pro, whatever that is.

borkdude15:04:39

Nice! I hope 4gb is enough to run vscode ;)

pez15:04:38

And java, and clojure-lsp, and … We’ll see.

pez16:04:22

It does allow for upgrading to 8GB though, so if it comes to that I know what to do.

borkdude16:04:23

I think a Windows pro license costs more than this entire miniPC normally ;)

pez16:04:37

I payed 2900 SEK, roughly €300

pez16:04:46

Much better than paying totally unpredictable amounts for AWS stuff.

borkdude16:04:39

good investment I'd say for someone who deals with cross platform stuff. I hope it will pay itself back

pez16:04:24

It will save my Mac from being thrown out the window just because it hosts that horrible OS in the slowest possible manner.

borkdude16:04:08

I recommend trying out WSL2, it's pretty neat ;)

pez16:04:05

The Calva users using WSL2 does not have all these problems, though. So I will need to stay in Windows to experience their pain.

borkdude16:04:05

It's through pain and suffering that you can appreciate the other side better :P

orestis16:04:26

Late to the party - but Microsoft offers free VMs to test IE11 and Edge in various versions. Still virtual box: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

pez16:04:34

I have one of those on my VirtualBox. It’s nice that it is free.

hindol18:04:03

@pez You probably need the Pro of Windows Pro. Windows Home edition does not support virtualization I think.

hindol18:04:56

I would have gone for one of the latest Macs and then used virtualization to host Windows, 😁

hindol18:04:58

@U04V15CAJ WSL2 is great and fun, until it isn't. I had to delete my Windows user for a different reason, and recovering files from the rootfs of the previous WSL2 installation was a pain.

gklijs13:04:45

Nice mention of Clojure at 5:30 https://www.youtube.com/watch?v=SMohobzkqXg

clojure-spin 6
lightsaber 3
💥 3
Karol Wójcik14:04:17

Hmm.. How can I download GraalVM EE for evaluation and trying it out (it supposed to be free for those purposes) if Oracle insist that I put all the information about company I'm currently working at? 😄

dpsutton14:04:53

i don't see how requiring that information prevents you from downloading and trialing it

Karol Wójcik14:04:44

Why should I provide that information if what I do with GraalVM is not connected with what I do at job at all?

Stuart14:04:06

Just fill it in with nonsense

dpsutton14:04:11

you could put "personal use" in those fields then

Karol Wójcik14:04:26

Fair. Will do so. Thanks guys!

andy.fingerhut22:04:40

Well, the example they give there is Elisp, and I imagine there are other lisps that would allow you to mutate that string, too.

andy.fingerhut22:04:22

Clojure on the JVM does not, at least not without breaking the JVM's security/safety barriers at a fairly low level, e.g. linking in native code, in which case it can muck with everything in memory if you want to.

andy.fingerhut22:04:36

JVM strings are immutable at the JVM level, so Clojure/JVM strings are, too.

em22:04:40

Yeah, was just a funny example. Default immutability is a pretty good idea turns out

em22:04:08

Some people on reddit saw this blog post and started harping on how this is why "lisps are bad" lol

andy.fingerhut22:04:21

You can mutate Clojure collections if you know the right Java interop calls to make, if you want to, but I wouldn't advise it. That does not require using native libraries.

andy.fingerhut22:04:48

Some people like to spout off on things they are not fully informed about -- film at 11.

andy.fingerhut22:04:22

Tell the people who started harping on how this is why lisps are bad, that you can easily write programs running with root privileges that mutate Haskell data structures in memory 🙂

andy.fingerhut22:04:13

immutable data is an abstraction, and unless someone implements it with some supposedly immutable physical stuff (that I'd like to see), it is actually mutable

💯 3
andy.fingerhut22:04:58

(or Plato is right, and it is the world of Forms that you are looking for)

pablore21:04:06

So I blew my tech interview with Google (and I thought it went good!). Any uplifting words for a heartbroken fellow developer?

❤️ 6
sova-soars-the-sora21:04:49

You'll make a thing bigger than Google

borkdude21:04:16

What attracted you to working for Google?

Lennart Buit21:04:56

Well you had the guts to try. Trying is usually the first step to succeeding ;).

pablore22:04:08

@U04V15CAJ no reason actually, they contacted me. It was for a position at the GoogleAds team, which I don't really like since I am very against advertising in general. But I really wanted to work in a BigTech:tm: just for the experience at least (and making my CV gold plated)

😂 3
borkdude22:04:44

@U7V9HE682 I had a similar experience once. I was invited for a big corporation. It felt personal but when I arrived I was put in a room with other people who were mass-tricked into applying for a job there. I had to do lots of these "turn around the figure in your head" type of things which I'm bad at (anything 3d really, yes, I rotate maps when navigating, haha). They sent me away just before lunch because I didn't score high enough, I had to buy some lunch elsewhere, the rats. I never wanted to do anything to do with that big corporation again and in hindsight I feel lucky that I didn't work there, because in other contexts I didn't get the impression they made high quality software. Hope this helps somehow ;).

👍 6
3
andy.fingerhut22:04:00

Lots of people don't pass first / second screens of interviewing at Google, even perfectly competent people. Lots of people would like to work there, not so many positions to fill.

andy.fingerhut22:04:25

Not quite the same, but probably some similarities to people who become software developers because they want to develop video games.

seancorfield22:04:59

@U7V9HE682 Don’t feel bad: Google’s interviews are legendarily brutal (and a poor filter for good people anyway, IMO).

seancorfield22:04:51

They pestered me regularly for several years to go interview and I eventually gave in and agreed to a phone screening interview with an engineering manager and it was awful. I stopped the interview about 10-15 minutes in and read them the riot act and what a crappy interview process/technique they had — and then we chatted for another half hour about interviewing experiences. I asked them to mark my file as “do not call” (and they haven’t).

🙌 15
3
pablore22:04:10

The Riot Act??

andy.fingerhut22:04:28

meaning that Sean explained to them very clearly and unambiguously that their interviewing practices were very poor, and he believed they should abandon those practices in favor of something better.

pablore22:04:12

I actually went to the wiki article for the riot act

seancorfield22:04:13

“it usually means they’ve been caught engaging in antisocial behavior and chastised accordingly” — yup, that’s it!

pablore22:04:30

Well thanks everyone for the kind words. I'll just concentrate on my clojure skills instead of whiteboard tech trivia so I can eventually land a job I really like or even start my own purely functional company.

seancorfield23:04:05

Of the FAANG companies, I’m not sure I could work for any of them…

pablore23:04:29

Not even Apple? I heard they use clojure on some parts of iCloud

andy.fingerhut23:04:00

A job isn't defined completely by what programming language you use most of the time. There are many other factors.

seancorfield00:04:24

@U7V9HE682 It has nothing to do with the tech they use. They seem like dreadful places to work from where I’m sitting.

pablore00:04:38

Yeah, I was kidding. The corporate culture plays a huge role when applying for a job

seancorfield00:04:37

I’ve worked from home, full-time, for about fourteen years. Nearly all of that at World Singles Networks — and I love the “corporate culture” here 🙂

pablore00:04:46

Also their business direction. Do i really want to work for a company that profits by spying on huge number of people to sell them stuff they dont need?

seancorfield00:04:52

Aye. At least three of the FAANG group have some… questionable business practices, shall we say?

pablore00:04:09

Of course you dont make a trillion bucks by behaving ethically

seancorfield00:04:33

My conscience can live on my salary 🙂

Ben Sless10:04:16

Don't feel bad. failing an interview always sucks, but had you gone to work for Google you wouldn't be able to use Clojure for your work 🙂

💯 9
marciol21:04:35

@alexmiller I was watching your keynote at ClojureTRE 2019, really good presentation, but one thing that caught my attention is how you at Cognitect draw interesting diagrams, and I believe that they are very similar to all diagrams shown on Datomic Cloud docs. I actually these diagrams great and always wonder what software you used to draw them. It's a newbie question, so forget if it is a little bit off-topic.

marciol21:04:28

Wow, I'll use it always from now. Really good stuff

alexmiller21:04:30

off topic is the on topic of #off-topic

😅 3
clj 3
alexmiller21:04:19

I'd say we use google sheets and omnigraffle more than we write code, or maybe that's just how it feels :)

Eccentric J22:04:29

I’ve been trying to get there, I like the idea of doing the hard problem solving on paper, then spending a bit of time to get it into code.

marciol21:04:30

Yes, the way you are working devising how to make the right decisions that will last forever as you said is pretty interesting, and spreadsheets are the lasting programming tool ever.

marciol21:04:05

No is temporary, but Yes last forever

alexmiller21:04:38

LIKE SPEC ALPHA, AMIRITE!?

marciol21:04:36

:rolling_on_the_floor_laughing:

12
borkdude22:04:44

Can't wait for spec aleph-zero

marciol22:04:26

the ultimate spec blaster!

souenzzo23:04:17

I'm still waiting for the spec version that we can specify the spec of spec in that spec then auto test it with the generative testing

💪 3
😄 3
Ben Sless10:04:55

yo dawg, I heard you like specs