Thread for questions that don't deserve their own thread.
I wanna buy some headphones to go outside i don't want to spend more than 100€ on them. I want them to be mostly durable and secondly to have good sound quality, also i don't want to look like a jackass while wearing them, any suggestions?
456 posts and 61 image replies omitted.>>27082Sort of understood. You at least think the inheritance is essential.
>>27083Understood.
>>27084I didn't say inheritance. reading comprehension
you can have compile-time inheritance and that is usually not referred to as oop. you can have some types of run-time inheritance that aren't considered oop either. try to use more specific technical terms than "inheritance"
>>27084Stumbled upon this blog post:
https://blog.tal.bi/posts/namespaces-in-c/ which reminded me of my OOP question here. Seems you could use basic structs to make namespaces and even use these namespaces to implement a common interface using _Generic to define the polymorphic type. Related to
>>27083, but not quite like
>>27082 because there isn't a mechanism to convert objects to the parent type (which only exists as the polymorphism).
>>27494you can implement full oop behavior in c, and I don't even mean implementing a compiler for oop languages, I mean oop in c, glib is an example. however, as explained in those definitions, c is not oop because you have to manually write and manage the vtables
>there isn't a mechanism to convert objects to the parent typethere is. as long as you keep the child class as a superset of the parent with exactly the same layout, you can cast the pointer to a child to a pointer of the parent type. this is, assuming the compiler keeps the same layout, if struct P {int x;} and struct C {int x; int y;}, you can take C* c; and cast it like (P*)c
and that's just one method
>>27501Alright understood this, and
>>27082 now. Thanks.
>>27495Because didn't realize that a coroutine that wasn't awaited was
guaranteed to not run.
>>27791Have been thinking about a Norvig presentation recently, and this slide was helpful.
>>27792This is static:
>>27494 does that make them not objects? You don't actually need _Generic if you cast to a parent, and with pointer arithmetic accessors you could even have multiple inheritance (so long as fields and methods don't overlap). Odd that you can use objects and inheritence (even classes) but not be programming in OOP.
>>27794std is not actually static, you can change it at runtime. Put it in compiler explorer, you can see that even at -O3 it will have indirect calls. You have to mark it const if you want to eliminate the indirect calls to make it static. _Generic is static, it is done at compile time.
This is going to be a bit of a mess because I don't have the time to express myself succinctly, but in my opinion one has to consider the essence of programs to determine the essence of programming paradigms, and programs essentially compute, therefore we have to consider how computation is done. In imperative languages, like C, computation is done by executing a sequence of commands (called statements in C). In functional languages, like Scheme, computation is done by applying functions (hence "applicative"). Of course actual languages are rarely that pure, you can apply functions in C and you can have sequences of commands in Scheme, therefore one should not be surprised to find out that OOP languages can be used in a non-OOP style. It actually seems to be pretty common in Java, which relies heavily on imperative constructs… But if you look at what the actually OOP essence is, or look at a more "strict" language like Smalltalk, what does the computing in OOP is dynamic dispatch, or said otherwise, determining which method to call on an invocation. Sometimes they call this message passing, because the idea is that when you invoke a method, the currently executing thing sends a "message" of the method name and parameters to the object, and the object decides what to actually do. But the real reason for OOP to exists is this.
>>29156Found
>>28093 and
https://github.com/moffatman/chan but it looks like there's not even a bug report for adding leftypol support. Presumably it wouldn't be hard and would be worth doing considering the user base is reasonably large. Can't be bothered to make a github account however.
Is
https://anubis.techaro.lol/ a cloud flare replacement?
Could it work for an image board is the threat of DDOS too high.
>>29376Yeah something like that, but project seems abandoned (?), no updates since 2021:
https://github.com/tylabs/quicksandhttps://scan.tylabs.com/Wonder if it's still reliable or of the 'zeitgeist' has moved somewhere else. Here's a reddit thread from around the same time-period ("three years ago"):
https://old.reddit.com/r/cybersecurity/comments/u5k4o4/is_there_a_free_pdf_malware_scanner_that_doesnt/ >>29869You could also add
https://commonsclause.com/ to any license of your choice including AGPL.
At one point considered this to be a good license for SaaS free software
with chinese characteristics.
GPLv3 and Apache have patent clauses if that's of interest to you.
Given how, even on a good day, LLMs do citation in a way that is all too close to a human without book at hand, is there any chatbot out yet with solid citations? What I'm thinking about would be basically this:
1. The program responds to anything with a cite from a big text corpus (for example, a Lenin-citer bot),
2. always uses quotation marks,
3. also has markers to show when there is a quote within the quote,
4. marks omissions with (…) that you can click on to reveal the omitted text, and
5. always gives the source title, publication date, and source link.
It might make use of a very fuzzy decision procedure, but only for deciding on where to make cutouts from an existing text, not to generate text.
Unique IPs: 26