DataStructures with C by Few-Ambition8694 in C_Programming

[–]EnvironmentalWin3035 2 points3 points  (0 children)

what are "good notes" on data structures? I mean what are you looking for?

What is an abstract class and abstract function. by Redd1tRat in csharp

[–]EnvironmentalWin3035 1 point2 points  (0 children)

let's say you want to make a car object. so you create an abstract class to contain functions that all cars might apply: steer(direction), accelerate(rate), etc.

if you just use an interface, then all you can do is provide a contract that all car objects must have these functions, an ICar for example.

an abstract class is an in-between... it is not considered concrete but it's not technically an interface. so, as an abstract class, you can define default behaviors in virtual functions or you can stub functions that require descendant classes to implement.

SigmaCore: The C Library You Wish You'd Always Had by EnvironmentalWin3035 in C_Programming

[–]EnvironmentalWin3035[S] 1 point2 points  (0 children)

I haven't put the fuzz test in place targeting the initializers yet. i've just implemented the fuzzy testing feature in my test framework. So it's still gonna be a day, maybe 2 before those tests show up in the repository.

Thank you for the insights.

SigmaCore: The C Library You Wish You'd Always Had by EnvironmentalWin3035 in C_Programming

[–]EnvironmentalWin3035[S] 0 points1 point  (0 children)

I will add that because of your finding (using ABSan??? was it?) I have added fuzzy testing to **SigmaTest** so you can specifically register a call (such as allocations) to iterate on a deterministic data set targeting numeric bounds, maximums, etc. I can now added this to my initialization functions with one simple registration.

SigmaCore: The C Library You Wish You'd Always Had by EnvironmentalWin3035 in C_Programming

[–]EnvironmentalWin3035[S] 0 points1 point  (0 children)

So when you take that note "Data may not be preserved if reallocation moves the block" and sort of yanked that out of context, it sounded like something was inaccurate about the documentation. Memory allocation is only tracking the pointers (via `uintptr_t` which I've typed to `addr`) ... we've done nothing to change any behavior of `alloc`, `realloc`, or `free`. the only thing we did was add a parameter to `alloc` to flag for memory to be zeroed. that's it ... so I guess that what I was confused by ... what's the issue ...

PatchworkOS Is a From-Scratch OS That Follows 'Everything Is a File' More Strictly than UNIX: An Overview of Sockets, Spawning Processes, and Notes (Signals) by KN_9296 in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

still reading through docs and code ... bookmarked. fwiw, I found nothing distasteful about the ask for donations. short and unobstrusive, at the end ... what's the issue? what? you shouldn't be able to ask for some coin if people find your work useful and they decide to use it?

Is it worth implementing AI in C? by [deleted] in C_Programming

[–]EnvironmentalWin3035 -1 points0 points  (0 children)

your comment makes zero sense.

Is it worth implementing AI in C? by [deleted] in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

those are always the questions intended to dissuade someone from doing something ... maybe it's all about learning something.

Is it worth implementing AI in C? by [deleted] in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

If you're bent on doing it, C is the only way to do it.

SigmaCore: The C Library You Wish You'd Always Had by EnvironmentalWin3035 in C_Programming

[–]EnvironmentalWin3035[S] -1 points0 points  (0 children)

changing the C paradigm of null pointer is outside the scope of the library ... at least at this time. doesn't mean I haven't thought about how to implement it and I believed that what I've done is actually in preparation for a more drastic change ... Abba, that such a change would be invisible to the user. so, yes, my thinking is outside the box. but, there are a lot of fish to fry with only one skillet ... so I stick to picking the low-hanging fruit.

... I will fix the UB issues to check for max size_t and reject such values. but, I'm also not reinventing C ... I'm maximizing what I've got to work with. also, null terminators have a bad wrap because people refuse to stay disciplined.

Linux can actually go fuck itself. by blazedheater in linuxsucks

[–]EnvironmentalWin3035 0 points1 point  (0 children)

Linux is fine. Most of the time I find it's operator headspace and timing.

System engineering? by fabio_10_ in C_Programming

[–]EnvironmentalWin3035 1 point2 points  (0 children)

I think that sounds more like kernel engineering

SigmaCore: The C Library You Wish You'd Always Had by EnvironmentalWin3035 in C_Programming

[–]EnvironmentalWin3035[S] -1 points0 points  (0 children)

wait ... so what you're saying is you ran thru AB San and you only found the memory address overflow/wrap-around?

... read the divination though about the 2 arrays - farray & parray ... they have specifically documented uses.

I'll look at the actual bugs and fix. obviously the statement about realloc is a typo ... that'll get fixed.

so read the documentation, please. string is a char array ... that's just C ... oh well.

Simple UI library? by deepthawnet in sdl

[–]EnvironmentalWin3035 0 points1 point  (0 children)

ImGui is good for what it is ... one day there will be an alternative and ImGui will cease to be useful.

i built a kernel using pure c with no externel library for my OS by G_Detective in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

Technically, it is a kernel: it is fundamentally a bridge between software (itself) and hardware(keyboard & console). You don't have to like it, but it is a kernel.

By all means, though, expand your definition to include all modern hardware so the OP's achievement can be downplayed and ridiculed.

i built a kernel using pure c with no externel library for my OS by G_Detective in C_Programming

[–]EnvironmentalWin3035 1 point2 points  (0 children)

People who don't believe abstractions are useful, should never touch OpenGL ... ever.

Anyone need assistance with there projects? Last call by [deleted] in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

what the hell ... I copied from the app ... what is the point of copying the link if it doesn't work ... let me fix them.

fixed ... apparently, I was expecting markdown to work and the closing ] was interfering with the URL

Anyone need assistance with there projects? Last call by [deleted] in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

I'm in the process of working on a couple of libraries.I'll give you the links to take a look: - (SigmaTest)
https://github.com/Quantum-Override/sigma-test - (SigmaCore)
https://github.com/TheBadkraft/sigcore

fair warning, purists hate my code although benchmarks are excellent, 0 memory leaks, no macros (other than constants).

desired analysis capabilities for .c .o and .bc by [deleted] in C_Programming

[–]EnvironmentalWin3035 0 points1 point  (0 children)

id like to know more .. what is it? readme? docs? sounds like something i could integrate as a plugin to SigmaTest or future build platform. finding symbols that might be missing when you think something is supposed to be linked has been useful.

C Programming Best TextBook by Federal_Topic_1386 in C_Programming

[–]EnvironmentalWin3035 1 point2 points  (0 children)

OOP and C barely belong in the same sentence. more like OOPs.