clj-on-windows

For those interested in making clj on Windows https://dev.clojure.org/jira/browse/TDEPS-67. Also see https://github.com/littleli/scoop-clojure.
seancorfield 2020-09-11T02:46:06.075700Z

@chuck.cassel Fonts look great on Xlaunch with both Atom and REBL on my Surface 3 but thanks for the link anyway!

1
seancorfield 2020-09-11T02:47:12.076800Z

(I have not exported the LIBGL... env var that it recommends... so starting REBL says

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
Not sure if the env var would fix that and what effect it would have on the rendering. Will investigate next.

seancorfield 2020-09-11T02:55:20.077900Z

OK, adding that apparently lets the Windows world run the rendering directly when using WSL and that gets rid of the two libGL error messages.

seancorfield 2020-09-11T04:01:50.079900Z

(I think this was the smoothest setup of a new computer I've ever experienced -- Microsoft's sync of Windows settings and browser settings to a new machine seems head and shoulders above Apple, comparing this to all the Apple machines I've bought and setup over the years; this was the fastest I've ever had a full development up and running on a new machine)

2020-09-11T04:04:41.083100Z

I moved from Linux to windows and I have to say, Linux has become pretty great haha. My windows did an update and it corrupted something and I had to do a full reset of windows. And then in only 2 days I did get a few issues here and there. All things Linux doesn't suffer from, once it works in Linux it just works 😝

2020-09-11T04:04:55.083500Z

But since I also game on my PC, Windows it is

seancorfield 2020-09-11T04:05:20.084700Z

Well, my dev env is WSL2 with Docker 🙂 That's how I'm running Atom and REBL and Clojure.

2020-09-11T04:05:30.085100Z

And WSL 2 allows me to have some of the good parts of Linux as well. And as a Linux user I'm a KDE user, so I do prefer that Windows like UX.

2020-09-11T04:06:52.088600Z

Good talk @borkdude, can you explain what didn't work with Emacs? You meant running Emacs locally on your Mac and editing files remotely? I was thinking I would use Emacs GUI running in WSL 2 through an XServer and control it through remote desktop? Did that not work?

2020-09-11T04:07:12.088700Z

You run them inside docker?

seancorfield 2020-09-11T04:08:03.088900Z

No, sorry, I'm only using Docker for "3rd party services" (Percona, Elastic Search, Redis).

seancorfield 2020-09-11T04:08:30.089100Z

I'm running Atom directly on WSL2 via VcXsrv/Xlaunch, same as REBL.

2020-09-11T04:20:28.089300Z

Ah yeah I see. I do the same for Emacs, haven't tried docker yet.

seancorfield 2020-09-11T04:20:51.089500Z

I'm surprised you don't just run Emacs in a terminal window?

2020-09-11T04:22:48.089700Z

😅 I prefer the GUI version

2020-09-11T04:24:19.089900Z

I find the mouse is convenient once in a while. And the GUI is able to show an extra fringe bar which I find useful as well. And I've honestly never been able to figure out how to never get the terminal/shell to mess with some of the Emacs bindings

borkdude 2020-09-11T07:23:30.091400Z

@didibus Thanks. I didn't have time to go into it, but my problem with Emacs tramp was that the clj-kondo config wasn't picked up remotely because the linter is running locally. The problem with X was that XQuartz doesn't support retina, so the fonts are bit blurry, but it works quite well other than that

2020-09-11T08:27:47.091900Z

it's nifty that post rsync, pretty much everything worked!

littleli 2020-09-11T16:44:25.097400Z

Hi @alexmiller, can you please advice me where can I check the most recent safe version of win-install script? I'm asking because version listed on the wiki page is relatively old and in scoop I already have a lot newer version in scoop. It was based on some pointers from the guys around here, maybe even your twitter account. I regularly miss new releases etc.

alexmiller 2020-09-11T16:46:32.097900Z

the latest stable version can always be found listed on the https://clojure.org/guides/getting_started page

alexmiller 2020-09-11T16:48:24.099300Z

there are newer versions, those are prereleases that may include development in work

littleli 2020-09-11T16:53:52.100800Z

Ooops. So at some point I slipped to prereleases. Don't know if it's good or bad but definitely makes me feel uncomfortable 🙂

alexmiller 2020-09-11T16:55:46.101200Z

well, hopefully soonish there will be another stable release and then you can be re-synced :)

