/dpt/ - Daily Programming Thread

No time for love edition

Previous Thread: What are you working on, Sup Forums?

Other urls found in this thread:

ideone.com/R9cE7i
en.cppreference.com/w/c/language/type
github.com/DmitryHetman/gentoofetch
github.com/withmetta/g_tetris
github.com/withmetta/g_tetris/issues/5
twitter.com/NSFWRedditGif

Rewriting C in the simply typed lambda calculus.

Reposting because I didn't see there's a new thread

I have an array of indices for opengl, but every second index number is not for drawing the actual mesh. Any way I can specify a stride for the indices? I know it's possible for the vertex buffer, but I can't find anything about what I need. Please send help

I know the answer, but I will demand an anime image as payment.

wtf I love scala now

Multi-layer composite cache. I have a bunch of threads. Threads belong to board(s). A board is sorted and paginated in bump order. Everything is cached. When you request a board page from cache, it queries the complete board cache, which is rebuilt on demand from individual cached threads, which are all updated and recached on expiration.

ideone.com/R9cE7i
Cryptography in the worlds safest language cause Actionscript makes me want to shot myself

>Actionscript
why?

I would rather drown in the opengl specification sheets, thanks.

Nyoro~n

Beware Freeman

So basically you're admitting that you're a redditor then.

You can piss right off, then.

>video games
>non-anime reddit poster
Please return to

Nice meme you faggots, go fap to your waifus

@60461857
>meme
>go fap to your waifus

I don't want reddit stink nearby. Fuck off.

I wanna write a simple journal

It reads a directory of markdown files which have date and title metadata

and gives the option of outputting a simple html page with all the entries in chronological order.

1) Thinking about sharpening my go skills so is go good?

reposting

>that picture
Holy shit, Ruby's actually a girl, and she's posting in these threads? FUCK

>Anime
Hi.
Go to hell.

I thought you could specify a stride using glBufferData, I guess not.

See char can be both signed and unsigned, as the standard allow the implementation to use either as default.

Would love to fuck Ruby, Scala and ActionScript

Is changing the default allowed for int as well? Although I'll agree that making unsigned default makes less sense than for char

a file can contain any number of 8-bit values. getchar gets the next value or nothing. To distinguish the end-of-file condition, we need a value that's distinct from all possible 8-bit values, which doesn't necessarily fit in a char.

>Is changing the default allowed for int as well
No

en.cppreference.com/w/c/language/type

char is special, but it doesn't explain why char is unfit for the return type of getchar. See

danke

Bitte

>139cm
Nigga wut da fug is this picture? Are you so severely autistic that you jizz when calculating the BMI of chinese drawings?

That's what I hoped for, but you can only use strides with the vertexattribpointer function, which is not used for the element array buffer object.

I just went and split up the index array into vertex indices and normal indices, it will have to do for now.

>Nigga
Fuck off. I'm not your "Nigga".

Guys I got a question.
When using exists in sql I can get a value of 0 or 1 however applying this to any freaking language such as java, c or c# I always get 1 no matter what I do.
What to do?!

what

Exactly, "what".
That's how I feel when I am using SQL.

Try asking on

General purpose multi-client multi-server log aggregator.

Clients pipe any kind of log data to the client tool which sends it over HTTP to server
Server keeps track of all the logs it received
Viewer is a web frontend
Watcher monitors the logs for anomalies/bad values/unmet expectations (like no heartbeat from client X for too long)/whatever and takes action

About 30% done, any suggestions?

What exactly are you trying to do?

Isn't your zero converted to '0' anywhere, then checked against a boolean resulting in True/1?

@60462643
Not programming, why did you feel then need to post it here?
Fuck off back to your containment thread

>Anime
Hi.
Go to hell.

Is my script is ready?
Should I make firs release?

>ITT one autist anime faggot OP shitting up the whole thing

Dammit!
Write console client in C!

Sure, seems like it.

holy shit

an actual arch user

I bet you copied the code from screenfetch, lazy ass nigga

What's going on

I am doing some exercises.
I got a thing where I run select exists on a subquery and then it returns either 1 for true and 0 for false. If I apply said query to java or c, it always return 1 as in true, don't know if this is due to it being a query that runs successfully, and not returning the value

