ChanServ changed the topic of #kisslinux to: Unnofficial KISS Linux community channel | https://kisscommunity.bvnf.space | post logs or else | song of the day https://vid.puffyan.us/H7PvgY65OxA
rohan has quit [Ping timeout: 250 seconds]
rohan has joined #kisslinux
phinxy has quit [Ping timeout: 248 seconds]
rohan has quit [Ping timeout: 260 seconds]
rohan has joined #kisslinux
shokara has joined #kisslinux
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #kisslinux
GalaxyNova has joined #kisslinux
rohan has quit [Ping timeout: 255 seconds]
rohan has joined #kisslinux
<testuser[m]> Hi
rohan has quit [Ping timeout: 268 seconds]
rohan has joined #kisslinux
rohan has quit [Ping timeout: 276 seconds]
rohan has joined #kisslinux
<sewn> Hi
chomwitt has joined #kisslinux
<acidbong> fellas, I'm playing with a Glasnost tarball in Termux and wanna migrate it to kiss-community/repo, but b3sum fails to build
<acidbong> arch is aarch64/arm64, toolchain is llvm14
<acidbong> how to troubleshoot further?
<sewn> is the dev of glasnost even here
<sewn> <acidbong> "how to troubleshoot further?" <- you can look at the logs or the build errors :/
phinxy has joined #kisslinux
fultilt has quit [Quit: WeeChat 3.7.1]
aelspire has joined #kisslinux
<aelspire> acidbong: I see that https://git.sr.ht/~mcf/b3sum/tree there are different implementations for x86-64 with AVX2, AVX512, SSE2 and SSE41 but none for any ARM
<aelspire> but the "portable" is there so it might be it
<aelspire> I would check in logs which one it tries to use
<aelspire> and check how it detects which one it should use
<aelspire> I would say that it looks like weakest point here
chomwitt has quit [Ping timeout: 260 seconds]
<acidbong> at least avx2 doesn't work
<aelspire> it tries to use this file by default?
<aelspire> on ARM?
<aelspire> add WITH_ASM=0 as variable to make
<acidbong> success
<aelspire> great
<aelspire> you will probably need some kind of fork for ARM
<aelspire> as patches can differ etc.
<aelspire> I would do separate repo with normal repo as git submodule and separate directory with arm-override or sth like this
<aelspire> if I would be in such situation
rohan has quit [Ping timeout: 250 seconds]
rohan has joined #kisslinux
rohan has quit [Ping timeout: 265 seconds]
rohan has joined #kisslinux
rohan has quit [Ping timeout: 276 seconds]
rohan has joined #kisslinux
rohan has quit [Read error: Connection reset by peer]
rohan has joined #kisslinux
rohan has quit [Ping timeout: 240 seconds]
rohan has joined #kisslinux
<midfavila> y'know, here's a question
<midfavila> kernels are responsible for controlling the environment of a system and executing programs, among other things, right? and obviously they control a lot of low-level platform and architecture-specific details, too
<midfavila> given modern hardware's compute power, wouldn't it be better to use a small JIT in kernelspace and then write everything to target that?
an3223 has quit [Remote host closed the connection]
<midfavila> i get that it's basically just java but in kernelspace, but that's kind of the idea. then again, I suppose the return value on that would only be worth it if the overhead of using a JIT was less valuable than the time spent porting applications and the kernel from one platform to another... and for multimedia and other realtime applications the performance overhead might be too great
<aelspire> such virtual machine would need to be gigantic
<midfavila> you think so? couldn't use a stack-based language as the intermediate format or something?
<aelspire> and what about games wanting to zero-overhead access to GPU?
<aelspire> there are too much things to consider
<aelspire> so this leaky abstraction is the best what can be done in somewhat sane scope
<aelspire> and look into microkernels
<midfavila> fair enough.
<aelspire> generaly border of kernel responsibility and other things is where we want to draw it
<aelspire> so don't sweat about super rigid definition of what kernel is
<midfavila> i did find this and a book from Springer talking about JIT kernels
<aelspire> generally there is something like this
<aelspire> Android
<aelspire> linux kernel + Java VM
<aelspire> but the VM is another layer
<midfavila> yeah, but why not run the VM on bare metal and compile everything, kernel included, to an IA - that's what I'm asking
<aelspire> it would be too broad scope of project to support anything is such kernel
<aelspire> see that linux guy's currently aren't developing mesa or OpenGL
<aelspire> guys*
<aelspire> and the gains from such thing are uncertain
<aelspire> as there will probably be performance hit and to tell the truth what isn't abstracted?
<midfavila> i guess i'll take your word on it. i don't know enough about the subject to really draw any conclusions or reason about things effectively, yet
<aelspire> better don't take my word only
<aelspire> I can be wrong
<midfavila> well, 'course
<aelspire> but I think that this solution from the userspace point of view is no different than using something like JAVA
<midfavila> philosophically it's not, you're right, but i don't hate the underlying idea of java
<midfavila> the whole write once run anywhere idea is pretty appealing
<aelspire> yes
<midfavila> i just don't like the language itself
<aelspire> but the same idea was behind C
<aelspire> but failed
<midfavila> yesn't
<midfavila> but also maybe
<aelspire> interesting take about VMs
<midfavila> it didn't really fail per se, i just don't think that's the right way to look at it
<aelspire> C didn't failed
<aelspire> it failed in goal of being the lang in which you can write code and this code would be portable to every arch under the sum
<aelspire> sun*
<midfavila> did it?
<aelspire> yes
<midfavila> uh, which arch in production use doesn't have *a* C compiler available?
<aelspire> too much UBs
<midfavila> legitimate question
<aelspire> and too much implementation defined things
<aelspire> but you cannot take code written once and compile it everywhere and expects that everything will always work
<aelspire> but you can write code for almost every existing arch in C
<aelspire> the *portable* word is the key
<aelspire> in real world counters will overflow etc,
<aelspire> not knowing exactly what the size of int is
<aelspire> is problematic
<aelspire> so the ones from stdint.h are widely used
<aelspire> so uint32_t etc
<aelspire> this helps greatly in writing portable code
<midfavila> er, could you not just... use the lowest common denominator in the standard? i get that that imposes a lot of limits, but if you want your code to be as portable as possible it's only reasonable to accept certain runtime limitations
<midfavila> but yeah, the stdint stuff was also going to be something i mentioned
<aelspire> C standard is pretty broad
<aelspire> and lowest common denominator is dialect of C already
<aelspire> so lets use C but only half of it
<aelspire> such code could be portable indeed
<aelspire> but I wouldn't say this is normal C anymore
<midfavila> why? just because it'd end up a little idiosyncratic?
<aelspire> because other programmer using this C subset need to be told explicitly we use C but without this and that
<midfavila> ...is that, er, a common problem?
<aelspire> yup
<midfavila> you can't just have a project style guide?
<aelspire> this project style guide would be bigger than major part of projects in the world.
<midfavila> i mean, if it was *exclusive*, I guess?
<aelspire> generally speaking we are going into theoretical grounds
<midfavila> but if you only specify what's allowed, I really don't see why that would be the case. just because i'm inexperienced, i guess
<midfavila> idk
<aelspire> IMHO subset of C is subset of C not "the C language"
<aelspire> so if C allows you to use int or int32_t but your project uses only later
<aelspire> the code using int is correct and valid C code, isn't it?
<aelspire> co what you will tell the commiter? This is not valid C?
<aelspire> or you will tell: we don't use this C feature here
<midfavila> yes, but not valid subset-of-C. but the subset of something is still part of that larger set
<aelspire> this is too fuzzy for me
<midfavila> i'm just saying that you could say "we use this and this and this" instead of "don't use this and this and this and this and this and ...", because the latter really could go on forever
<midfavila> "Directive: Use stdint instead of inbuilt types. Reason: inbuilt types have variable sizes across different platforms."
<aelspire> I think it depends on who you will ask
<midfavila> also on the nature of the project
<aelspire> if subset of something can be called something
<aelspire> in broader view you can take valid C code without UBs and implementation defined things
<midfavila> well, subsets of a set *can* be equal to the set, but only if every element in the set is present in the subset. what i'm saying is that if we have C, and then we have C' which is C without inbuilt types and instead relying on those in stdint, C' is a subset of C and therefore valid C, but C isn't a subset of C' and therefore invalid in projects written in C'
* midfavila shrugs?
<aelspire> which works on x86-64 compile it on arm 32-bit
<aelspire> and valid code will not work
<aelspire> valid for x86-64
<midfavila> that would be a compiler issue though, wouldn't it?
<midfavila> if there's no UB or implementation-defined stuff, that's as valid as it gets
<aelspire> not necessary
<aelspire> lets look into char:
<aelspire> Smallest addressable unit of the machine that can contain basic character set. It is an integer type. Actual type can be either signed or unsigned. It contains CHAR_BIT bits.[3]
<aelspire> so you cannot tell if it is signed or not already
<aelspire> on your arch
<aelspire> and this is literally the first type on wiki I've checked
<midfavila> sure, but that's only relevant if you're storing integers in chars
<midfavila> you shouldn't really be doing that
<midfavila> if you need *really* small units of space to represent flags or something, use a bitfield
<aelspire> in code there are sometimes weird things that need to be done
<midfavila> need to be, or want to be?
<aelspire> need to be
<midfavila> legitimate question
<midfavila> plus, can't you just...
<midfavila> i don't know, use literally any other type?
<midfavila> this sort of thing seems contrived
<aelspire> how to quickly find which letter code should be displayed when we have number 1?
<aelspire> add '0' + 1
<aelspire> so there is already arithmetic on number we aren't sure if is signed or not
<midfavila> sure, but '0' is *always* '0'
<midfavila> it doesn't matter if '0' is signed or not
<midfavila> because you're not really operating on a number, so to speak
<midfavila> it's a symbolic value
<midfavila> anyway, the bigger problem there is that you assume things about the character set
<aelspire> this is example of problems where you need to do arithmetic on char
<midfavila> there probably aren't any with non-contiguous numbers, but still something i'd be more concerned about than the signedness of '0'
<aelspire> finding one which is real problem is not something I can do so quice
<midfavila> ...then again i've heard horror stories about EBCDIC...
<midfavila> and no, that's fair
<aelspire> generally there are places when you need to do some math on char
<aelspire> and this is already footgun
<midfavila> but when you use chars to represent chars, and specifically if you're targetting ascii... it doesn't matter if it's signed or not because you're not *really* saying "add one to whatever integer '0' represents". you are to the compiler, but really, what you're saying is "give me the character in the set that follows 0"
<aelspire> so writing portable code in C is possible
<aelspire> but need special considerations
<aelspire> and I thing 90% of existing C code will not work
<aelspire> think*
<midfavila> i mean, at that point it comes down to what machine is being targetted
<midfavila> obviously when we're arguing about the signedness of characters, this isn't a "normal" codebase
<midfavila> it's not targetting a specific OS or architecture or set of standards that already exist, I imagine
an3223 has joined #kisslinux
<aelspire> UBs are generally bad IMHO
<aelspire> and C have some real footguns
<aelspire> to writing code to be portable everywhere and will work on every compiler ever is pretty problematic
<aelspire> but doable
<aelspire> but it will require using subset of C probably
<aelspire> I'm not sure
<aelspire> offtopic: I today have learned about another C quirk
<aelspire> comparing pointers to different objects is UB
<aelspire> I didn't use this yet, I think
<aelspire> but I would easily do this mistake until today
<aelspire> writing your program in such minefield is not so fun
<midfavila> i feel like at a certain point it would be easier to write portions of your program in assembler, if you want to do crazy shit
<aelspire> comparing pointers is creazy thing?
<midfavila> not necessarily comparing pointers
<midfavila> just stuff that could be UB in general
<aelspire> Hare is good but still in progress
<midfavila> if you want to do something that could be UB, have a good, long, hard think about why and what it would accomplish, and if you *really* need to do stuff in that vein, switch to assembelr
<midfavila> assembler*
<aelspire> if you know it is UB
<aelspire> I don't think normal programmers will use UB in code if they know it is UB
* midfavila shrugs?
<midfavila> anyway, i have to go do some stuff
<midfavila> i said i would do an hour of mathematics studies earlier and it's now been an hour and no math has been studied
<aelspire> have nice time with math ;)
<midfavila> oh, i'm sure it'll be *great*
<midfavila> i'm attending a course at ASU for "college algebra", and they have this automated assessment that you have to take before doing anything. my results were abysmal :v
<midfavila> so, lots of work to do
<aelspire> try to enjoy it somehow
<aelspire> masochistic tendencies will help
rohan has quit [Ping timeout: 255 seconds]
soliwilos has quit [Remote host closed the connection]
an3223 has quit [Remote host closed the connection]
an3223 has joined #kisslinux
chomwitt has joined #kisslinux
an3223 has quit [Remote host closed the connection]
an3223 has joined #kisslinux
aelspire has quit [Quit: Leaving]
fitrh has joined #kisslinux
fitrh has quit [Quit: fitrh]
chomwitt has quit [Ping timeout: 268 seconds]
fultilt has joined #kisslinux
an3223 has quit [Remote host closed the connection]
<midfavila> math didn't end up happening unfortunately
<midfavila> needed to do house stuff and also apply to jobs
<midfavila> seventeen stops later and i'm no closer to one
* midfavila screams in having to borrow money to pay for food
<sewn> watch the video mid
<sewn> it will fix your life
<midfavila> i fail to see how this helps me have a healthy diet, the ability to exercise regularly, a quality education and a job where i can keep some semblance of dignity
<midfavila> the cats are cute though
heartburn has quit [Ping timeout: 250 seconds]
heartburn has joined #kisslinux
<sewn> Good
<midfavila> >intermediate network administrator job
<midfavila> >minimum eight years of relevant experience
<midfavila> ?????????
<shokara> o_O
<shokara> with that amount of experience, one might as well apply for a senior position
<drez> if only you could prove you're the reincarnation of a network engineer who died in the year 2001...
<midfavila> honestly i might just have to take out a student loan after all
<midfavila> my clown college diploma is a fucking joke and has been literally *zero* help in finding a job, and nobody takes what skills I do have seriously because everyone around here is *super* into the Microsoft world
<midfavila> i was talking to some of the business owners i applied to work with today about the state of the provincial economy, and basically everyone said that even if you have a bach or master's you won't be able to find work here at all
<midfavila> you need to leave the province or go overseas
an3223 has joined #kisslinux
<sewn> go live in norway
<dcat> norway?
<dcat> I see my country and I can't help myself
<dcat> where's dylan?
<acidbong> busy, distracted or lost interest, who knows
<dcat> presumably one of those
<midfavila> how tf am i supposed to move to another country when i can't afford to even move to another town
<midfavila> this isn't really an appropriate topic for funny haha meme jokes
<dcat> midfavila: where are you from?
<midfavila> new brunswick, canada
<midfavila> or, that's where i live, anyway
<midfavila> i wouldn't say i'm "from" here
<midfavila> it's basically the slums
<midfavila> everything's expensive, nobody can find work, and you can't even leave the goddamn place because of how expensive travel is now
<midfavila> if you want a good way to visualize my city, it's like the intro to kop killer 22xx, except with less labor and more homelessness
<midfavila> ...and significantly less radiation poisoning, i guess
<midfavila> not the intro, just the trailer
<midfavila> the stats in this are outdated already. two-bedroom apartments are going for easily double what the report states, at least in urban and suburban areas
<midfavila> ~2000 a month before utilities and telecomms...
<midfavila> imagine working full-time hours and still not being able to afford rent, let alone food, phone, internet, transport, or clothing
<midfavila> what a hell we've created for ourselves
<midfavila> and the rhetoric is always the same - "go back to school", "work more hours", "pick up another job", "get a side gig", "don't buy luxury goods" (which nobody does *anyway*, save the most minor of them...) and so on
* midfavila sighs
<midfavila> but here i go again, monopolizing the channel