[2022-01-15T01:25:36Z] dilyn: https://github.com/tslilc/community/commit/83fba5c1d62b5d76d33885043ea297cfd21a6f56 ;) [2022-01-15T01:26:29Z] i did this earlier, but i've been waiting, oh, 6+ hours for a successful (?) build of zig so that i can submit a manifest with the PR! [2022-01-15T01:26:55Z] i basically know what the output of `kiss manifest zig` will be, but i don't want to fake it [2022-01-15T01:27:16Z] dilyn: also zig static is that big because it's literally llvm [2022-01-15T01:28:05Z] indeed indeed [2022-01-15T01:28:25Z] for now the compiler has all sorts of warts and bugs, but it's 0.9 and just there to get the bootstrapping process started. The current efforrt is on writing zig in zig, and specifically compiling to a C backend. That way the project can ditch the C++ compiler and thin out all of this LLVM stuff [2022-01-15T01:28:28Z] well it builds for me and the manifest is an absolute unit lmfao. It would probably take the average PC about ten hours to build this... [2022-01-15T01:28:45Z] * op_4 checks uptime [2022-01-15T01:28:46Z] yeah that would make it a very nice compiler i think [2022-01-15T01:29:06Z] dilyn: hahahaha [2022-01-15T01:29:13Z] TWENTY HOURS BABY [2022-01-15T01:29:24Z] lmfao [2022-01-15T01:29:29Z] but to be fair that's like 1.3 builds [2022-01-15T01:29:31Z] I'm so glad I wasted all my money on this PC [2022-01-15T01:29:45Z] * op_4 wishes someone would waste their money on my pc [2022-01-15T01:30:38Z] XD [2022-01-15T01:30:57Z] why did Dylan target AMDGPU in llvm? [2022-01-15T01:31:03Z] for mesa [2022-01-15T01:31:08Z] is it a hard dep for mesa? [2022-01-15T01:31:10Z] aha [2022-01-15T01:31:17Z] only for the radeon graphics [2022-01-15T01:31:33Z] ... wait [2022-01-15T01:31:39Z] * op_4 doesn't have radeon graphics [2022-01-15T01:31:42Z] so for instance if you only use intel, you don't need llvm for mesa [2022-01-15T01:31:57Z] by the end of this week i will have pointlessly built llvm maybe a dozen times [2022-01-15T01:32:07Z] and really it only needs to have been once [2022-01-15T01:32:10Z] well, lesson learnt [2022-01-15T01:32:38Z] upstream != smallest possible choice [2022-01-15T01:33:34Z] facts [2022-01-15T01:34:21Z] do you know where in mesa/build it sets radeon? Or is this more a case of ``if llvm is there, build blah'' [2022-01-15T01:36:44Z] ah, i'll just read the docs [2022-01-15T01:38:01Z] mesa will build all targets if you don't specify specific drivers [2022-01-15T01:38:22Z] so for instance if you only want intel GPU support you just specify i915/i965/iris in the build [2022-01-15T01:38:45Z] if you specify amd/radeonsi you'll need llvm [2022-01-15T01:39:07Z] dilyn: amazing, i would never have guessed this, thanks for pointing it out [2022-01-15T01:39:18Z] -Dgallium_drivers=i915 here i come [2022-01-15T06:04:53Z] Hi [2022-01-15T10:43:15Z] dilyn bruh the zig package is in root of community repo [2022-01-15T11:23:29Z] There's a common set of instructions implemented by all gpu venders, the opengl ARB [2022-01-15T11:24:50Z] I wonder if it would be possible to build a "mesa-light" with drivers centered around those. Not something I can work on in the immediate future. [2022-01-15T11:25:13Z] almost all, and there are bugs in places, of course. [2022-01-15T11:25:29Z] lite* [2022-01-15T11:30:23Z] http://www.renderguild.com/gpuguide.pdf I think the nv parts are nvidea specific [2022-01-15T13:30:44Z] dilyn: so if you have an intel gpu, you dont need llvm to build mesa at all? wasnt that the same with libelf aswell? I seem to recall you mentioned that, when sifting through some irc logs earlier [2022-01-15T13:32:25Z] nvrmind, I just notied you said you dont need llvm for intel gpu. [2022-01-15T13:35:32Z] what about libelf though? [2022-01-15T16:21:30Z] bibliocar: sorry, that's my fault [2022-01-15T16:21:36Z] re zig [2022-01-15T16:21:39Z] opened a pr to fix [2022-01-15T16:22:43Z] sad_plan: i can confirm that crocus (gallium) or i956/i915/... (dri) mesa doesn't need llvm [2022-01-15T16:35:28Z] nice [2022-01-15T16:36:22Z] now I sortof regert choosing amd for my laptop :p but that pesky intel ME is there though.. [2022-01-15T16:36:43Z] sad_plan: you could always go ~2006 intel or so ;) [2022-01-15T16:36:50Z] or for real ARM [2022-01-15T16:39:57Z] well yes, Ive looked at those old thinkpads, but theyre getting ancient. hell even older than my desktop :p [2022-01-15T16:40:05Z] ARM is indeed interesting [2022-01-15T16:41:11Z] I have sortof been eyeing the M1 mac. even though I kinda hate apple. the M1 macs have good hardware [2022-01-15T16:42:10Z] I do however wish there were more ARM hardware which has better hardware, or something similar to whatever I already have [2022-01-15T16:48:37Z] huh? I think you meant somebody else. Unless you were working at nvidia? [2022-01-15T17:00:43Z] sad_plan: same story with libelf. You can probably run entirely libelf free if you opt to use the worse unwinder in the kernel [2022-01-15T17:02:23Z] Ive tried to use the others, but on amd, it doesnt seem to matter :p so Im considering switching to intel whenever, or ARM if I eventually get there. but nice to know anyway [2022-01-15T17:22:50Z] sad_plan: i've been curious about the samsung chromebook plus k01us, it's a 64 bit relatively beefy ARM with mainline blobless GPU support [2022-01-15T17:23:46Z] dilyn: lol sorry i suck at this somehow [2022-01-15T17:25:18Z] so do i lmao [2022-01-15T17:25:51Z] well we got there in the end [2022-01-15T17:25:58Z] the real friends are the PRs we made along the way [2022-01-15T17:27:09Z] nice, Ill check that out. maybe I end up switching out my acer laptop. [2022-01-15T17:27:49Z] that would be cool, i'd love to hear about this if you undertake it. Having said that, we may have different standards about "relatively beefy", i hope i haven't mislead you [2022-01-15T17:29:59Z] whats beefy and not is subjective, so I gotchu. Ive never had any highend pcs anyway, so having my 3700 ryzen 7 cpu is fine performance wise. [2022-01-15T17:30:18Z] damn, I just stumbled upon the pelican case for rpi, theyre really cool. now I want one [2022-01-15T17:31:17Z] Is zig supposed to have all those source files in the built (installed) package? The package has over 14 thousand files in it [2022-01-15T17:31:20Z] correction, itss not for the pi, but people seem to use it for them [2022-01-15T17:31:47Z] jslick: yeah, those are all the library headers for cross compilation [2022-01-15T17:32:07Z] ok thanks [2022-01-15T17:32:11Z] they should all be in /usr/lib/zig/ i hope [2022-01-15T17:32:39Z] yeah I think so [2022-01-15T17:33:21Z] jslick: the compiler is still in its infancy, but a nice thing right now is that it effortlessly cross-compiles c code too [2022-01-15T17:33:42Z] well, `````effortlessly'''''' [2022-01-15T17:34:17Z] yeah, I saw a demo of it a while ago. Looked kinda neat [2022-01-15T18:01:39Z] afternoon #kisslinux [2022-01-15T18:05:15Z] hi mid [2022-01-15T18:06:21Z] op_4 does zig build have parallel build? It looks like it's keeping 1 core busy, and I can't find any documentation about specifying number of jobs [2022-01-15T18:12:01Z] jslick i don't know the answer to that question, sorry [2022-01-15T18:12:17Z] do you mean compiling the compiler, or using zig to compile zig code? [2022-01-15T18:12:47Z] ah, I meant a program. e.g. the equivalent of -j9 [2022-01-15T18:13:12Z] jslick: yeah, not sure, sorry. #zig here on libera will know the answer however [2022-01-15T18:13:43Z] * op_4 only has two cores :'( [2022-01-15T18:14:47Z] i wouldn't be surprised if the answer was something like: the self-hosted compiler will, but everything about the C++ compiler sucks and we're not working on improving it [2022-01-15T18:15:10Z] i.e., wait for 0.10.0 [2022-01-15T18:20:28Z] 2 cores? jeez how long did it take you to build zig? [2022-01-15T18:20:56Z] i think i'd prefer to answer questions in the presence of my lawyer [2022-01-15T18:21:42Z] but yeah, i lost track, probably around ~20 hours? only because it has to build llvm twice! [2022-01-15T18:22:02Z] >20 hours to build a memelang compiler [2022-01-15T18:22:02Z] wtf [2022-01-15T18:22:36Z] midfavila: hmm, i don't think we agree on the status of Zig [2022-01-15T18:23:01Z] but also, as i've mentioned before, this is an old computer with an intel core 2 duo P8400 [2022-01-15T18:23:23Z] okay, *that* makes more sense [2022-01-15T18:24:32Z] i'm not sure whether the hard cap on my processing power is financial or limited by the great intel ME wall [2022-01-15T18:24:42Z] yas [2022-01-15T18:24:44Z] it's both [2022-01-15T18:24:50Z] facts [2022-01-15T18:25:00Z] my next machine is unironically going to be an m68k [2022-01-15T18:25:11Z] getting real fucking sick of modern computers [2022-01-15T18:25:12Z] haha [2022-01-15T18:25:20Z] i'm dead serious. [2022-01-15T18:25:29Z] welcome to #kisslinux [2022-01-15T18:25:37Z] wait until I post my manifesto [2022-01-15T18:25:48Z] "revolt against the digital world" [2022-01-15T18:25:50Z] yeah, i sympathise but i don't know that i have the volition to see it through [2022-01-15T18:26:01Z] power to you midfavila [2022-01-15T18:33:51Z] love how even the "lightweight" textmode browsers are almost all upward of 100k lines of code [2022-01-15T18:35:42Z] lightweight is subjective you know. lightwight compared to what? :p [2022-01-15T18:36:27Z] if you want to argue about the meaning of words, then yeah, you have a point. i'm just really frustrated with how huge even small browsers are because of all the excess features that they support [2022-01-15T18:37:16Z] well that makes two of us [2022-01-15T18:37:46Z] it'd be *really cool* if there was a browser that was basically nothing but an HTTP parser [2022-01-15T18:38:28Z] Why u always complaining [2022-01-15T18:38:42Z] because i'm an extremely neurotic individual [2022-01-15T18:38:46Z] lol [2022-01-15T18:40:13Z] well, mid, just for comparison, if I did my wc -l correctly, surf for example, has 2377 LOC. which isnt a whole lot imo. Ill check couple of more for funzies [2022-01-15T18:40:23Z] surf is just a webkit frontend [2022-01-15T18:40:31Z] I know [2022-01-15T18:40:33Z] so no, it drags in hundreds of thousands or even millions of lines of code [2022-01-15T18:40:44Z] ye [2022-01-15T18:40:55Z] even edbrowse is around 50-60k sloc [2022-01-15T18:41:00Z] links2 is over 100k [2022-01-15T18:41:05Z] huh [2022-01-15T18:41:06Z] same with w3m I think [2022-01-15T18:41:09Z] thats quite alot [2022-01-15T18:41:16Z] wonder how many ff has [2022-01-15T18:41:23Z] way too many [2022-01-15T18:41:23Z] how bout lynx? [2022-01-15T18:41:29Z] lynx is almost certainly over 100k [2022-01-15T18:41:30Z] let me check [2022-01-15T18:41:41Z] are you using cloc to check? [2022-01-15T18:41:46Z] yes [2022-01-15T18:41:55Z] Ive never figured out how it works [2022-01-15T18:42:04Z] 273k sloc [2022-01-15T18:42:09Z] damn [2022-01-15T18:42:21Z] and you just point cloc at a directory [2022-01-15T18:42:29Z] it'll spit out relevant info a few minutes later [2022-01-15T18:42:31Z] * midfavila shrugs [2022-01-15T18:42:36Z] aah [2022-01-15T18:42:56Z] anyway yeah, main reason this is a *problem* for me is that I want to tinker and play with my PC's programs [2022-01-15T18:43:13Z] but it's kind of hard to do that when said programs are tens or hundreds of thousands of lines of code [2022-01-15T18:43:13Z] i don't know that loc is a useful metric. It feels a little arbitrary, because some languages are more verbose/make certain things more elaborate than others, right? [2022-01-15T18:43:27Z] Why not give it a shot urself [2022-01-15T18:43:31Z] ^ correct [2022-01-15T18:43:33Z] sure, but i'm specifically talking about C [2022-01-15T18:43:55Z] And for hacking u don't need the context of the whole codebase [2022-01-15T18:43:59Z] Just the thing ur working on [2022-01-15T18:44:05Z] i can't work like that [2022-01-15T18:44:25Z] personal flaw, but I don't feel comfortable working on something unless I can keep everything related to it in working memory at once [2022-01-15T18:44:43Z] also re: why not give it a shot myself, in the future I fully intend to [2022-01-15T18:44:43Z] Most non trivial programs are atleast like 10k loc so [2022-01-15T18:44:45Z] midfavila: that helps for narrowing it down, but i still can't help but feel that if the subject matter is something that C is bad at (eg, unicode aware string handling) then all programmes exhibiting these features will be at least so large [2022-01-15T18:44:58Z] * midfavila coughs in ascii [2022-01-15T18:45:15Z] * op_4 coughs in document encoding for HTTP [2022-01-15T18:45:32Z] HTTP4.01 and prior are fine with ascii [2022-01-15T18:45:35Z] * testuser[m] wears a mask [2022-01-15T18:45:38Z] it's only 5 that forces utf [2022-01-15T18:45:39Z] midfavila: TIL [2022-01-15T18:46:07Z] yeah ISO 15445 "Hypertext Markup Language 4.01" specifies that you can use any arbitrary text encoding if you declare it in your header [2022-01-15T18:46:21Z] at least I think that was the number... [2022-01-15T18:46:22Z] well then i agree with testuser[m], write an http parser :) [2022-01-15T18:46:42Z] https://www.iso.org/standard/27688.html [2022-01-15T18:46:42Z] and yeah in the future I intend to [2022-01-15T18:46:50Z] but atm I'm an actual brainlet [2022-01-15T18:47:00Z] personally i'd love a nice line-mode http interface [2022-01-15T18:47:21Z] my eventual goal is to write a system using lisp based on the actor model and filesystem interfaces [2022-01-15T18:47:27Z] that could pipe to whatever pager or renderer the user wanted [2022-01-15T18:47:36Z] mmh, that's what I'm thinking too [2022-01-15T18:47:47Z] and could compose with external tools for protocol stuff (eg. openssl for TLS or whatever) [2022-01-15T18:47:54Z] * midfavila nods [2022-01-15T18:48:04Z] cool, i look forward to seeing this ;) [2022-01-15T18:48:42Z] my ideal would be to use an embeddable dialect of scheme (probably based on T or PreScheme) to write all runtime code, and then the "programs" are basically nothing more than hyperspecialized lisp interpreters for given domains, effectively libraries [2022-01-15T18:49:03Z] they expose program internals via filesystem interfaces, and communicate with other programs by reading and writing those special pseudo-filesystems [2022-01-15T18:50:01Z] this sounds great [2022-01-15T18:50:07Z] like plan9 meets lisp machine [2022-01-15T18:50:12Z] that's the goal [2022-01-15T18:50:17Z] i shall call it a/OS [2022-01-15T18:50:19Z] woo [2022-01-15T18:50:25Z] for autism or asynchronous, whichever picks your fancy [2022-01-15T18:50:31Z] heh [2022-01-15T18:50:43Z] firefox has 27851392 LOC [2022-01-15T18:50:57Z] but don't forget about all of its dependencies [2022-01-15T18:50:58Z] :^) [2022-01-15T18:51:03Z] yeah that too [2022-01-15T18:51:20Z] and firefox has ..some dependencies [2022-01-15T18:52:09Z] first thing I'm doing once I rework my LAN is hosting local copies of all necessary source over gopher [2022-01-15T18:52:43Z] gopher is at least sane [2022-01-15T18:53:14Z] its unencrypted though [2022-01-15T18:53:23Z] it's on my LAN [2022-01-15T18:53:41Z] well then I suppose its fine :P [2022-01-15T18:53:43Z] besides, gopher generally only serves static content [2022-01-15T18:54:00Z] yeah, thats true. its only text anyway [2022-01-15T18:54:03Z] the worst that'd happen over the internet is that someone injects ASCII or something [2022-01-15T18:54:44Z] Gonna inject a nul termination at the start of ur file [2022-01-15T18:54:48Z] Terminator [2022-01-15T18:54:58Z] 'm gonna refresh my page. [2022-01-15T18:55:52Z] besides, there's no reason to attack gopher traffic because it's all publically available data anyway [2022-01-15T18:57:09Z] youre right. I was just pointing it out, that it only serves http, not https [2022-01-15T18:57:32Z] only thing I can think of is if you knew of a bug in the parser that would give RCE, but gopher is a simple enough protocol that eliminating such bugs should be easy [2022-01-15T18:57:32Z] and it doesn't serve http at all [2022-01-15T18:57:49Z] plus there *is* an SSL-encrypted gopher extension iirc [2022-01-15T18:58:36Z] midfavila: are you someone who dislikes gemini? [2022-01-15T18:58:43Z] yes [2022-01-15T18:58:54Z] i think it's a poorly-designed solution to a problem that doesn't exist [2022-01-15T18:59:17Z] in a way that's worse that gopher + ssl? [2022-01-15T18:59:35Z] no, because gemini is its own much more complex protocol+mandatory tls [2022-01-15T18:59:52Z] right, there's CGI stuff [2022-01-15T19:00:09Z] CGI is w/e [2022-01-15T19:00:14Z] you can pull similar stuff off with gopher [2022-01-15T19:00:37Z] so where in your opinion does the complexity lie? [2022-01-15T19:00:44Z] my main issue is that it (afaik, correct me if wrong) also handles data transfer, and that mandatory tls thing is kind of a huge problem [2022-01-15T19:01:12Z] gopher is nice because it's extraordinarily simple (the entire RFC is like 20-30 pages) and handles hierarchical plaintext [2022-01-15T19:01:14Z] that's it [2022-01-15T19:01:45Z] but on older machines modern cryptography absolutely demolishes performance [2022-01-15T19:02:11Z] midfavila: i don't believe it handles data transfer, at least not in any specific way [2022-01-15T19:02:41Z] but yes i can see that some might find mandatory tls displeasing [2022-01-15T19:04:13Z] midfavila: at least my reading of https://gemini.circumlunar.space/docs/specification.gmi shows only the text/gemini media type [2022-01-15T19:04:24Z] then I misremembered something, fair enough [2022-01-15T19:06:21Z] yeah, in fact i remembered being annoyed at the folks who asked for content-length headers because then we'd have to handle arb. data [2022-01-15T19:06:24Z] anyway, not important [2022-01-15T19:06:35Z] i can understand the tls thing [2022-01-15T19:08:05Z] i can at least say I'd rather be stuck using gemini than http [2022-01-15T19:08:16Z] * op_4 nods [2022-01-15T19:09:03Z] man I should really get back to writing my gopher client... [2022-01-15T19:09:21Z] eventually I'd like to have a filesystem interface for it [2022-01-15T19:09:59Z] this thing will be to gopher as ii is to irc, basically [2022-01-15T19:18:03Z] huh [2022-01-15T19:18:07Z] cloc works on gzipped tarballs [2022-01-15T19:28:50Z] thats nice, so you dont have to untar them to figure out loc [2022-01-15T19:43:44Z] do you guys know of any good places to learn C? and what kind of C would be best? I mean, like C99, C89 etc. iirc those are standards or something [2022-01-15T19:50:37Z] midfavila: cloc works on tar.xz aswell as tar.bz2. in case you didnt know. I got curious if it did so I checked :p [2022-01-15T19:51:10Z] .tgz too [2022-01-15T20:47:56Z] sad_plan canonical reference is K&R second edition [2022-01-15T20:48:23Z] i've heard many people sing the praises of Gustedt's "Modern C" and King's "C Programming: A Modern Approach" [2022-01-15T20:48:34Z] those three combined will give you a firm grasp on C89, C99, and C11 [2022-01-15T20:48:40Z] i'm learning from them atm [2022-01-15T20:49:01Z] i also intend to work through "Learn C the Hard Way" which is supposedly there to teach best practices and how to write safer programs [2022-01-15T20:49:46Z] "Hacking: The Art of Exploitation", whilst not a book specifically about C, includes extensive sections on C, assembler, and the use of debuggers and other development tools, as well as a lot of useful information wrt: security, as you might expect [2022-01-15T20:50:22Z] fair warning though, if you look at King's, you need the second edition, not the first [2022-01-15T20:50:54Z] ...oh! You should also look at "The UNIX Programming Environment", too. Talks about C somewhat, but about UNIX tools and design in general [2022-01-15T20:51:05Z] it's a little obsolete, but very informative [2022-01-15T20:51:15Z] mandatory reading for all KISS users, change my mind uwu [2022-01-15T20:52:12Z] http://www.electronicstheory.com/COURSES/progcourses/c/index.htm [2022-01-15T20:52:17Z] you might also benefit from this site [2022-01-15T20:52:33Z] haven't looked at all of it just yet so I can't endorse it though [2022-01-15T20:53:07Z] looks like it's not quite complete, either, unfortunately [2022-01-15T21:20:03Z] nice! ill bookmark those too and look into them :D [2022-01-15T21:20:10Z] g2g. bye gemini://gemini.ctrl-c.club/~phoebos/logs/kisslinux-2022-01-15.txt

-- Leo's gemini proxy

-- Connecting to gemini.ctrl-c.club:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/plain; charset=utf-8

-- Response ended

-- Page fetched on Sun Jun 2 10:18:43 2024