Better HN
topnewbestaskshowjobs
Log inSign up

phronmophobic

5 karma · joined Feb 1, 2011 (15y ago) · 10 submissions

Submissions

1.

Dynamicland Nonprofit Narrative (2020) [pdf](dynamicland.org ↗)

1 points · by phronmophobic · 10mo ago · discuss

comment 10mo ago · link · parent

Will do!

comment 10mo ago · link · parent

The best description of what I mean by data is https://www.infoq.com/presentations/Value-Values/.

> why existing IDEs miss the mark? There are definitely lots of IDEs that do cool things, but are missing one or more items from my wish list.

With respect to data orientation, most IDEs don't represent information as immutable data. If all internal state uses immutable data, it's much easier and safer to share. If everything is mutable, then sharing data is hard, which why most IDEs don't have pervasive sharing. As an example of an IDE that does provide access to data pervasively, but makes very different trade-offs than Easel, see https://gtoolkit.com/.

Using an IDE where all the tools take data and share data has dramatically changed my workflow. You can sort of get this feeling when you pipe together a bunch of shell commands `find ... | grep ... | tee ... | nc ... | etc...`. However, I think 1) sharing data rather than strings and 2) having a 2D graphical user interface is a big upgrade from piping shell commands.

comment 10mo ago · link · parent

I did consider that. I think it's possible, but there are a few challenges:

- It's much harder for components in separate processes to share data efficiently

- Window managers tend to be OS dependent. I want something that is cross-platform

- Coordinating components in separate, asynchronous processes is hard

- Working with OS window APIs is more annoying than writing a layout library

comment 4y ago · link · parent

> although I'll note that there are plenty of ways (most of them via Java interop) to introduce mutability of some kind into a Clojure program besides the first-class reference types (atoms/refs/agents/volatiles.)

Fair point, I tried to word that statistic accurately without being too verbose.

> I'd be interested in an analysis in what percentage of Clojure functions are truly referentially transparent, but that's difficult (if not impossible) to determine statically.

Absolutely, I'm not sure it's possible or even practical to measure functional purity in an absolute sense, but there's definitely room for improvement:

- measure Java Interop

- measure usage of mutation functions (eg. swap!, set!, binding, send, vswap!, alter, etc)

- measure (def ^:dynamic *my-var*) usages

My intuition is that the numbers wouldn't change that much, but I'd rather have the data than guess.

comment 5y ago · link · parent

Every software architecture promises to make your software better and easier so the subheading is mostly buzzword "noise". It's unclear what makes polylith different other than it claims it's more functional. I've tried to click through to understand what Polylith means in practice.

Is it?

- read through our book and you'll become better at designing great code

- read through our book and learn how to refactor your current codebase into a better codebase

- use our tools and you'll build better systems in less time

- use our libraries and you'll build better systems in less time

- buy into our ecosystem and get lots of pluggable components

- something else?

Conceptually, I get that better design can improve development workflows, but it's hard to tell where the rubber meets the road when it comes to polylith. When I read the transitioning to polylith, it sounds like I have to download some new tool, "import" all my code, and then I rewrite all the code? That sounds like a lot of work and I still don't know what the that means in practical terms.

comment 6y ago · link · parent

Thanks! More complicated layout strategies are easy to integrate, but spacer works really well for examples since most people can intuit what the result will look like.

Skia has worked well so far. Since it's used by Chrome, Android, and Firefox under the hood, it means that I can reach a lot of platforms "for free".

comment 6y ago · link · parent

If you're interested in desktop alternatives for clojure, check out https://github.com/phronmophobic/membrane. It's different from javafx in that all the event handling code is pure clojure. For graphics, it uses skia, https://skia.org/.

comment 7y ago · link · parent

All of the core.async operations having blocking versions (eg. >!! vs. >!) which means you can use your own threads/thread pools for any work, if needed. Basically, you create your own threads instead of using go blocks and then use the blocking operations, >!!, <!!, alts!!, alt!!, etc.

comment 12y ago · link · parent

I've found that maxing out the key repeat rate makes life better. System Preferences > Keyboard. Select the keyboard tab then move the Key Repeat slider all the way to the right.