This is a great example of why I love working in Factor: basically everything is a DSL. Here, you’re seeing the multithreaded server DSL, which lets you implement a Gopher server in an incredibly brief amount of code. The client was equally short. Yet I think that both are readable, provided you know the underlying DSL.
Yeah it really tickled my fancy when I read it. I’ve not done much with Factor but it’s definitely something I enjoy the idea of.
In particular I think the way DUP and DROP are used is interesting and got me thinking about the ways a stack based architecture can help overcome complexity.
This is a great example of why I love working in Factor: basically everything is a DSL. Here, you’re seeing the multithreaded server DSL, which lets you implement a Gopher server in an incredibly brief amount of code. The client was equally short. Yet I think that both are readable, provided you know the underlying DSL.
Yeah it really tickled my fancy when I read it. I’ve not done much with Factor but it’s definitely something I enjoy the idea of.
In particular I think the way DUP and DROP are used is interesting and got me thinking about the ways a stack based architecture can help overcome complexity.