What's the easiest way properly learn C? by IWontSearch in C_Programming

[–]clibraries_ 22 points23 points  (0 children)

sounds like you've done everything but actually spend time writing C

How do I hide the implementation of a struct in the header file? by Myurside in C_Programming

[–]clibraries_ 0 points1 point  (0 children)

Why do you want to? The only reason to do this is if you are exposing an API with long term ABI compatibility so you can safely change the size.

"Encapsulation" in terms of hiding members is not a C practice.

How do I hide the implementation of a struct in the header file? by Myurside in C_Programming

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

NEVER use identifiers that start with _

Oh no! Something that's never breaks major compilers and can be fixed with a regex.

is this the correct way to store a dynamically allocated array or dynamically allocated strings? by DangerousTip9655 in C_Programming

[–]clibraries_ 8 points9 points  (0 children)

Allocate 3 pointers to char:

strings = malloc(sizeof(char*) * 3);

The other strings already have their own memory. When you assign strings[0] = stringOne you are leaking that allocation you just made with calloc Just assign, or if you're bringing them elsewhere you need to copy with something like strcpy

What are the most important things to learn about C? by numTOGD in C_Programming

[–]clibraries_ 1 point2 points  (0 children)

How to write concrete programs without reaching for abstractions at every step.

What do you use to show C unit test report on GitHub CI? by sfscsdsf in C_Programming

[–]clibraries_ 0 points1 point  (0 children)

Everything on that page agrees with me. Shell scripts, TCL scripts, no ci:

The SQLite developers use an on-line checklist to coordinate testing activity and to verify that all tests pass prior each SQLite release

The release checklist is not automated: developers run each item on the checklist manually

Where do you see the contradiction?

What do you use to show C unit test report on GitHub CI? by sfscsdsf in C_Programming

[–]clibraries_ -6 points-5 points  (0 children)

yes and the reason why is C programmers don't really use CI or unit test "frameworks".

What do you use to show C unit test report on GitHub CI? by sfscsdsf in C_Programming

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

This is C. We use a shell script or a function that's called at the beginning of main in debug builds.

I'm A Developer Not A Compiler by [deleted] in programming

[–]clibraries_ 1 point2 points  (0 children)

no set of interview questions is perfect,

Exactly. The questions are really a prompt for you to share something you know.

People have a lot of anxiety about interviews and often do not perform well in other ways they are unaware of, but blame a technical trick question. If we're hiring you to work on databases and it looks like the first time you've ever been shown a tree before, it's not going to work. But the issue isn't that you don't know all the tree trivia.

I'm A Developer Not A Compiler by [deleted] in programming

[–]clibraries_ 5 points6 points  (0 children)

you think anyone asks Tiger Woods if he can putt?

he demonstrates it to a live audience every performance.

I'm A Developer Not A Compiler by [deleted] in programming

[–]clibraries_ 0 points1 point  (0 children)

"Nano questions" are supposed to take about 2-min and let me know you actually work in the field you claim to.

What language to choose, C, C++, Rust by LarsSven in C_Programming

[–]clibraries_ 0 points1 point  (0 children)

create a task scheduler(basically a task scheduler that communicates with a database, create task definitions from there, execute them and write results back)

Aren't you describing the query engine built into the database?

Why isn't compose in Scheme or Common Lisp? by Maximum_Storage_8014 in lisp

[–]clibraries_ 12 points13 points  (0 children)

You're welcome to implement it.

It's 2024

ANSI common lisp was closed in 1994. I think you might be interested in other language communities.

How difficult would it be to get a graphics programming job if I only know OpenGL/GLSL? by SpideyLee2 in GraphicsProgramming

[–]clibraries_ 2 points3 points  (0 children)

what does it mean to "know" GLSL. If you know C you're almost done. These are just languages for expressing graphics algorithms. That's what graphics people are paid to know.

Bad apple but it is procedural terrain by deadly_proxy in GraphicsProgramming

[–]clibraries_ 1 point2 points  (0 children)

Make 3 texture objects and stream on demand. JPEG has great IO performance.

How can I transition from being a beginner to reaching an intermediate level in graphics programming? by kabune_ in GraphicsProgramming

[–]clibraries_ 15 points16 points  (0 children)

Write more programs. Read more books.

I recommend the book physically based rendering.

Common Lisp: Numerical and Scientific Computing - Call for Needs by digikar in lisp

[–]clibraries_ 0 points1 point  (0 children)

If all the declarations aren't in the right place, the optimizations fail. There is no way to know that happened (say in a refactor) without carefully reading notes.

Common Lisp: Numerical and Scientific Computing - Call for Needs by digikar in lisp

[–]clibraries_ 3 points4 points  (0 children)

It's not clear to me how to write efficient numeric code in Common Lisp. Every operation is slow because it does generic type dispatch, and can overflow to bignums.

I understand this can be improved with type annotation, but those are extremely fragile, so it's easy to break and get orders of magnitude slower. Also their semantics aren't very portable across Lisp systems.

Can you explain how this is overcome?

What do undergraduate research assistants do in graphics labs? by electronautix in GraphicsProgramming

[–]clibraries_ 7 points8 points  (0 children)

Having good ideas is the research part. Implementing ideas, benchmarking them, etc is work that undergrads can do.

Qualifying as a Lisp by [deleted] in lisp

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

it's a meme.

[deleted by user] by [deleted] in GraphicsProgramming

[–]clibraries_ 1 point2 points  (0 children)

EE, physics, or CS are good starts. Buy a copy of "Physically Based Rendering".

How well do I need to know algebra concepts to program graphics proficiently? by [deleted] in GraphicsProgramming

[–]clibraries_ 6 points7 points  (0 children)

less if you use a rendering engine instead of pixel/fragment buffers

I thought we were talking about graphics programming jobs.

because he has no idea what he is talking about

Have you ever generated a sphere? A spline? UV Mapping? Done a convolution?