understatement 

consciousness is a while(true) loop with extra steps

understatement 

@icedquinn every loop is a while(true) loop with extra steps

Follow

understatement = CW? 

@Archivist understatement?

What if we move to functional programming and forget about mutable loops at all?

understatement = CW? 

@worldsendless well, for optimization purposes, there are only infinite loops except sometimes

Also, well I use languages without actual loops a lot (or where you are discouraged to use loops because only two flavours exist: infinite and while loops)

I prefer recursion or abstracted loops when the language have them

But hey when I do Elixir I don't have to question which loop to use

understatement = CW? 

@Archivist How does Elixir do it?

understatement = CW? 

@worldsendless recursion, recursion everywhere, except when you make an actor handle the job in which case you just relegate the recursion to someone else :blobnomcookie:

understatement = CW? 

@Archivist Sounds like it has the kind of clean TCO that Java (Clojure) lacks, which slows down writing recursion just a enough to make room for list comprehension

understatement = CW? 

@worldsendless but sometimes I do the mad scientist thing where I write a C++ library to do what is too slow or what would be disgracefully verbose and slow to write in Elixir and link it. It however requires great care to do because the Elixir runtime does not like it when your C or C++ code goes unruly

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.