>135 sloc
>screenfetch
>5204 sloc
Lol no, I wrote it myself, only thing that is copied from screenfetch is package counter.
gentoofetch is 137 lines long, 5kb in size 42 times smaller than screenfetch 26 times smaller than neofetch. It's written in ASCII characrers, so no Unicode required. Memory detection doesn't work in busybox shell

Man, I wish GPU programming wasn't such a fucking pain in the ass. What's not going right?

github.com/DmitryHetman/gentoofetch
Look at code and say if it's awful somewhere.

This is worse than that one thread with the underwater weighing and the sister pulling her hair up.

You keep saying what you're doing, but not what you're trying to do. What are you trying to determine?

The answer ought to be something like "I want to see if a particular piece of data on a SQL Server exists, and then get whether it exists in a C application."

Learn Vulkan+OpenCL+C11, you don't need anything else.

You missed the part where I said fucking pain in the ass

Come here you little shell twink

Right, might got me off wrong. But the exercises should be done with "whatever" language I like and the problem is that whenever I "try" it get the same result that it's always true but doing it "pure" sql against the console line I get true or false depending if it is there or not.

You don't need CUDA, use OpenCL.

Then it's obvious that you've misunderstood the meaning of the function's return values. You know who understands them perfectly and is willing to tell you? TFM.

No I have understood it correctly and I got it to work.
Thanks for trying to help.

>GPL
Dropped.

Why?

Probably will at some point, but I've only read K&R and never did a C project before.
Is argp nice?

Wow I never even noticed that arch logo really and now it bothers me

Fuck off

It's CIA-affiliated trash.
I watch you, user.

what panel is that tho
and what theme

To write console client you must know sockets/stdio.h/ncurses.h.

Please, don't say that.

>What are you working on, Sup Forums?

On the official /dpt/ Tetris game

Why would you assume someone copied a simple ascii drawing program?

See

(OP)
>What are you working on, Sup Forums?

Bored playing mutex dance in golang. So I try to make it channels only.

Faggot. sync.atomic is what real men use.

Real men don't use G*.

>official
I'll only accept this if (non-sexualized) lolis are involved.

>What are you working on, Sup Forums?
I've spent the last week writing only SQL. Maybe it's Stockholm syndrome, but I'm finding it pretty comfy overall, especially when your queries get used to show things to people.

>comfy

>non-sexualized lolis
good taste

github.com/withmetta/g_tetris

its for a web dev project, so i guess sync.atomic is useless...

>sepples
Get a load of this stupid faggot.

>web """dev"""
Fuck off to your containment thread

Should have done the C# one. Fuck sepples.

Or you do your service using your very own metacustom lockless datastructures and you outperform your competitors while experiencing intellectual orgasm. Your choice.

what font is that btw?

Why aren't you sending pull requests, user? Don't you want to take part in the biggest project /dpt/ has ever undertaken?

I wanna make C feel young again via mating press

Is Go worth learning?

It seems like the best compromise between Pyhthonic and C-like syntax and close to C performance

Orgmode, deft, and Emacs does this already.

Cython? I don't understand what you're looking for in terms of syntax....

Please everyone, share your advices and ideas

github.com/withmetta/g_tetris/issues/5

Your voice does matters

So i'm trying to make a cash register program for my Dad. I'm writing in Pajeet(Java) how can I make the printwriter text choose a device and print?

It is, if you plan to use it as statically-typed ~500 times faster Python replacement.

Hey /dpt/,

Are there any good resources to start learning C++?

GPLv3 protects software from DRM.

This. Many operations in Golang are perfectly thread-safe. For example, slice appends are safe, if there is only one writer at any given time.

"The C++ programing language"

>find somebody studying CS in college
>bum his slides

just saved you 20k

tfw got 97/100 on c# midterm are u proud of me Sup Forums?

Is it achievement?

Can anyone tell me why normal forms aren't sufficient enough for strong database design?

I assumed if my database for my project is in third normal form it would be fine but I've started undertaking a database class and the lecturer says that normal forms alone are not sufficient for good database design but offers no insight as to why?

Is this over the top and if not what are the technical reasons he may be citing?

I'll re-license your script under a proprietary license right now. You can't stop me.