What are you working on, Sup Forums?
Old thread:
What are you working on, Sup Forums?
Old thread:
Other urls found in this thread:
github.com
caml.inria.fr
wiki.libsdl.org
twitter.com
Which C utility library to use?
Glib
>huge
tbox
>like Glib but made by chinese
qlibc
>doesn't support custom allocators
>no mention of other platform support(windows, ...)
cprops
>not sure if maintained anymore
foundation_lib
>seems like you have use it's own event loop functions
klib
>macro mess
Again, you don't need a "utility library".
What should I call an anime-like language?
Maybe "Calculus of cute constructions"? If so, what extension should it have?
>Which C utility library to use?
Your own.
fuck of with your trips already.
I'm not going to reimplement the simple wheel.
no
How do I program with WinAPI in C?
#include
#include
Read MSDN.
If you want to do GUI use C#, and C++ for the functions that need speed.
>If you want to do GUI use C#
Why?
It's way easier to just use opengl/directx or any framework that utilizes those graphics API in C than it is to write OOP garbage.
You have 10 seconds to explain why you aren't writing HolyC right now
I don't have HolyC compiler.
You want to do forms or 2D/3D?
what are some overall tips to OS programming in C?
I must've been living under a rock. Apparently Davis-sama is vlogging.
Just download TempleOS and free yourself from CIA niggers
Is HolyC a subset or a superset of C?
Neither. It's its own language.
I'm not an autistic youtube vlogger
I'm CIA.
What's stopping me from writing C wrapper to stl with extern "C"?
that fact that you don't understand the stl
Try it out.
fuck off
>stl without templates
What would be the point?
To avoid writing macros.
So you would rather manually create vector_int_push_back, vector_float_push_back, etc for every type you'll use?
r8 my kosher mastermind game made in C
pastebin.com/HxtpS40A
Still contemplating learning haskell. Anybody recommend a up to date book?
The wikibook is fine. Learn you a Haskell is a bit autistic.
So LYAH is more idiomatic.
eww
...
Sup /dpt/?
How would you transform these textures? Possibly in OpenGL 1.5/2.1? Notice how the inner texture is not chopped down but correctly transformed to the final form of the cell shape. I guess its some form of geometry shader? The problem is I simply cant figure out the correct algorithm to produce this effect.
The picture is from the android game Cell Lab, its a very fun game if you want to try it.
Since it's a circle, draw lines from the center to the radius, then scale down each line to the new radius
#define IS(a,b) !strcmp(a,b)
Why. The compiler is smart, don't do this.
What is the relationship between normies and CLI these days? Should I still be making a GUI front end?
You should be making web front ends.
If it doesn't use at least 100mb memory while idling it's not good.
You mean he should have written a function?
>GUI frontend
Not enough, has to be a service which you access through the browser. Preferably it's in the cloud but if it's a service accessible through the local network that's fine too.
Also don't make it accessible by IP and port. Give it a hostname.
This guy knows what he's talking about.
hi firend i made a venn diagram for you. hope it helps
>nyaa replacement is written in golang
Should I give Golang a go?
no, you should give dlang the d
Why was the other thread deleted?
Damn, Nikita got BTFO
Anyone knows a good way how to "implement" C++ type vector to C.
Im having problems with having multiple types for same structure, is void pointer only way to go?
I'd rather use Rust than make a web app.
Guess it's a GUI then.
Interesting. According to your Venn diagram there is zero relationship between normies and the CLI.
You could try meta-programming.
>is void pointer only way to go?
Unless you're going to using macros to generate different versions of some structure, yes.
Using C99 feature (flexible array members), you can make it pretty efficient in terms of reducing allocations and increasing cache locality.
struct vec {
size_t cap;
size_t len;
unsigned char data[]; // sizeof(type) * cap
};
I understand this, but still,
if I had an array of lets say type int,
how do I go around that.
If I want my vector to be "templated" like in c++-
Schizophrenic actually.
Wow what an ass that fat bitch is. I agree sepples is trash but don't attack the poor delusional dude over it.
You could help out with Nyaa Pantsu.
was considering making an OS as a hobby and learning project. What OSes should I study to gain inspiration from? I was thinking maybe seL4, Plan9, and QNX if I could find sufficiently detailed documentation about them.
>If I want my vector to be "templated" like in c++-
You need some sort of generator macro then. I really find the void * implementation to be cleaner, though.
I used to have an example of an flexible array implementation, but I guess I deleted it, and I really can't be fucked writing it again (although it wouldn't take that long to do).
github.com
If you don't want to use it it has nice ideas you can borrow.
I fucking _HATE_ VPX.
TempleOS
So autistic
sel4, you could look at Redox. It's inspired heavily by seL4 too
No they're very different neuropsychiatric disorders.
Schizophrenia is a hell.
Schizos are just autists with a different buzzword
Any programmer should be able to sympathise with the horrific symptoms of schizophrenia. It's not joking matter. Why are you here?
Thank you, will check both of these.
>Any programmer should be able to sympathise with the horrific symptoms of schizophrenia.
No. Not every programmer is autistic, shouldn't be in your mental hospital right now?
Who should or shouldn't be in my local mental hospital user?
Because you said specifically that all programmers can relate to autism.
Sorry. You bore me now. Ignored.
s
@60260949
Don't forget your daily autism pills too
Reminder that there are no men on /dpt/, only women pretending to be men.
Actually no one knows anyone else's gender here and no one gives a single fuck, it's irrelevant. We may be mostly girls, but we don't actually pretend to be boys, we don't pretend to be any gender at all. Sorry if your conservative mind is confused.
It's 2015+2, gender is extremely relevant.
>gender is irrelevant
Didn't expect anything else from this bigoted shithole
Well no, /dpt/ has a code of conduct and it prohibits plastering your irrelevant bullshit all over the place. Sorry tranny, back to .
rekt
/dpt/ is for people who have transcended humanity and live in a world where only computer systems and their operations matter.
>humanity
Check your species privilege, what about all the furries here?
I'm working on a java project with gradle dependencies. I want to modify one of those dependencies. Should I just modify the code? Wouldn't my code get overwritten if I refresh the dependencies? I can't extend it because I want to modify an enum among other things.
uni homework :^)
working on a method that finds a solution for a randomly generated maze in java
Going through the Lazyfoo SDL tutorials, having to rewrite all his class-heavy C++ code into C as I go through them. Wish there was a better/faster way of learning it but SDL2 guides are surprisingly scarce.
Also discovered the Dracula colour scheme for sublime/other editors, which is good shit.
Clone the dependency into your project.
>having to rewrite all his class-heavy C++ code into C
Why? It's not mandatory.
I imagine he's not a big fan of C++.
Because I'm learning C, not C++.
SDL is not the best to learn C.
dietlibc
moe
Should I do SICP, or something aimed more towards statically typed functional programming?
Shouldn't you learn C first and then look at SDL?
Do you read French?
caml.inria.fr
I do not read French.
Even so, I'd prefer Haskell or Idris to OCaml.
daily learning and implementing new stuff in android
want to get out of javascript, webdev meme asap
hope I will find junior android dev posution that was not taken by Rajeesh
You're so young. I don't know Idris, but Haskell is fine. Just handle the lazy is fucking hardcore. They spent decades to prove the complexity of their sort algorithm.
>You're so young.
What did you mean by this?
Using OpenCV with C++ to do random cool stuff, then being impressed with what I've created.
If you don't do SICP, you'll never know how comfy it feels to program in (((Scheme)))
I'll rephrase: C is the language I've BEEN learning, and I feel I'm skilled enough in it to move into SDL. I'm not trying to learn C through making SDL programs or anything.
Did you failed to find a good tutorial here?
wiki.libsdl.org
>C
Do you use goto?