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/
flowthing 2020-09-28T11:47:04.052Z

Well, here’s something you can’t do with Clojure: https://github.com/codemix/ts-sql

2020-09-28T14:46:04.052700Z

there’s many things clojure can’t do, luckily

flowthing 2020-09-28T15:10:35.053400Z

Yeah, just to be clear, my comment was tongue in cheek. 🙂

schmee 2020-09-28T15:29:32.054100Z

here is a actual quote from the top comment on ts-sql on hackernews: > TypeScript is becoming such a compelling language due to its insanely advanced type system (that allows for projects like this) that I now want to use it everywhere. I want it to become the next Python.

schmee 2020-09-28T15:31:05.054400Z

I… don’t know what to say about that 😐

dpsutton 2020-09-28T15:32:45.056Z

doesn't seem that crazy to me. js runtimes everywhere. TS adds a gradual typing system with compelling features. package management is better than python. I don't think they are wanting packages written in this style (this is just flexing on the type system) but just kinda amazed that this is possible

dpsutton 2020-09-28T15:33:29.057300Z

reminds me of aphyr solving the 8 queens problem in the haskell type system

2020-09-28T15:33:35.057500Z

I only skimmed the README of that project -- is the type system basically so dynamic at run time that it can represent arbitrary collections, containing data that is unknown when the program starts executing?

dakra 2020-09-28T15:33:36.057600Z

That's because we're all blub programmers http://www.paulgraham.com/avg.html

2020-09-28T15:34:26.058500Z

Or does that project SQL-TS somehow restrict you to performing SQL queries at compile time?

schmee 2020-09-28T15:35:32.059500Z

I posted the quote to highlight how incredibly different people’s perspectives are: personally, “being able to write an SQL database in the type system” is waaay down on the list of features I look for a programming language

➕ 1
dpsutton 2020-09-28T15:45:34.061400Z

but an advanced and expressive type system is desirable. I would love a gradual row polymorphism type system with inference in clojure.

➕ 1
2020-09-28T16:59:39.063100Z

I like the way zig does things. it's a C replacement, and instead of preprocessor / includes / macros you can just use the full language at compile time (except unlike lisp you don't use the language to create new forms to compile, it's used to eg. calculate object sizes for allocation, or validate that certain error conditions are handled)

👍 1
Mno 2020-09-28T17:40:21.063300Z

That was both terrifying and amazing