Post 2375252 by Wolf480pl@niu.moe
(DIR) More posts by Wolf480pl@niu.moe
(DIR) Post #2375089 by sir@cmpwn.com
2018-12-28T19:22:38Z
2 likes, 3 repeats
https://git.sr.ht/~sircmpwn/dotfiles/tree/master/bin/language-picker
(DIR) Post #2375233 by Wolf480pl@niu.moe
2018-12-28T19:27:01Z
0 likes, 0 repeats
@sir do you accept patches?
(DIR) Post #2375244 by sir@cmpwn.com
2018-12-28T19:28:20Z
1 likes, 0 repeats
@Wolf480pl only if they mesh with my highly opinionated views on this subject
(DIR) Post #2375252 by Wolf480pl@niu.moe
2018-12-28T19:28:54Z
0 likes, 0 repeats
@sir what would you recommend for someone writing a compiler for research purposes?
(DIR) Post #2375297 by sir@cmpwn.com
2018-12-28T19:29:20Z
1 likes, 0 repeats
@Wolf480pl compilers are first written in C, then in themselves
(DIR) Post #2375345 by Wolf480pl@niu.moe
2018-12-28T19:32:13Z
0 likes, 0 repeats
@sir IMO writing a compiler in C would be a pain. I'm currently writing one in Haskell and it's very convenient.And if your goal is correctness and not performance (especially if the second compiler will be self-hosting), then I'd definitely recommend Haskell rather than C.
(DIR) Post #2375431 by sir@cmpwn.com
2018-12-28T19:35:49Z
1 likes, 0 repeats
@Wolf480pl I think a better answer is "I don't write research software so my opinions probably don't work well here"
(DIR) Post #2375560 by epicmorphism@satania.space
2018-12-28T19:37:31.681433Z
0 likes, 0 repeats
@sir >tfw no Haskell/OCaml:(
(DIR) Post #2375561 by sir@cmpwn.com
2018-12-28T19:38:45Z
1 likes, 0 repeats
@epicmorphism deliberate
(DIR) Post #2375565 by ivan@vucica.net
2018-12-28T19:40:47.086237Z
0 likes, 0 repeats
@sir@Wolf480plThere isn't really anything I would write in Haskell unless forced to. That one semester at university was enough, and I managed to avoid touching Ganeti source code beyond the Python parts. (Close call.)
(DIR) Post #2375578 by Wolf480pl@niu.moe
2018-12-28T19:41:28Z
0 likes, 0 repeats
@ivan You don't like Haskell? :(What's so bad about it?
(DIR) Post #2375635 by epicmorphism@satania.space
2018-12-28T19:41:05.829256Z
0 likes, 0 repeats
@sir there is no choice of typed FP in the script senpai
(DIR) Post #2375636 by sir@cmpwn.com
2018-12-28T19:41:54Z
0 likes, 0 repeats
@epicmorphism correct
(DIR) Post #2375640 by ivan@vucica.net
2018-12-28T19:45:09.906399Z
0 likes, 0 repeats
@Wolf480plType system makes for a nice start :-)Being overly functional is a nice second :-)(There are some problems neatly solvable by being functional. Not many though. I don't care to write either GUI apps or games in anything resembling Haskell.)(Oh, and seeing an expert stare at a simple bug in a simple list processing algorithm a few years ago does nothing to make me believe Haskell is a language worth sacrificing development velocity for. The price is too high.)
(DIR) Post #2375774 by sir@cmpwn.com
2018-12-28T19:47:44Z
0 likes, 1 repeats
Updates: added lisp and a summary of why some languages are never recommended
(DIR) Post #2375970 by Wolf480pl@niu.moe
2018-12-28T19:56:00Z
0 likes, 0 repeats
@ivan well, I never thought Haskell would be good for GUI apps or for games.I've only really written compilers and interpreters in it.I think it shines if you have multi-level recursive data structures.Unfortunately I can't relate to your complaints about its type system or being overly functional, as I happen to like functional programming, static checks, and abstraction layers...
(DIR) Post #2376850 by doesntgolf@octodon.social
2018-12-28T20:23:13Z
0 likes, 0 repeats
@sir I like this format! Here's my take:$ cat bin/language-picker#!/usr/bin/env luaprint("How about lua?")
(DIR) Post #2379379 by ivan@vucica.net
2018-12-28T22:01:14.571986Z
0 likes, 0 repeats
@Wolf480plMaybe it shines, but I just don't think it's worth it. Lisp has its fans as well, but for me, implementing anything in Emacs was a pain...
(DIR) Post #2379556 by Wolf480pl@niu.moe
2018-12-28T22:07:52Z
1 likes, 0 repeats
@ivan well, if you don't enjoy it, it's probably not worth it :/
(DIR) Post #2380351 by _emacsomancer@linuxrocks.online
2018-12-28T22:39:54Z
0 likes, 0 repeats
@sir But which Lisp?
(DIR) Post #2380631 by sir@cmpwn.com
2018-12-28T22:50:18Z
0 likes, 0 repeats
@_emacsomancer a theoretical lisp dialect which none of the currently-popular lisps qualify for
(DIR) Post #2380690 by skybrian@cmpwn.com
2018-12-28T22:51:27Z
0 likes, 0 repeats
@sir for mobile I'd ask if a website can do the job and if so do that.
(DIR) Post #2380732 by _emacsomancer@linuxrocks.online
2018-12-28T22:51:50Z
0 likes, 0 repeats
@sir Why would Common Lisp not qualify?(I do somewhat like the world where the relevant languages are C, Go, Python, and 'LISP'.)
(DIR) Post #2380781 by sir@cmpwn.com
2018-12-28T22:52:11Z
0 likes, 0 repeats
@_emacsomancer as I said to someone else, "for lots of reasons and I'm tired of explaining why I don't like everyone's favorite programming langauge"
(DIR) Post #2380867 by pounce@cmpwn.com
2018-12-28T22:59:07Z
0 likes, 0 repeats
@sir if go isn't garbage why does it have a garbage collector :thaenkin:
(DIR) Post #2380903 by _emacsomancer@linuxrocks.online
2018-12-28T22:59:17Z
0 likes, 0 repeats
@sir I wasn't asking why you do/don't like CL, just why how it differed from your theoretical 'Lisp' dialect. But I suppose 'lots of reasons' addresses that question as well.
(DIR) Post #2384600 by pea@fuckonthefirst.date
2018-12-29T01:33:53.444249Z
0 likes, 0 repeats
@sir out of curiosity, what're your opinions on elixir/erlang?my take is that they're very domain specific but there's very little reason to use anything other than them in the specific domains where they're useful
(DIR) Post #2384608 by sir@cmpwn.com
2018-12-29T01:34:10Z
1 likes, 0 repeats
@pea -1 to erlang, "it's complicated" to elixir