alexmiller 2020-09-11T16:56:35.101800Z

homebrew core and the docker builds are now all tracking stable builds automatically

littleli 2020-09-11T16:58:27.102300Z

🙂 yeah, thanks

seancorfield 2020-09-11T17:24:47.103100Z

@ales.najmann I've decided to basically give up on Windows-side clojure and just go straight to WSL2/Ubuntu and linuxbrew on my new machine.

seancorfield 2020-09-11T17:25:51.103700Z

(and that was partly because I wanted the latest prerelease on everything, 1.10.1.672)

borkdude 2020-09-11T17:50:49.104100Z

I've also been using linuxbrew on some machines for my own projects

2020-09-11T18:39:47.104200Z

Oh I see, you tried to stream X to mac. I was thinking stream X to windows on the same PC, and then use remote desktop into Windows from the mac laptop. I didn't even think maybe you could just avoid remote desktop altogether and just SSH + stream X. But the VSCode support you mentioned working flawlessly, better than tramp got me excited as well. I have lots to try.

2020-09-11T18:41:47.105200Z

I go WSL2 as well, but I also have the scoop installed clj which works well, though I prefer to use the deps port.

borkdude 2020-09-11T18:42:25.105300Z

yes, ssh -X + XQuartz This was in a slide that I had to cut out because of time:

borkdude 2020-09-11T18:42:48.105500Z

borkdude 2020-09-11T18:46:14.105900Z

Here's the slide-deck including the skipped slides: https://www.dropbox.com/s/ftklldxnh016dzn/wslconf-2020-extended.pdf?dl=0

2020-09-11T18:46:45.106300Z

I see, ya in the past, my use of remote X were too slow. I see your slide does mention lag

borkdude 2020-09-11T18:47:02.106800Z

Here's the slidedeck of my presentation from yesterday including skipped slides: https://www.dropbox.com/s/ftklldxnh016dzn/wslconf-2020-extended.pdf?dl=0 and here's the video going with it, again: https://www.youtube.com/watch?v=j5jLPzBRtKI&feature=youtu.be&ab_channel=celebrateubuntu.

1
👌 1
2020-09-11T18:47:29.106900Z

My solution was to use ThinLinc : https://www.cendio.com/thinlinc/download which I'd highly recommend. In my experience it rivals remote desktop, might even beat it, because it supports dynamic window resizing

2020-09-11T18:49:01.107300Z

Its actually free to use for development. They make money on enterprise install, but if you only remote in for one person its free even for professional work

borkdude 2020-09-11T18:50:25.107500Z

remote desktop also works with windows resizing

2020-09-11T18:50:27.107700Z

I'm not sure if it would work to install it on WSL 2 though

borkdude 2020-09-11T18:50:49.107900Z

I'll add it to my notes

2020-09-11T18:50:54.108100Z

Oh does it, in the past I needed to disconnect, and reconnect with a different resolution specified. That was win 7 era

2020-09-11T18:52:20.108300Z

Anyway, if you ever need to "remote desktop" a linux box, high five to ThinLinc, works smoothly, beats VNC, XRDP and all that hands down.

borkdude 2020-09-11T18:53:07.108700Z

thanks!

2020-09-11T22:48:48.109400Z

oh cool extra bits!

2020-09-11T23:19:35.111400Z

so looks like additionally there is: * BIOS CPU virtualisation setting for WSL2 * Editing source code * Emacs on remote machine (the first slide -- i think i saw the second one in the video) * Emacs locally: tramp * Emacs locally: FUSE / sshfs thanks for sharing!