💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-05-07.txt captured on 2024-06-16 at 13:36:13.

View Raw

More Information

⬅️ Previous capture (2022-06-04)

-=-=-=-=-=-=-

[2022-05-07T01:45:04Z] <ioraff> top
[2022-05-07T05:27:12Z] <testuser[m]> Hi
[2022-05-07T05:27:29Z] <ioraff> howdy
[2022-05-07T05:28:55Z] <testuser[m]> ioraff: https://github.com/kiss-community/repo/commit/3ca6426196c74b59c03d4908c613a72e976206c6
[2022-05-07T05:29:04Z] <testuser[m]> Would the mv commands break gnu patch?
[2022-05-07T05:31:01Z] <ioraff> they shouldn't. afaik the only file affected by patch is the one after +++, but I'll try right now
[2022-05-07T05:36:44Z] <ioraff> fixed. needed to move the mozwayland.h mv before the patches
[2022-05-07T08:13:51Z] <testuser[m]> https://0x0.st/om--.mp4
[2022-05-07T12:47:23Z] <midfavila> Hello again, #kisslinux.
[2022-05-07T13:44:54Z] <phoebos> o/
[2022-05-07T13:45:58Z] <phoebos> https://github.com/neomutt/neomutt/commit/034d856199be7cd9eef903f859e980da84bbe550 yay
[2022-05-07T13:46:40Z] <midfavila> reminds me that I need to take another stab at rewriting mtm
[2022-05-07T14:10:39Z] <phoebos> this: https://github.com/deadpixi/mtm?
[2022-05-07T14:10:48Z] <midfavila> yeah
[2022-05-07T14:11:02Z] <midfavila> really primitive multiplexer, but I like it more than tmux or screen
[2022-05-07T14:11:10Z] <midfavila> unfortunately it relies quite a bit on GNU Curses
[2022-05-07T14:11:17Z] <midfavila> ... at least, I think ncurses is gnu?
[2022-05-07T14:11:34Z] <midfavila> huh, it's not
[2022-05-07T14:11:37Z] <midfavila> x11 license
[2022-05-07T14:11:46Z] <midfavila> anyway, it relies on ncurses functions that nbsd curses doesn't have
[2022-05-07T14:12:27Z] <testuser[m]> use termbox
[2022-05-07T14:12:30Z] <phoebos> the makefile is a mess
[2022-05-07T14:12:48Z] <phoebos> needs a wgetscrreg
[2022-05-07T14:13:34Z] <midfavila> yeah obvs, but that seems to be from ncurses, and replacing ncurses with nbsd curses breaks the build, so
[2022-05-07T14:13:42Z] <midfavila> maybe I made the incorrect assumption that nbsd curses doesn't have it, idk
[2022-05-07T14:14:00Z] <phoebos> no, nbsd curses doesn't have wgetscrreg
[2022-05-07T14:14:11Z] <phoebos> but that's the only thing i think
[2022-05-07T14:14:16Z] <midfavila> yeah, afaik it is
[2022-05-07T14:14:24Z] <phoebos> what's wrong with tmux
[2022-05-07T14:14:33Z] <midfavila> i just... don't like it :v
[2022-05-07T14:14:35Z] <phoebos> this looks like a smaller tmux
[2022-05-07T14:14:41Z] <midfavila> i've tried it in the past and I find it to be clunky and more than I need
[2022-05-07T14:14:42Z] <testuser[m]> midfavila: how's math
[2022-05-07T14:14:46Z] <phoebos> lol
[2022-05-07T14:14:57Z] <midfavila> math is going okayish, been focusing more on programming lately
[2022-05-07T14:15:22Z] <midfavila> now that I'm done with my internship and college (for the most part, anyway) I'll be able to spend more time doing stuff I actually care about
[2022-05-07T14:15:34Z] <midfavila> just finishing up the little schemer this morning, it's a wonderful little book
[2022-05-07T14:15:35Z] <testuser[m]> jerb?
[2022-05-07T14:15:49Z] <midfavila> no jerb for me
[2022-05-07T14:15:50Z] <midfavila> not yet anyway
[2022-05-07T14:17:48Z] <phoebos> i found a copy of the little schemer, but i have no idea how to read it
[2022-05-07T14:17:55Z] <phoebos> it doesn't make much sense to me
[2022-05-07T14:17:58Z] <midfavila> read it like a dialogue
[2022-05-07T14:18:14Z] <midfavila> left column is from an idealized student, right column is a response from the authors
[2022-05-07T14:18:30Z] <midfavila> it's kind of clunky at times, though, and I don't like how they treat some of the more advanced topics that are covered
[2022-05-07T14:18:39Z] <midfavila> namely their explanations of continuations
[2022-05-07T14:18:42Z] <phoebos> it's a weird weird way to learn
[2022-05-07T14:18:53Z] <midfavila> yeah, it's strange, but when it works it works
[2022-05-07T14:19:21Z] <midfavila> although I'm definitely looking forward to going back to a more mundane expository style :v
[2022-05-07T14:19:32Z] <midfavila> there are a bunch of bits where they're like "write this thing"
[2022-05-07T14:19:39Z] <midfavila> and then I spend a half hour or more trying to write the thing,
[2022-05-07T14:19:49Z] <midfavila> and then I give up and check the right hand side, only to see "we didn't expect you to be able to"
[2022-05-07T14:19:54Z] <phoebos> lmao
[2022-05-07T14:19:55Z] <midfavila> feels like a cruel joke in some ways, pff
[2022-05-07T14:20:12Z] <phoebos> K&R is the platonic ideal of an introductory programming book
[2022-05-07T14:20:24Z] <midfavila> eeeeeeeeeehmaybe
[2022-05-07T14:20:39Z] <phoebos> pretty much
[2022-05-07T14:20:41Z] <midfavila> i think K&R has good style, but the pacing can be fast at times and it assumes the reader has a CS background
[2022-05-07T14:20:47Z] <midfavila> pretty sure it states the latter in the preface
[2022-05-07T14:21:13Z] <midfavila> it's a good book to base your language's manual on, but I wouldn't hand it to someone who was in my state when I learned C
[2022-05-07T14:21:19Z] <midfavila> well, "learned" "C"
[2022-05-07T14:21:22Z] <phoebos> lol
[2022-05-07T14:21:47Z] <testuser[m]> midfavila: what kinda jerb would u do
[2022-05-07T14:21:48Z] <phoebos> generally, i think it's better for a book to be more complicated, so that i have to look up stuff, rather than boring and overexplaining
[2022-05-07T14:21:53Z] <midfavila> like, don't get me wrong, I walked away with a pretty decent grasp of C89's syntax and basic semantics and stuff, which is all the book claims it's good for,
[2022-05-07T14:22:04Z] <midfavila> but then I can't go and actually do anything with it?
[2022-05-07T14:22:18Z] <phoebos> s/i have to look up stuff/i have stuff to look up/
[2022-05-07T14:22:27Z] <midfavila> obvious the idea is to pair it with the Unix programmer's manual, but... point remains
[2022-05-07T14:22:48Z] <midfavila> testuser[m] re:jerbs I'm hoping to do independent security research soon:tm:
[2022-05-07T14:23:31Z] <midfavila> in terms of a more concrete response I don't have enough knowledge to really decide what I want to do, but contracting seems like a decent way to coast until I do 
[2022-05-07T14:23:42Z] <midfavila> pick up a little more experience, learn how things work in a practical setting, etc
[2022-05-07T14:23:43Z] <testuser[m]> rich
[2022-05-07T14:23:48Z] <testuser[m]> im gonna webscale
[2022-05-07T14:24:19Z] <midfavila> and I mean, having the book provide hints for things for you to look up is definitely a good thing, phoebos
[2022-05-07T14:24:28Z] <midfavila> there's lots of neat material in TLS that I've spent hours reading about
[2022-05-07T14:24:34Z] <midfavila> currying for example is really, really cool
[2022-05-07T14:25:03Z] <phoebos> K&R might not teach you how to do eg networking, but you've got syscall manpages for that
[2022-05-07T14:25:23Z] <phoebos> networking? network programming?
[2022-05-07T14:25:40Z] <midfavila> but like, for example, when I was reading K&R and they started talking about data structures and sorting algorithms and stuff, because of the pacing and assumptions made about the reader's experience, it doesn't make me want to learn more, it makes me want to put the book down and walk away for a while
[2022-05-07T14:26:01Z] <midfavila> because it's just too much for an introductory experience
[2022-05-07T14:26:26Z] <midfavila> "here's recursion and here's trees and here's shellsort and here's all this syntax and here's an assignment go write the thing based off this example bye"
[2022-05-07T14:27:26Z] <midfavila> also networking as a verb would work fine there, I think
[2022-05-07T14:27:34Z] <phoebos> tbf i didn't follow it through doing every exercise like you and dilyn, i did at the beginning, but then dipped around
[2022-05-07T14:27:44Z] <midfavila> that's probably a better way to use textbooks
[2022-05-07T14:27:51Z] <midfavila> i just sit down and brain-dump things 
[2022-05-07T14:28:00Z] <phoebos> dipping around seems to be more difficult with TLS
[2022-05-07T14:28:14Z] <midfavila> well, yeah, 'cause like I said, it's a dialogue
[2022-05-07T14:28:29Z] <midfavila> so each chapter is written assuming you've at least skimmed the former and understand its material well
[2022-05-07T14:31:03Z] <phoebos> yeah that slightly overwhelms me
[2022-05-07T14:31:10Z] <midfavila> that's fair
[2022-05-07T14:31:34Z] <midfavila> although fwiw it's a very quick read
[2022-05-07T14:32:09Z] <midfavila> very small book that covers some very big ideas very succinctly
[2022-05-07T14:32:47Z] <midfavila> which is what I like about it, I think. most of my time working through it has been spent thinking about the ideas presented and their implications, not actually reading the book
[2022-05-07T14:32:55Z] <phoebos> cool
[2022-05-07T14:33:24Z] <midfavila> it's cool sometimes
[2022-05-07T14:33:32Z] <midfavila> and then you get to chapters 8 and 9
[2022-05-07T14:33:57Z] <midfavila> and it just annihilates you with continuations and recursive lambdas
[2022-05-07T14:35:54Z] <midfavila> http://0x0.st/omHo.scm
[2022-05-07T14:36:01Z] <midfavila> this is a good example of the latter
[2022-05-07T14:36:12Z] <midfavila> not nearly as bad as continuations, but still a little tricky
[2022-05-07T14:36:39Z] <phoebos> ouch
[2022-05-07T14:36:49Z] <midfavila> yeah, it's kind of gross
[2022-05-07T14:37:16Z] <midfavila> but hey, if you ever need to define the concept of a loop, there you go
[2022-05-07T14:38:39Z] <phoebos> i'm sure there are parts of things that lisp is useful for, but it makes a lot more sense to me to program imperatively
[2022-05-07T14:39:07Z] <midfavila> i feel like if i were to pick up C again i'd find it really restrictive
[2022-05-07T14:39:44Z] <midfavila> in particular i'd miss lexical scoping, first-class functions and block structure
[2022-05-07T14:40:25Z] <midfavila> and I mean, lisp is useful for AI, mathematics and (apparently, according to some dude on computerphile) quantum computing, among other things
[2022-05-07T14:40:41Z] <midfavila> plus, there's nothing saying you can't program imperatively in lisp
[2022-05-07T14:40:59Z] <midfavila> iirc it wasn't until scheme that lisps had "functional" capabilities
[2022-05-07T14:41:58Z] <midfavila> then there's the whole separate namespaces for functions and variables business
[2022-05-07T14:45:11Z] <phoebos> it confused me how to do something like `int a = foo(); int b = bar(a); c = a + b;`. or socket programming: `int s = socket(...); connect(s, ...); return s;`
[2022-05-07T14:45:46Z] <midfavila> in scheme, you mean?
[2022-05-07T14:45:51Z] <phoebos> yes
[2022-05-07T14:49:16Z] <midfavila> if you wanted a direct translation, you'd have to use (set!): (set! a (foo args)) (set! b (bar a)) (set! c (+ a b))
[2022-05-07T14:49:36Z] <midfavila> although I've never wrote any programs with side-effects in scheme before, so ymmv
[2022-05-07T14:50:24Z] <midfavila> i'd prefer to write a function that accepts A and returns (+ (foo) (bar (foo)))
[2022-05-07T14:50:39Z] <midfavila> the whole expression is kind of clunky though
[2022-05-07T14:50:46Z] <phoebos> mmm. when i had a proper go at scheme i didn't get to the point where i was thinking in the right paradigm, i was still trying to convert a c-like algorithm into sexprs
[2022-05-07T14:51:01Z] <midfavila> good luck with that >.<
[2022-05-07T14:51:06Z] <midfavila> C and Scheme are almost total opposites
[2022-05-07T14:51:10Z] <phoebos> aye
[2022-05-07T14:51:34Z] <midfavila> a while ago I decided to just... forget everything I learned in school or from textbooks and start fresh
[2022-05-07T14:51:56Z] <midfavila> being able to just accept that things are the way they are can help a lot with understanding things
[2022-05-07T14:52:15Z] <midfavila> not that that's a very useful remark in this context
[2022-05-07T14:52:39Z] <midfavila> https://www.cs.utexas.edu/users/EWD/transcriptions/EWD10xx/EWD1036.html
[2022-05-07T14:52:50Z] <midfavila> somewhat relevant rambling by dijkstra
[2022-05-07T14:54:28Z] <midfavila> re: network programming in scheme, that would depend on your implementation
[2022-05-07T14:54:50Z] <midfavila> since R6RS (the current complete standard for scheme) doesn't describe networking libraries
[2022-05-07T14:55:22Z] <midfavila> i bet R7RS-L will address it though
[2022-05-07T14:56:58Z] <phoebos> > i'd prefer to write a function that accepts A and returns (+ (foo) (bar (foo)))
[2022-05-07T14:57:07Z] <phoebos> in C i have the flexibility to do either
[2022-05-07T14:57:22Z] <phoebos> in scheme it makes by far more sense to do the latter
[2022-05-07T14:57:24Z] <midfavila> you also know more about C than I would about scheme fwiw
[2022-05-07T14:58:01Z] <midfavila> there's certainly a way to do it, I just don't know of an elegant solution
[2022-05-07T14:58:38Z] <midfavila> like, for context, I've done a little of SICP, HtDP and most of TLS, and nothing I've read even covers variable assignment, because that's kind of a Big Deal in scheme
[2022-05-07T14:58:58Z] <phoebos> i'm sure there is. i feel myself becoming too deep in C to be able to see other ways of doing things
[2022-05-07T14:59:29Z] <midfavila> i mean, you said you're trying to basically implement C in Scheme, so yeah, maybe a bit
[2022-05-07T14:59:56Z] <midfavila> i think that's another thing I like about TLS, SICP, HtDP etc
[2022-05-07T15:00:00Z] <midfavila> they're not "scheme books"
[2022-05-07T15:00:06Z] <midfavila> in the way that K&R is a C book
[2022-05-07T15:00:38Z] <midfavila> they just... use scheme as a vehicle for talking about ideas. so you can take a lot of information from each and use it in most languages
[2022-05-07T15:01:21Z] <midfavila> also I just realized that the function accepting A that I wrote never uses A, durr
[2022-05-07T15:01:24Z] <midfavila> need to go make some tea
[2022-05-07T15:01:37Z] <midfavila> and like, maybe eat breakfast
[2022-05-07T15:01:44Z] <midfavila> been up for six hours and haven't had either so far
[2022-05-07T15:02:49Z] <phoebos> eek. my exams start on wednesday and i'm still trying to finish watching the lectures
[2022-05-07T15:10:01Z] <midfavila> get rekt nerd
[2022-05-07T15:12:36Z] <phoebos> you've finished uni?
[2022-05-07T15:12:50Z] <midfavila> I fucking wish lmao
[2022-05-07T15:12:58Z] <midfavila> I can't attend uni because the pandemic fucked me during high school
[2022-05-07T15:13:12Z] <phoebos> damn
[2022-05-07T15:13:55Z] <midfavila> just started my eleventh year when schools shut down, after a year of everyone being away they were like "we can't just not push out graduates" and they bumped everyone ahead a year
[2022-05-07T15:14:09Z] <midfavila> so I had two semesters to cram out the rest of my high school credits 
[2022-05-07T15:14:38Z] <midfavila> as a result I wasn't able to take the classes necessary to meet the entry requirements of the local unis
[2022-05-07T15:14:42Z] <midfavila> so, meh
[2022-05-07T15:14:57Z] <midfavila> just gonna spend a few years studying on my own terms instead
[2022-05-07T15:17:49Z] <phoebos> oh i see
[2022-05-07T15:18:25Z] <phoebos> college != uni ?
[2022-05-07T15:49:32Z] <midfavila> not here
[2022-05-07T15:49:37Z] <midfavila> sorry for the late reply, had stuff to do
[2022-05-07T15:50:49Z] <midfavila> i guess if I had to tier it, it goes primary->secondary->tertiary where tertiary is either college, which is basically just skilled labor, uni which is more theoretical stuff and highly specialized degrees, or trade school
[2022-05-07T15:51:57Z] <midfavila> idea being if you just want a not totally shit job you go to college and take a part-time course in a particular skill (e.g management, IT, civil engineering), if you want an academic career you go to uni, and if you just want to work with your hands you go apprentice with someone
[2022-05-07T15:52:14Z] <midfavila> ...and then I guess there's also the military, pff
[2022-05-07T15:52:25Z] <midfavila> but I couldn't join if I wanted to
[2022-05-07T16:21:44Z] <midfavila> and now there are combinators in the mix
[2022-05-07T16:21:57Z] <midfavila> christ, what a concept
[2022-05-07T19:02:41Z] <phoebos> midfavila: is currying like xargs
[2022-05-07T19:07:11Z] <noocsharp> currying is just evaluating a function with respect to some of its arguments, but leaving other arguments unevaluated
[2022-05-07T19:08:51Z] <noocsharp> which is not possible in programming languages where functions have side effects
[2022-05-07T19:52:03Z] <midfavila> that's certainly a way to describe it. from what little I've read the main application has been to reduce multi-parameter functions to smaller single-argument functions. surely there must be others, though?