Recent comments in /f/church_of_alonzo_church
call_cc wrote
Reply to TWENTY FIRST CENTURY LISPER MAN by no_defun_allowed
An observation by John McCarthy
Moonside wrote
Reply to comment by twovests in pseudocode is imperative propaganda: cmv by no_defun_allowed
The curious thing is that I've never really seen functional language pseudo being written. But then again I'm not a serious programmer or a software engineer.
twovests wrote
Reply to comment by Moonside in pseudocode is imperative propaganda: cmv by no_defun_allowed
i guess in a functional language pseudocode would replace larger swathes than just adding something_else_magical
but tbh i only ever used pseudocode imperatively :c
Moonside wrote
Reply to comment by twovests in pseudocode is imperative propaganda: cmv by no_defun_allowed
Tbh in that specific case I'd just use mathematics:
f(n+1) = f(n) * g(f(n))
which is almost an implementation in some functional languages. (Nb. it's very nice to be able to use n+1
or 2n
style notation in parameters, it can clean up expressions a lot.) Obviously the base case ought to be treated somehow, but that's besides the point.
I would say that ad hoc usage of pseudocode seems innocuous to me - sometimes you have improvise and there's not an common agreed upon system to draw on. Perfect is the enemy of the good. But I think its virtues as a tool for planning and documentation aren't great. If you go forth and plan or prototype your project in pseudo before implementation, why?
I'm speculating here as I don't have access to any empirical research treating this topic.
twovests wrote
Reply to comment by Moonside in pseudocode is imperative propaganda: cmv by no_defun_allowed
I like using pseudocode when there's a lot of magic that needs to happen and you want people to know what that will look like.
magic_fib (n) = magic_fib(n - 1) * something_else_magical(magic_fib(n - 1))
mm_ wrote
ha thank you for this meditation professor church
musou wrote
the M in M-x
stands for Miku
Moonside wrote
I've never seen a system of pseudocode that I've liked. Basically it's too concrete for planning and too abstract to be of much help when writing code. It seems to come from an era when procedural coding was all that was agreed to matter.
musou wrote
u are right and u should say it!!!!
devtesla wrote
Reply to A pie chart of the categories in the repository `boyEstrogen/Anime-Girls-Holding-Programming-Books` by no_defun_allowed
went to the repository and was disappointed that most were photoshopped
no_defun_allowed wrote
Reply to church encoding meme by musou
yes
no_defun_allowed OP wrote (edited )
Reply to comment by neku in for really big mistakes by no_defun_allowed
it's about third-third-third programmer jokes, weirdness, and misuse of common meme templates to me, so i suppose there's something for everyone to enjoy
neku wrote
Reply to for really big mistakes by no_defun_allowed
i dont know what the posts in this subreddit mean but i like to click on them and be like ... :)
no_defun_allowed OP wrote
Reply to comment by musou in impossible goal: get /r/lispmemes more subscribers than /r/rustjerk by no_defun_allowed
thankyou very much
musou wrote
just subbed
Moonside wrote
Reply to lambda the ultimate meme by no_defun_allowed
R is just fucking weird.
no_defun_allowed OP wrote
Reply to comment by musou in lambda the ultimate meme by no_defun_allowed
thankies
musou wrote
Reply to lambda the ultimate meme by no_defun_allowed
this is a good meme
musou wrote
Reply to comment by no_defun_allowed in weenie time by no_defun_allowed
i do too but the syntax feels weird to me in a language that is more like lisp
no_defun_allowed OP wrote
Reply to comment by musou in weenie time by no_defun_allowed
I like prolog though ):
musou wrote
Reply to comment by no_defun_allowed in weenie time by no_defun_allowed
yeah it's basically erlang without the freaky prolog style syntax
no_defun_allowed OP wrote
Reply to comment by musou in weenie time by no_defun_allowed
looks like ruby to me tbh, props for the macros tho
musou wrote
Reply to weenie time by no_defun_allowed
is elixir a lisp
no_defun_allowed wrote
Reply to can i truly be Functional if i am using Sockets? are Sockets not a type of Side Effect? by twovests
if you put it in a moooooonad no one will notice