off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
sova-soars-the-sora 2021-05-11T16:37:56.134200Z

If clojurians were to redesign html/css/js/ the browser experience... i wonder what that would look like.

sova-soars-the-sora 2021-05-11T16:38:18.134400Z

a clojure-based browser 😄

2021-05-11T16:43:34.134900Z

wasn't the initial idea for javascript to be scheme?

marrs 2021-05-11T16:45:05.136200Z

Yes. JavaScript is scheme with an object system borrowed from Self and a syntax borrowed from Java

marrs 2021-05-11T16:47:03.137800Z

Eich’s original scripting language was in fact Scheme but management told him not to be silly and to try again

2021-05-11T16:56:34.140100Z

On fosdem 2020 there was a talk about nyxt-browser (called next back then). a browser built in common lisp. (https://github.com/atlas-engineer/nyxt) The engine is pluggable (Blink / Webkit allowed), looked pretty interesting. Obivously just an UI though (not re-imagining html/js/css 😛)

2021-05-11T16:57:44.140400Z

https://archive.fosdem.org/2020/schedule/event/next_web_browser/ here's the talk

Aron 2021-05-11T17:03:43.140700Z

https://fosdem.org/2021/schedule/event/nyxtbrowser/ ?

2021-05-11T18:07:34.141100Z

also; yes. I was at the 2020 talk; but since there was another talk too it seems 🙂

2021-05-11T18:15:08.141800Z

On the subject of css, I'd really like something new and better to come along. Then I won't be fighting with issues like this: Why is it moving! W.T.A.F

naomarik 2021-05-11T18:22:42.142300Z

looks like you got something changing the window height slightly to put the vertical scrollbar on right side.

2021-05-11T18:24:55.142800Z

It was working when I had stuff lower on the page. I had stuff I had to scroll down to see, I removed that. ANd now everything twitches

naomarik 2021-05-11T18:25:54.143500Z

yeah because the scrollbar was always present

2021-05-11T18:26:54.144600Z

You're right, so I need to now make one of the top three boxes smaller

2021-05-11T18:27:55.144900Z

but i dont understand, how is the vertical scrollbar being triggered?

naomarik 2021-05-11T18:30:19.145600Z

dunno without seeing the page, perhaps have an element that's resizing itself by 1px

naomarik 2021-05-11T18:33:07.146300Z

can take a quick look at it if you want if you have a link

2021-05-11T18:39:08.147Z

ive pushed it to my git live page thing https://stuartstein777.github.io/ It twitches, but if you hit parse then play, it twitches even worse!

2021-05-11T18:39:46.147300Z

I think I'm just going to move the output box to the bottom row

naomarik 2021-05-11T18:45:29.148Z

yeah not getting the issue on my mac, and i'm pretty sure if you resize your window just slightly to reduce the height it won't happen to you either. can check on my pc when i get back home

hindol 2021-05-11T18:57:04.149300Z

@qmstuart Even if moving the output box fixes it for you, the issue will still remain. Someone with a different screen size may hit it. It is perfectly fine if you are the only one using it though.

phronmophobic 2021-05-11T19:01:50.150100Z

Does anyone have any links/resources for what an ideal, clojure based layout library might look like? (no relation to html/css required)

sova-soars-the-sora 2021-05-13T13:47:58.175900Z

"Grid Systems in graphic design by Joseph Müller-Brockmann" sounds awesome

Aron 2021-05-11T19:06:41.150500Z

I bet it's some dynamic css causing it, loading then unloading. I don't think this is actually something that's just CSS's problem, similar issues can arise in any context.

Aron 2021-05-11T19:07:17.151100Z

sounds like asking for an ideal framework

phronmophobic 2021-05-11T19:16:23.154700Z

I guess ideal isn't the right adjective, but any ideas for a cohesive, thoughtful approach. I think iOS is based on the https://constraints.cs.washington.edu/cassowary/. SwiftUI has some interesting ideas.

😅 1
sova-soars-the-sora 2021-05-13T13:48:40.176100Z

CSS is apparently a descendant from "let's make a magazine on the screen" and has things like "float" and "clear" because it assumes a "flow" to the "page"

phronmophobic 2021-05-11T19:16:50.155Z

backwards compatibility with CSS is non-goal

Aron 2021-05-11T19:17:43.155500Z

I see, that makes way more sense to me, said it that way, thank you

phronmophobic 2021-05-11T19:22:50.155600Z

I recently read Grid Systems in graphic design by Joseph Müller-Brockmann which was really interesting. It's the kind of approach I would be interested in, but it only covers static print. It doesn't really cover dynamic UI (it's from 1981)

rakyi 2021-05-11T20:59:11.156900Z

not exactly Clojure, but https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/ looked interesting when I checked it long time ago

👍 1
lilactown 2021-05-11T21:11:11.157600Z

facebook’s yoga is a layout engine that implements flexbox cross-platform

mauricio.szabo 2021-05-12T23:33:45.175100Z

@sova every time, if possible. Flex is quite amazing to be honest :)

sova-soars-the-sora 2021-05-13T13:34:59.175500Z

Hmm I'll have to put some time into learning what the heck it is.

lilactown 2021-05-11T21:11:32.158100Z

it is related but not exactly compatible with web’s flexbox

phronmophobic 2021-05-11T21:18:39.158500Z

seems interesting. Is there any sort of background on why things are the way they are? Like a rationale or first principles approach? I've been slowly reading through different design systems which is the closest analog I can find.

phronmophobic 2021-05-11T21:19:58.158700Z

As an example, I think "Grid Systems in graphic design" by Joseph Müller-Brockmann is the type of thing I'm looking for, but for computer UIs rather than print

phronmophobic 2021-05-11T21:22:30.158900Z

this talk is really interesting so far, https://www.youtube.com/watch?v=Ie-gqwSHQr0. thanks for the pointer!

lilactown 2021-05-11T21:34:06.159300Z

I don't know anything off hand but flexbox seems to be something that a lot of time and effort went into. I'm sure there's resources out there that goes into the background and rationale of its design

phronmophobic 2021-05-11T22:24:51.159800Z

Looking at the https://annairish.github.io/historicizing/history, it seems like it was derived from Mozilla's XUL. I didn't realize flexbox originated in 2008. This is the closest resource I could find to anything that might resemble a problem statement or rationale: http://mb.eschew.org/2 The design examples are pretty great, http://mb.eschew.org/figures/figure2.7.jpg

Max 2021-05-11T23:01:14.160200Z

So interestingly enough, Apple’s UI frameworks have used constraint-based systems for a long time and devs hate it. They’re now moving away from it with SwiftUI. I was all gung-ho on ccss and gss before I played around with the Apple version a little and I kind of get it: when the tool you have is CSS you often run into problems that feel like they’d be easier to solve with a constraint-based system, but when the tool you have is a constraint-based system, you just want the overconstrainted/underconstrained errors to go away

phronmophobic 2021-05-11T23:16:48.160400Z

Does that include designer sentiment? I think one issue that could use more work is being more thoughtful about the hand off between designers and programmers. It's hard to tell if the issue with constraints is the tooling, workflow issues between programmers and designers, or some combination of other factors.

phronmophobic 2021-05-11T23:25:45.160600Z

Just browsing the layout options in SwiftUI, it seems like it's mostly VStacks and HStacks which is reasonable from a programmer perspective, but it kind of already assumes that the paddings, frames, etc. have already been worked out by a designer. It doesn't seem to try to encode or build on top of any design system. The intended workflow seems different compared to the Interface builder approach where you could theoretically have a designer fully layout the UI and the programmer just hooks up actions.