Post B8GiBshyi2wDiO0t7o by wolf480pl@mstdn.io
 (DIR) More posts by wolf480pl@mstdn.io
 (DIR) Post #B8GhfGGQ6rSPDNZKRk by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       It's pathetic that if I want to interactively try out some OS APIs (be it POSIX, BSD socket, or Linux-specific), the easiest way to do so is not through the Unix shell, it's through Python
       
 (DIR) Post #B8GhlLZbHZo3Q2RTBQ by ellenor2000@mastodon.top
       0 likes, 0 repeats
       
       @wolf480pl wonder if I should write something using critcl #lang_en
       
 (DIR) Post #B8GhqE9AJxhLpnP8Xw by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @ellenor2000 you just reminded me tcl exists.Is tcl good?
       
 (DIR) Post #B8Gi0wAXVDKnGL9bsG by ellenor2000@mastodon.top
       0 likes, 0 repeats
       
       @wolf480pl Depends what you mean by good. I think nowadays it's starting to be slopware. #lang_en
       
 (DIR) Post #B8GiBsXhKGiNCVCg6K by ellenor2000@mastodon.top
       0 likes, 0 repeats
       
       @wolf480pl But as a language, it's not the worst thing in the world. #lang_en
       
 (DIR) Post #B8GiBshyi2wDiO0t7o by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @ellenor2000 I guess 2 things:1. is it comfortable to write programs in?2. is it backwards-compatible with 10+ year old programs?
       
 (DIR) Post #B8GiKyb4BYWoaH7Kee by ellenor2000@mastodon.top
       0 likes, 0 repeats
       
       @wolf480pl 1. I find it acceptably comfortable2. I don't commonly run other people's scripts, so I wouldn't know. The socket support didn't support IPv6 until Tcl8.6, though. #lang_en
       
 (DIR) Post #B8GinGcoka7obdQUts by sjb@mstdn.io
       0 likes, 0 repeats
       
       @wolf480pl One of Python's biggest contributions is that it wrapped easier APIs around things whose original versions were awkward or badly-documented.
       
 (DIR) Post #B8Gizfy0M900g2FmBk by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @sjb you mean how socket.bind is a method instead of taking a sockfd, and takes a tuple instead of struct sockaddr?
       
 (DIR) Post #B8Gj97yHbbPe8atGym by sjb@mstdn.io
       0 likes, 0 repeats
       
       @wolf480pl Yeah when those original structures were invented I don't think scripting languages like Python or JavaScript were really a widespread thing.Using tuples and more flexible objects makes it easier to interact with (but slower of course).Which is why I say Python has great libraries, while the language itself is slow and meh.
       
 (DIR) Post #B8GjGNTKNA28EtruCm by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @sjb btw. have you seen OpenWrt's ucode language?
       
 (DIR) Post #B8GjSmeaZcy3oW3G1Q by sjb@mstdn.io
       0 likes, 0 repeats
       
       @wolf480pl Not seen it before, but ECMAScript/JavaScript implementations are far faster than Python as raw languages.
       
 (DIR) Post #B8GjhU169DH0M8ab5M by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @sjb I don't think they're using a state-of-the-art ECMAScript interpreter, and I don't even think they're going for 100% ECMAScript compliance.I'd say it's more of a Lua's spirit with JS-inspired syntax.A small (fits in your brain at once) language with a lightweight interpreter, and bindings for system APIs, so that you can write thin glue in it.
       
 (DIR) Post #B8Gjrbo22fy5PTJ1uK by CyReVolt@mastodon.social
       0 likes, 0 repeats
       
       @wolf480pl or just Rust :3
       
 (DIR) Post #B8Gju04om7KnGOIWcS by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @CyReVolt does Rust have a REPL?
       
 (DIR) Post #B8Gk02kvj7FDJIsRBQ by CyReVolt@mastodon.social
       0 likes, 0 repeats
       
       @wolf480pl Does NeoVim + language server + hot keys count? 🥺
       
 (DIR) Post #B8Gk6dLuZhFiY9JjTE by wolf480pl@mstdn.io
       0 likes, 0 repeats
       
       @CyReVolt idk, the idea is that it preserves state between interactions