/dpt/ - Daily Programming Thread

Ian Nelson
Ian Nelson

What are you working on, Jow Forums?

Last thread: jowforums.com/thread/71855261/technology

Attached: dec-pdp-11-by-pomorosso-d3fmh8w-pre.jpg (96 KB, 800x1000)

Other urls found in this thread:

jowforums.com/thread/71855261/technology
arxiv.org/pdf/1706.01206.pdf
jowforums.com/thread/71819814/technology
godbolt.org/z/83ZJTa
jsfiddle.net/sdfozptb/
cs.cmu.edu/~dst/LispBook/book.pdf
lispworks.com/documentation/HyperSpec/Front/index.htm
lispcookbook.github.io/cl-cookbook/
en.wikipedia.org/wiki/The_Apollo_Affair
en.wikipedia.org/wiki/Context_switch
youtube.com/watch?v=kIZ9eBBlY5M
javascript.info
hackage.haskell.org/package/base-4.12.0.0/docs/src/Data.Unique.html#newUnique
intel.com/content/dam/www/public/us/en/documents/product-specifications/high-definition-audio-specification.pdf
youtube.com/watch?v=My0lzMuNcHI
opensecuritytraining.info/
jowforums.com/thread/71866851/technology

Nolan Gonzalez
Nolan Gonzalez

Nothing.

Attached: 1537876820778.jpg (87 KB, 672x807)

Caleb Butler
Caleb Butler

Ah, I was waiting for you, Anone! Let us begin the JavaScript lesson. Please, come inside.

Attached: e86a2873e7584d434ff07abe9f8bd28b.jpg (210 KB, 736x1107)

Jackson Thomas
Jackson Thomas

oh god, I want to come inside her

Ryan Thomas
Ryan Thomas

1/3

Daily offer to prove that C++ is actually no really guys I'm serious capable of performing outstanding memory allocation optimisations:

Then why don't you go ahead and run some C++ program with an overloaded malloc implementation that counts how many 64-Bytes-or-less allocations have been performed? And with a corresponding free overload you can see how long they survived. I also don't care about your synthetic benchmarks for a simple program, all right? I want real-world applications.

, and that's why it's better than C.

inb4 the compiler cannot apply its optimisations
Most real-world applications link their shit dynamically. Dynamic linking means you can inject symbols via LD_PRELOAD on Linux (no idea about the interface on Windows however). Since the compiler has NOTHING to do with symbol resolving that should give you a proper idea of how much a C++ compiler is actually capable of optimisation.

inb4 I'm too dumb to do that; gimme code/instructions!
Take the following code and put it into libcm.c:

/*$ gcc libcm.c -c -fPIC -o libcm.o -O3 -Wno-unused-result && gcc -shared -Wl,-soname,libcm.so.0 -o libcm.so.0.1 libcm.o
**$ LD_PRELOAD=./libcm.so.0.1 <program to inject into>*/

#include <time.h> /*time*/
#include <unistd.h> /*write*/
#include <string.h> /*strlen*/
#include <stdio.h> /*sprintf*/

/*No include file introduces the __libc_* symbols, but they're still present
**in libc.so - see:
**`readelf -s /lib/x86_64-linux-gnu/libc.so.6 | grep 'malloc` or whatever your
**glibc path is. As such we can simply introduce them here and then rely on
**the linker to resolve them for us.*/
extern void* __libc_malloc(size_t);
extern void* __libc_calloc(size_t,size_t);
extern void* __libc_realloc(void*,size_t);
extern void __libc_free(void*);

#define PRINT_SHIT
#define OUTPUT_LENGTH_MAX (128)
#define DO_PRINT write(STDERR_FILENO,output,output_length)

static size_t counters[4] = {0};

Jordan Foster
Jordan Foster

Please, come inside.
That's lewd as hell.

Isaac Bell
Isaac Bell

2/3

__attribute__((destructor))
void cm_stats(void)
{
char output[OUTPUT_LENGTH_MAX];
int output_length;

output_length = sprintf
(
output,
"Mallocs: %lu\n"
"Callocs: %lu\n"
"Reallocs: %lu\n"
"Frees: %lu\n\n",
counters[0],
counters[1],
counters[2],
counters[3]
);
DO_PRINT;
}

/*Unfortunatey we cannot print the time in a proper fashion because calling
**localtime_r causes the program to lock up. Hard. I cannot even fathom what
**sort of lock it is that localtime_r and malloc are contesting for, and to be
**quite frank I don't fucking care either.*/
void*malloc(size_t size)
{
/*We cannot use printf/fprintf because those functions may request
**memory themselves. That's why we sprintf everything into our
**own buffer and write it directly to stderr.*/
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length; /*WHY THE FUCK IS THIS SIGNED?*/
time_t ut;
#endif
void*ptr;

ptr = __libc_malloc(size);
++counters[0];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Allocate %p|%lu\n",ut,ptr,size);
DO_PRINT;
#endif

return ptr;
}

void*calloc(size_t nmemb,size_t size)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif
void*ptr;

ptr = __libc_calloc(nmemb,size);
++counters[1];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Callocate %p|%lu\n",ut,ptr,nmemb * size);
DO_PRINT;
#endif

return ptr;
}

Chase Cooper
Chase Cooper

3/3

void*realloc(void*ptr,size_t size)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif
void*ptr_new;

ptr_new = __libc_realloc(ptr,size);
++counters[2];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Reallocate %p to %p|%lu\n",ut,ptr,ptr_new,size);
DO_PRINT;
#endif

return ptr_new;
}

void free(void*ptr)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif

__libc_free(ptr);
++counters[3];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Free %p\n",ut,ptr);
DO_PRINT;
#endif
}

inb4 cnile
still no data
still winning

¯\_(ツ)_/¯

Connor Wood
Connor Wood

uninitialized variables
fucking vomit inducing.

Dylan Hernandez
Dylan Hernandez

How do I not fall for the polyglot meme, I feel I wanna learn too many languages. Send help.

Attached: on3gwklteuc11.jpg (10 KB, 236x230)

Caleb Smith
Caleb Smith

Where are they uninitialised?

Isaac Cooper
Isaac Cooper

get a job and stop being a NEET

Leo Myers
Leo Myers

jowforums.com/thread/71855261/technology
paper on deep learning methods to combat online racism going pretty well

Attached: deep-learning-racism.png (168 KB, 721x875)

Lucas Morris
Lucas Morris

I hope a somalian refugee shanks you.

Xavier Davis
Xavier Davis

faggot haha

Andrew Ross
Andrew Ross

No degree, not many projects under my github. I am a fucking mess.

Attached: 1562707760857.png (17 KB, 200x186)

Carson Jackson
Carson Jackson

well i have two degrees but am still working on getting a job

Nathaniel Myers
Nathaniel Myers

the first sentient ai will have twitter as a dataset instead of all the world's knowledge from digital libraries

Attached: 1562918877099.jpg (5 KB, 250x233)

Anthony Campbell
Anthony Campbell

arxiv.org/pdf/1706.01206.pdf
Mostly useless, NLP is too complex, people just will destroy filters in minutes.

Connor Jenkins
Connor Jenkins

//boards.4channel.org/lgbt/

Brody Stewart
Brody Stewart

At least link them together so people can hide it easily.

Christian Clark
Christian Clark

how will it not get bogged down under just how many different kinds of racism exist, or account for different sentiments about how far is "too far"?

Mason Rogers
Mason Rogers

I'm waiting, cuck.

Andrew Thompson
Andrew Thompson

No. I want people to be bothered by it to the point where they actually do it.

Charles Thompson
Charles Thompson

Oh now meme images for racism

Attached: 9ACC923A-C773-4067-B943-2841A981A4FF.jpg (98 KB, 824x1042)

Nathaniel Bell
Nathaniel Bell

That relies on the presumption they are interested in any other racism than that which emanates from whites.

Michael Hughes
Michael Hughes

You do realize some have filtered you already right?

Leo Powell
Leo Powell

no it doesn't

Josiah Hernandez
Josiah Hernandez

You do realise I don't care? As long as I'm proven wrong I'll keep posting this text. Only takes me three minutes, that's negligible.

Daniel Taylor
Daniel Taylor

Can I get a VERY quick rundown?

Liam Adams
Liam Adams

Why do britbongs hold grudges like this?

Luke Ramirez
Luke Ramirez

user spamming his extremely dumb and irrelevant shit for two or three threads now and jannies are masturbating instead

Andrew Foster
Andrew Foster

don't blame me for this incomprehensible garbage

Owen Allen
Owen Allen

See, that's why I do it. As long as there are people this butthurt over being wrong I'm doing God's work.

Leo Campbell
Leo Campbell

@71861337
can't into basic logic101 to make correct arguments
look at how butthurt everyone is for being wrong :^)

Gavin Sanchez
Gavin Sanchez

How the fuck do you hope to interpret this printout from a real world application?
What are you gonna compare it to? How are you gonna know how many allocations were optimized or not?

Nicholas Anderson
Nicholas Anderson

he doesn't even understand the point of that post.
I suppose that's for the better.

John Reed
John Reed

How the fuck do you hope to interpret this printout from a real world application?
You're missing the point here. *I* am not supposed to interpret the data; I've done that often enough. This data aren't for me; this for the people who claim that the C++ compiler can optimise away smaller allocations.

How are you gonna know how many allocations were optimized or not?
It DOES show the sizes of each allocated block, doesn't it? If there's lots of allocations of smaller sizes you know there's something wrong.

Dominic Green
Dominic Green

if you were standing in front of me right now, i'd fucking batter you to death.

Xavier Davis
Xavier Davis

My personal favourite is thunderbird:

[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Allocate 0x11a05e0|596
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0
[1563038702]: Allocate 0x11899e0|704
[1563038702]: Free 0x11899e0

Juan Gray
Juan Gray

Sure thingy, keyboard warrior. *yawn*

Kayden Moore
Kayden Moore

lying on the internet

Dylan Reyes
Dylan Reyes

Less whining, more programming. Here is a pretty function that sums all integers between and b.

(define (sum-integers a b)
(if (> a b)
0
(+ a (sum-integers (+ a 1) b))))

Attached: 9UPP38D.jpg (76 KB, 438x750)

Jace Ortiz
Jace Ortiz

Here is a pretty function
pretty shit

Thomas Jones
Thomas Jones

data is being posted
"you're just lying"
that much denial
C'mon, beef up your game.

Josiah White
Josiah White

if I don't have a degree how can I get foot in the door as a backend dev? nodejs/typescript or python/django would be enough to work in tech startups? I plan to learn really well a scripting language and a statically typed scalable language (probably java 8+) along with enough cs and software design and architecture
I finished a really good introductory course in programming and oop with java 8, also learned js/nodejs/express, jQuery and DOM fundamentals, now I'm reading K&R 2nd edition because every language points to C and I want to learn pointers and basics of how memory works

Jose Williams
Jose Williams

Make a solid website with solid backend and people will consider hiring you if it's any good.

Contribute to backend stuff on github.

That's it really.

Oliver Bell
Oliver Bell

Luck.
If you happen to run into someone willing to give you a chance you'll make it, otherwise not.

Camden Morris
Camden Morris

not really, you've claimed something much bolder that C++ compiler optimising away smaller allocations, you said that no memory management was possible at compile time and that your "data" was the only way to prove you wrong, so fuck off

Aaron Campbell
Aaron Campbell

Oh yeah, where were my variables uninitialised again? Or have you just been talking out of your arse, like 90% of the time?

Silly question of course. I already compiled my code with more warning flags, and no warnings were produced. Of COURSE you've been talking shit, like all sepples.

Kayden Murphy
Kayden Murphy

now make it tail recursive

Camden Ortiz
Camden Ortiz

arse
filtered

William Ramirez
William Ramirez

kys cnile

Chase Jones
Chase Jones

being so severely handicapped he can't read anymore
What I wrote was:
Since the compiler has NOTHING to do with symbol resolving
, which means that at the point of symbol resolving all optimisations have already been done, and what you see is the """"""optimised"""" memory allocation.

It's not my fucking problem if you're dyslexic.

Austin Smith
Austin Smith

Gonna steal some github projects to add to my portfolio and act like I made them

Attached: serveimage.png (478 KB, 1000x1000)

Christopher Collins
Christopher Collins

FUCK OFF YOU LYING PIECE OF SHIT

jowforums.com/thread/71819814/technology
I'm talking about memory management, which is the one thing you can NOT do at compile time.
jowforums.com/thread/71819814/technology
but that's factually wrong, bro
jowforums.com/thread/71819814/technology
jowforums.com/thread/71819814/technology
Then why don't you go ahead and run some C++ program with an overloaded malloc implementation that counts how many 64-Bytes-or-less allocations have been performed? And with a corresponding free overload you can see how long they survived.

Landon Jones
Landon Jones

TCO can't apply here because the call to + depends on the return value of the recursive call

Levi Brooks
Levi Brooks

They ask stuff about your projects to see if you understand your own code, and they check for plagiarism. I wouldn't advise it.

Jack Garcia
Jack Garcia

How do you plan/keep track of your work? I find myself spending a lot of time just figuring out what to work on, even though there’s stiĺl a shitton of stuff that needs to be done.

Sebastian Thompson
Sebastian Thompson

the return value of sprintf is signed because negative values are used to indicate errors
also calling time like that is not recommended

Gavin Walker
Gavin Walker

Man, twitter is salty today about
you will never be a 10x engineer

Nolan Campbell
Nolan Campbell

someone at my uni got fired because he stole my code from github

Attached: 1553122118407.gif (134 KB, 340x340)

David Cruz
David Cruz

I use a whiteboard to note todo tasks. It's nicer than to do it on a computer imo.

James Watson
James Watson

so language/frameworks doesn't matter as much as building a website designed/architectured to scale with a good backend? also I thought learning c + go since language is backed by google and is gaining traction lately, what you say is it worth it?
I could also go for a degree but I would major in something like math or stats with a cs minor
thank you

I agree with you user but I'm pretty determined and I believe that luck favors those who work hard enough. thanks

Ethan King
Ethan King

FUCK OFF YOU LYING PIECE OF SHIT
No.

I'm talking about memory management, which is the one thing you can NOT do at compile time.
Alright, I'll explain it very, verrrrry slowly to you brainlet.

The compiler goes through the code and performs optimisations. However, when it comes to memory management, the compiler is almost completely powerless to optimise because all the compiler can do is compile-time optimisations, not run-time optimisations.

And that's exactly what my data shows, because *obviously* thunderbird - which I did post as an example - hasn't received any memory management optimisation. How else do you explain that a block of 704 bytes is allocated - and then freed - and then allocated - and then freed - and that for literally thousands of iterations?

Did I actually get through to you this time?

Jordan Lewis
Jordan Lewis

I don't care about your excuses, you lying piece of shit. go on, squirm squirm, it's so fitting for you cniles.

Hunter Davis
Hunter Davis

the return value of sprintf is signed because negative values are used to indicate errors
Dude I know. I can read man pages. The point of me asking this is that sprintf should've written the bytes written into a separate variable, and the return value should've just indicated whether or not the call was a success.

also calling time like that is not recommended
Pray explain why.

Jack Reyes
Jack Reyes

this doesn't prove whatsoever that compile-time memory management isn't possible.

Daniel Campbell
Daniel Campbell

is explained where he's wrong
LIAR LIAR PANTS ON FIRE
Lemme guess: you're one of those people who deny climate change because it's cold where you live right now.

Bentley Morris
Bentley Morris

It doesn't matter much, no. People like experience with certain backends sometimes (people are heavily looking for node.js experience) but if you're able to understand a framework then switching frameworks shouldn't be a problem, and that's probably what they're going to test you on (as in, if you understand what you're doing).

I would not recommend C unless you think you're going to have a use for it (for example toying with embedded stuff or deep Linux stuff). Go is an okay language. Your choice of language doesn't matter much actually as long as you don't pick something 100% dead, just get proefficient as some kind of technology even if a bit more fringe, and you should find a job eventually. Also don't be scared by all these jobs that require a degree, just send your application with your portfolio anyway, you have a shot at impressing people this way.

Anthony Morgan
Anthony Morgan

Do you need to learn PHP to set up a custom Vichan imageboard?

Jeremiah Perry
Jeremiah Perry

you didn't prove that compile time memory management was impossible, merely that C++ didn't do the optimizations you want it to d, lying piece of shit

Adam Richardson
Adam Richardson

this doesn't prove whatsoever that compile-time memory management isn't possible.
Then why doesn't the C++ compiler do it? Allocating and then freeing the same block right after should be one of the *easiest* patterns to figure out.

Andrew Carter
Andrew Carter

I'd imagine using PHP/Javascript is pretty much necessary yes.

Luke Torres
Luke Torres

Make a program that automatically parse, shuffle and rename everything in an input folder!

Samuel Howard
Samuel Howard

now you're just proving you don't know basic logic, at least not enough to argue with people.

Oliver Stewart
Oliver Stewart

It says it doesn't use Javascript so I guess I'll just need to learn PHP

Cameron Jenkins
Cameron Jenkins

I don't understand dependency injection

Attached: 1532597501455.jpg (1.02 MB, 1680x1050)

Josiah Parker
Josiah Parker

kinda hard to parse that from your comment but fair enough
Pray explain why
The tloc argument is obsolescent and should always be NULL in new code.
When tloc is NULL, the call cannot fail.
for more info check the man page for time

Lucas Robinson
Lucas Robinson

it's just partial function application

Camden King
Camden King

I wish instead of playing with computers for a decade I had made a family.

Attached: 1558489013777.jpg (163 KB, 573x781)

Brayden White
Brayden White

thank you for this post, I really appreciate it!

Aiden Hill
Aiden Hill

Allocating and then freeing the same block right after should be one of the *easiest* patterns to figure out
I'm new to this discussion, but it does do that?
godbolt.org/z/83ZJTa
Compiles to single call to malloc

Owen Young
Owen Young

rather than using hard dependencies (e.g. concrete classes) you get them passed to you, usually in a constructor

instead of

class Foo
{
Bar bar;
Foo()
{
bar = new ConcreteBar();
}
}

you have
class Foo
{
Bar bar;
Foo(Bar bar)
{
this.bar = bar;
}
}

James Torres
James Torres

Attached: 1556834533921.png (50 KB, 500x326)

Jeremiah Cox
Jeremiah Cox

sounds easy. the why do I need frameworks like dagger2?

Nathaniel Phillips
Nathaniel Phillips

Well as long as I understand them
I can just change the name and the references to the author or his github to my own. Maybe the colors too

Jackson Taylor
Jackson Taylor

*then

Eli Parker
Eli Parker

In bash, how can I do something for each argument in a while loop?
for example

./test program a b c
while [ count -le $#]
do
echo $$count
count=$((count + 1))
done

desired output should be a b c
This is what i'm trying to do but $$count doesn't work as I want it to. whats the correct way of doing this?

Alexander Reyes
Alexander Reyes

./test_program *
not that it matters

Benjamin Sanders
Benjamin Sanders

Hey, here's a great idea. Why don't you do the same as I did - compile the code that I provided - and run it against some existing C++ applications, and just find me ONE example where the memory allocation isn't obviously trash and someone didn't do manual optimisations on the source-code level?

Now to be clear it's not *completely* impossible. But tracking pointers across several possible function calls and jumps is wildly complicated already. If people have been working on this for 30 years, and their software still produces code like I've shown, then you can assume it's rocket surgery.

(I'd also assume there's some aliasing bullshit going on, but at this point who knows. That's why I said: run it and show me the data, and if you find one not manually crafted example of proper memory utilisation I'll shut up. Hasn't happened so far - I have yet to see one such program).

More the equivalent of:

int *a,i;
for(i = 0;i < 10000;i++)
{
a = (int*)malloc(40 * sizeof(int));
free(a);
}

, but of course with less intentional stupidity.

Ryder Barnes
Ryder Barnes

DI frameworks generally involve using annotations so dependencies are automagically resolved rather than being explicitly provided by you in e.g. constructor calls.

Oliver Gray
Oliver Gray

for arg; do
echo "${arg}"
done

Xavier Hall
Xavier Hall

Lisp is the most powerful programming language.

Nolan Gomez
Nolan Gomez

It just says that:
When tloc is NULL, the call cannot fail.
And that's not good enough for me. I already had to split the code into three postings.

Evan Ward
Evan Ward

this is why javascript is the most powerful language jsfiddle.net/sdfozptb/

i can make beautiful computer art and share it with the world instantly

Angel Morales
Angel Morales

#!/bin/sh
for a in "[email protected]"
do
echo "$a"
done

or
#!/bin/sh
while [ "$#" -ne 0 ]
do
echo "$1"
shift
done

Noah Gray
Noah Gray

If you're stupid enough not to rename, reshuffle and possibly refactor everything (although that would constitute actual work) ya deserve it.

Carson Flores
Carson Flores

I don't think

 
ut = time(NULL);

is that much worse than
time(&ut);

besides you could just put up a pastebin link

Luis Phillips
Luis Phillips

Attached: 1558475700100.jpg (50 KB, 1240x699)

Leo Jackson
Leo Jackson

if you're willing to put in that much work, you might as well write it yourself, me thinks

Mason Ross
Mason Ross

He can also just do a function call. Bash supports functions.

Joshua White
Joshua White

Attached: wut.png (6 KB, 537x472)

Hunter Jones
Hunter Jones

it's like wishes ever come true

Jose Peterson
Jose Peterson

reshuffle and possibly refactor
what does this mean

Angel Martinez
Angel Martinez

t. 800x600 4:3 master race

Ryan Allen
Ryan Allen

I kept working on my game, added a launcher for ease of use and a lot of infrastructure (inventories and items can be used with proper network synchronization).
I just realized that items held in the right hand are not rendered, sorry for that

Attached: raycasterlauncherinv.webm (2.86 MB, 1024x798)

Logan Gray
Logan Gray

Reminder to always use the raw link when linking to pastebin.

Attached: 1562905693931.jpg (98 KB, 744x720)

Easton Moore
Easton Moore

I like to put my uni projects on github with stuff that gives away that it’s copied hidden in the code.

Thomas Roberts
Thomas Roberts

(defun sum-integers (a b)
(declare (type integer a b))
(the integer (reduce #'+ (loop for x from a to b collect x))))

Robert Edwards
Robert Edwards

My screen is too big to run my browser fullscreen. Hang on.

Aiden Butler
Aiden Butler

(defun sum-integers (a b)
(declare (type integer a b))
(the integer (loop for x from a to b sum x)))

Benjamin Bailey
Benjamin Bailey

Exactly. Lisp is so powerful that problems which are technical issues in other programming languages are social issues in Lisp.

Attached: hatdog.jpg (260 KB, 900x948)

Elijah Sanchez
Elijah Sanchez

(apply + (range a b))

Hunter Cox
Hunter Cox

I've been interested in learning for years, but is there a commonly-accepted jumping off point for learning this shit?

Should I just jump in with a book/course and start following their instructions to get a base?

What language do I start with? Python? Java? I know it can be dependent on what I want to do but, honestly, I know so little about any of it right now that I don't have a direction so much as an interest.

Christian Watson
Christian Watson

I see now, pretty neat user.

Attached: 2019-07-13-182220-1381x1039-scrot.png (198 KB, 1381x1039)

Jeremiah Perry
Jeremiah Perry

Why would someone still use a LISP when Haskell exists? Loose typing? Serious question.

Nolan Myers
Nolan Myers

In kotlin that's just

(a..b).sum()

Connor Bennett
Connor Bennett

How to automate the boring stuff with Python.

Jaxson Lewis
Jaxson Lewis

mpirun -n 2 countprimes 30
Process 1 will take [16, 31)
Process 0 will take [2, 16)
Process 0: 2 is prime!
Process 0: 3 is prime!
Process 0: 5 is prime!
Process 0: 7 is prime!
Process 0: 11 is prime!
Process 0: 13 is prime!
Process 1: 17 is prime!
Process 1: 19 is prime!
Process 1: 23 is prime!
Process 1: 29 is prime!
Found 10 primes ≤30 in 0.0002023671 seconds

:D

Just doing a vanilla loop from 2 to sqrt(n) for this. Should I bother with trying to write a parallel sieve if the assignment doesn't require it, or is that just more trouble than it's worth?

Daniel Parker
Daniel Parker

I can't use the language because I always think of the kot meme.

Hudson Hughes
Hudson Hughes

Why would someone still eat apples when oranges exist?

Joshua Gonzalez
Joshua Gonzalez

lisp is more pragmatic, doesn't enforce functional paradigm. Also, it being a programmable programming language; the only limit is yourself.

Attached: d.jpg (864 KB, 1280x1707)

Christian Wright
Christian Wright

because haskell is pure autism and doesn't give you as much control as lisp does

Dylan Parker
Dylan Parker

How? Comments or something?
Im gonna go through every file if I steal some shit.

Camden Smith
Camden Smith

How do I pronounce std::? "Stood vector" or some shit?

Gabriel Garcia
Gabriel Garcia

"sexually transmitted disease"

Lucas Myers
Lucas Myers

Sexually Transmitted Diseases

Zachary Scott
Zachary Scott

cs.cmu.edu/~dst/LispBook/book.pdf
Thank me later. You will probably not use Common Lisp constantly after reading this but this should teach you solid bases.

Attached: Gentle-introduction-to-symbolic-computation.jpg (25 KB, 260x326)

Leo Bell
Leo Bell

standaarrrrd

Zachary Cruz
Zachary Cruz

HAHAHAHAHA

Eli Sullivan
Eli Sullivan

OHOHOHOHO

Gavin Robinson
Gavin Robinson

Ironic.

Noah Davis
Noah Davis

lispworks.com/documentation/HyperSpec/Front/index.htm
lispcookbook.github.io/cl-cookbook/

Christopher Wood
Christopher Wood

rip

Nathaniel Myers
Nathaniel Myers

a gentle introduction
I'm going to be raped, aren't I?

Attached: hmmm.jpg (51 KB, 619x800)

Connor Thompson
Connor Thompson

So literally the final form of JavaScript. Just use a language that actually convert well into brain abstract constructs like C.

Jeremiah Jones
Jeremiah Jones

No. The book ACTUALLY is really gentle. You're in for a loving night of gentle list-making rather than a brutal macro-bruising night. Your ass will be fine. This book actually made me somewhat of a decent programmer.

Bentley Butler
Bentley Butler

like C.
obvious bait

Thomas Rogers
Thomas Rogers

This book actually made me somewhat of a decent programmer.
What were you before?

Gabriel Ross
Gabriel Ross

What even is LISP?
Why does /dpt/ like meme literal who languages?
Just use Java/C# or C++ or Python

Daniel Lee
Daniel Lee

Javascript is the final form of programming languages.

Camden Perez
Camden Perez

Why does /dpt/ like meme literal who languages?
it's nice to try something else after years of writing Java/C#/C++/Python at work

Oliver Jones
Oliver Jones

why does it matter to you so much
how did lisp hurt you

Juan Fisher
Juan Fisher

Confused piece of shit desu. I don't know what's with that book but it made me understand how to approach programs, made me understand notions I didn't fully understand (like recursion, properly using short-circuit logic, etc) and something just clicked reading the book overall. It kinda felt like starting over if that makes sense? It makes you realize that tutorials on the internet and even university courses are pretty bad at their job and explaining to you why you do certain things a certain way. The book was pretty eye opening in that aspect aside from the specifics of Common Lisp. I'd honestly recommend it to literally anyone that wants to get into programming even if I am 100% sure they will never use Common Lisp just for how good it is at giving you a solid base.

Nolan Bailey
Nolan Bailey

I'll look into this, thanks for the input!

Daniel Roberts
Daniel Roberts

It didnt im just confused as to if Im missing out by not learning this languages or if theyre just useless meme garbage

Jonathan Ward
Jonathan Ward

beautiful

Ethan Cruz
Ethan Cruz

stəd

Justin Jenkins
Justin Jenkins

In Haskell this is just

sum [a..b]
.

Luis Wilson
Luis Wilson

if you're happy with what you know, then you're probably not missing out
but if you're curious, learning something new isn't a waste of time.

Adrian Bailey
Adrian Bailey

You are missing out in the sense that Lisp makes you understand profound things about programming and makes you forget about syntax to only focus on your ideas. It's really important for any programmer that wants to enlighten themselves beyond simply being a code monkey and 100% getting what you're doing, and what's possible to do in this world. You also have to know that even today, languages are still trying to import Lisp's ideas in their languages (Lisp is the father of garbage collection for example). It's a mature language so it's an universal way to teach anyone what programming is about. You cannot go wrong with Common Lisp ever.

Then again, you will probably never actually use Lisp in the context of work (except if you invest your time in Clojure) so if you are solely looking for that, I wouldn't recommend it.

Charles Hernandez
Charles Hernandez

I find CL is kinda clunky compared to Racket/Scheme because of all the concessions it makes. defun, defvar and setq are ugly compared to a universal define.

Jayden White
Jayden White

setq is not an alternative to define

John Cooper
John Cooper

lisp-2 is always clunk

Jose James
Jose James

ah yes, the ages old lisp-1 vs. lisp-2 holy war. i feel truly at home.

Hunter Gray
Hunter Gray

I don't understand how there's any argument at all, lisp-2 is heinous

Isaac Morgan
Isaac Morgan

(let ((let '`(let ((let ',let))
,let)))
`(let ((let ',let)) ,let))

Jayden Thomas
Jayden Thomas

I'm fairly new to programming, but I just realized that I just opened a text editor and started writing perfect syntax without having to stackoverflow everything.
It's not much but I'm proud of it :)

Elijah Cox
Elijah Cox

good work

Wyatt Reed
Wyatt Reed

thats what intellisense is for user
you do use vs code right?

Jacob Cox
Jacob Cox

I have no idea what you're getting at.

Camden Reyes
Camden Reyes

What is the one single language to learn that will help most with regards to then getting thrown into the deep end with a random language I've never touched before.

Luke Thompson
Luke Thompson

Lisp for notions, C for common syntax since a lot of languages use C-like syntax.

Leo Mitchell
Leo Mitchell

stop looking for points when there are none to find
you'll only come out angry
also lisp-2 > lisp-1

Oliver Adams
Oliver Adams

vs code a shit

Sebastian Jenkins
Sebastian Jenkins

So, which one?

James Torres
James Torres

tfw working in a group
tfw I know I would do it better alone

Attached: 1532999693105.jpg (56 KB, 452x564)

Aaron Cook
Aaron Cook

why

Thomas Perez
Thomas Perez

redpill me on SCRUM methodology

Owen Lee
Owen Lee

To be honest, people mostly seem to have a good impression of vscode, but every time I've tried it I've experience horrible performance issues that made it practically unusable.

Julian Nguyen
Julian Nguyen

I know I said C/Lisp but if you have to choose one language go python exclusively desu

Adrian Cox
Adrian Cox

A bunch of sweaty guys grabbing each others balls.

Attached: SCRUM.jpg (671 KB, 1985x972)

Daniel Mitchell
Daniel Mitchell

python
troll post

Josiah Green
Josiah Green

Rationalle?

Julian Fisher
Julian Fisher

I hate intellisense and auto complete - never fucking insert or do any auto shit when I'm typing, please.
I'm ok with hitting a key and getting a fuzzy string matcher for things like file names or tags, but that's about it.

Nolan Anderson
Nolan Anderson

It's a scam.

David Harris
David Harris

GPL vs BSD

Thomas Young
Thomas Young

If you legit only have the time to learn ONE language then you'll be able to do a lot of shit with python. It might not be the best performance wise but with the amount of support Python is getting you legit could do anything on Python. So Python is a good choice for people that only have the time to learn one programming language, like scientists. If you want to learn more shit I'd only advise Python for prototyping solutions.

Austin Powell
Austin Powell

MIT

Ryder Sanchez
Ryder Sanchez

Are you a student? I've been there. I remember there was one assignment where I got fed up, broke out of the group and left the others to do their own thing, wrote the whole assignment myself, handed it in before all other groups, and was the only one to pass on the first go.

In retrospect it was kind of an assholish move of me. There is value in learning to cooperate and being able to help others. If you know you would do the assignment better alone, then cooperation is a lesson you still have to learn.

Owen Ross
Owen Ross

you legit could do anything on Python

Jace Moore
Jace Moore

I'm ok with hitting a key and getting a fuzzy string matcher for things like file names or tags, but that's about it.
That's what intellisense does best.

Grayson Rogers
Grayson Rogers

Working in a group for the experience is one thing and failing an assignment is another. You did the right thing user. Not everyone should be programming and those who can shouldn't be held up by others.

Austin Myers
Austin Myers

Considered harmful
GPL, LGPL, Apache Software License, MPL, CC
Less harmful alternatives
ISC, MIT/X, BSD, CC0, public domain

Attached: grafx2---anime-girl-01-by-theouterlinux-dcgw6lx-fullview.jpg (103 KB, 1024x589)

Levi Bennett
Levi Bennett

thank you
I dual booted loonix and set up a barebones ubuntu install with firefox and atom so I don't get distracted by bing bing wahoo
is vscode available on atom?

Carter King
Carter King

You cannot disprove that, you'll lose a lot of efficiency for certain things but people do things with Python RIGHT NOW that they really shouldn't do because it's Python.

Caleb Evans
Caleb Evans

still using intel atom

Attached: 1539142950313.png (37 KB, 600x600)

Hunter Parker
Hunter Parker

BSD less harmful
I always hear BSD projects begging for donations where GPL projects don't have that kind of problem. BSD code is shamelessly used in so many commercial projects with the original devs not seeing a single dollar and being unable to do anything against that.

In my opinion GPL should be even stricter, like preventing intelligence services and military from using anything GPL-related.

Lucas Butler
Lucas Butler

they really shouldn't do
Python
you'll lose a lot of efficiency

Xavier Foster
Xavier Foster

please user I just want to program :(

Jayden Flores
Jayden Flores

So what? I'm still running an FX.

I'm just kidding; this is a Phenom

Jacob Robinson
Jacob Robinson

how do I go about programming an image or video duplication checker in a folder and removing one of them since its bloat

Wyatt Edwards
Wyatt Edwards

like preventing intelligence services and military from using anything GPL-related.
You've heard of JSON license, haven't you?

Jackson Scott
Jackson Scott

if you can't figure this out you should just become a plumber or something.

Liam Cruz
Liam Cruz

I honestly forgot how to do anything by myself
I just google everything

Adam Cook
Adam Cook

Problem is that some asshats have some very different opinions about what is good and evil. I'd like to bar them from such rhetoric tricks.

Ayden Diaz
Ayden Diaz

you can google how to do that, as well.
please, user, do it on your own.

Carter Cruz
Carter Cruz

like preventing intelligence services and military from using anything GPL-related.
commie faggot

Jackson Hall
Jackson Hall

I was still using a P4 as a daily driver until a few months ago, now I'm using an ARM SBC. Slow computing is comfy.

Attached: Toujou.Nozomi.full.1730650.jpg (146 KB, 579x582)

Zachary James
Zachary James

I wanted to do it without google
guess I wont

Xavier Evans
Xavier Evans

writing gui library
making buttons, toolbars, panels, sliders
look over program and see same functionality repeated everywhere
wait, literally everything you click is just a button
refactor and program is now x5 shorter

Attached: 1563031417535.jpg (63 KB, 800x576)

Leo Davis
Leo Davis

preventing intelligence services and military from using anything GPL-related
That's literally unenforceable.

Brandon Allen
Brandon Allen

GPL bad. very restricting.
MIT good. very permissive very open source.

Attached: autistic-jewgirl.jpg (33 KB, 512x512)

Oliver Turner
Oliver Turner

nothing wrong with looking a few things up.

Caleb Garcia
Caleb Garcia

Sure, but at least it would give you the option to make this a very public suit.

Evan Campbell
Evan Campbell

The military can't even prosecute someone for stealing their nuclear material and tech
en.wikipedia.org/wiki/The_Apollo_Affair

Landon Gonzalez
Landon Gonzalez

with suspicions that it had gone to *Israel's nuclear weapons program*
Anyone surprised that the military was strategically incompetent here?

Bentley Hill
Bentley Hill

I have a file with data I need to allocate some memory for but don't know how much memory to allocate until I read the entire file. What's the most efficient way to handle this? Should I do one pass through the file, rewind, then allocate the memory? Or is it faster to just use a vector and dynamically allocate the memory.

Attached: 1522104607089.gif (1.54 MB, 480x264)

Carter Harris
Carter Harris

lists:sum(lists:seq(A, B)).

Attached: 155907705415711.png (332 KB, 917x1105)

Noah Parker
Noah Parker

Use stat.

Lucas Clark
Lucas Clark

wait, literally everything you click is just a button

Attached: 1479208724334.jpg (266 KB, 750x738)

Robert Ramirez
Robert Ramirez

Just got halfway through this book, feelin' bretty gud. Beats the hell out of K&R

Attached: c-programming-a-modern-approach.jpg (31 KB, 407x500)

William Hernandez
William Hernandez

Actually, scratch that, use mmap/CreateFileMapping. That way you don't copy data unnecessarily.

Justin Miller
Justin Miller

there's only one way to be sure, try both and measure the performance.

Jason Jenkins
Jason Jenkins

failing an assignment
If that's a real danger, then I question if you're as good as you think you are. Sometimes it's just easier to do everything yourself than having to drag along your group, but that's missing the point of group assignments, and doing yourself and your future co-workers a disservice.

I was very inexperienced myself at that time, so just saying fuck it and doing everything myself was a good learning experience in its own way, but there came times later in my education where had to suck it up and learning to deal with group assignments.

Kevin Hernandez
Kevin Hernandez

Waste of fucking time.

Jacob Cooper
Jacob Cooper

K&R
K N' R
K N' K
K . N . KING

Adam Fisher
Adam Fisher

What's the most huwhite area of CS research?

Easton Jones
Easton Jones

If he needs to actually read the entire file then using file streams (fread with friends) would be faster, I think.

Carson Kelly
Carson Kelly

/pol/tard get out

Dylan Jones
Dylan Jones

All of Jow Forums(nel) is /pol/.

Adrian Torres
Adrian Torres

All serious areas of CS research are going to be full of whites and asians.

Jaxson Parker
Jaxson Parker

In that case the fastest thing depends on the operating system. In the case of Windows reserving a huge section of virtual address space and only committing it when needed would prevent costly copies during reallocations. On Linux one can use mremap to dynamically resize a memory block without copies (the kernel simply changes the location).

Charles Gutierrez
Charles Gutierrez

Reading the file in chunks is significantly faster than reading byte for byte. I learned this the hard way.

Landon Cook
Landon Cook

Question: why is reading chunk-wise faster than byte-for-byte?
I know the answer; I just wanna know WHAT you learnt the hard way.

Adrian Rogers
Adrian Rogers

You're putting me on the spot, here.

Asher Watson
Asher Watson

en.wikipedia.org/wiki/Context_switch

Jacob Reed
Jacob Reed

Is starting to like js a sign of Stockholm syndrome?

Attached: g45r1ublyz931.jpg (34 KB, 640x592)

Jaxon Russell
Jaxon Russell

Reading byte for byte creates more overhead by invoking context switching for each byte instead of each chunk?

Kevin Lee
Kevin Lee

I'm a 10x engineer.

Brayden Reyes
Brayden Reyes

I mean you can do anything with javascript so it wouldnt be a surprise if you started liking it despite the language being dogshit.

James Butler
James Butler

Probably. I'm in the same situation.
But ES6 has also made javascript into a significantly nicer language.

Jacob Smith
Jacob Smith

This tbqh. My jar file wouldn't run on my brother's winblows computer even with Java installed, so I might just rewrite it as an html file since I know js will work.

Tyler Miller
Tyler Miller

Pretty much.
A proper OS will cache parts of files in the so-called I/O cache, but that cache lies in kernel space. Whenever you request a single byte from there there needs to be a mode switch happening, because kernel space is separated/protected from user space. Once the byte is then copied into the buffer another mode switch needs to happen.

Which is why you want to avoid mode switches altogether or at least want to get as much shit done after a switch as possible.

Daniel Wilson
Daniel Wilson

If that's true post some qt javascript.

Attached: 1562920763235.jpg (24 KB, 482x511)

Eli Ramirez
Eli Ramirez

Cool. Thanks.
I did not know this, and I did not learn this the hard way.

Ethan Martin
Ethan Martin

const generateID = (i => () => i++)(0)

Jace Sanders
Jace Sanders

woah thats neat
can you explain how does it work?

Julian Murphy
Julian Murphy

i is a function that increments i with an initial argument of zero? Would i be global if this was defined in global scope or is it somehow local to the function?

Asher Carter
Asher Carter

its a closure
same as

"use strict";

var generateID = function (i) {
return function () {
return i++;
};
}(0);


pasting it on the console
> const generateID = (i => () => i++)(0)
undefined

generateID(0)
0
generateID(0)
1
generateID(0)
2
generateID(0)
3
generateID(0)
4
generateID(0)
5

Ian Scott
Ian Scott

Fuck, get me off this ruse cruise

Attached: 1562993523556.jpg (181 KB, 658x560)

Thomas Cook
Thomas Cook

i is a captured local variable dummy

Ryder Rogers
Ryder Rogers

This is probably true of *any language*. All languages are objectively terrible. Any language you've spent enough time with to have become comfortable with it and accepted it's flaws is subjectively nice.

Evan Barnes
Evan Barnes

even haskell generates uniques better

Jacob Nguyen
Jacob Nguyen

Except Lisps.

David Edwards
David Edwards

post it

Hudson Collins
Hudson Collins

Just like women.

Cameron Lee
Cameron Lee

All languages are objectively terrible
that's like your opinion man

Cooper Martinez
Cooper Martinez

Case in point.

Yes, and the opposite of girls.

Isaiah Ortiz
Isaiah Ortiz

Took me a while just now to figure out C doesn't have inverted assignment.

x != f(); // incorrect
x = !f(); // correct

Shit is stupid, especially since there's a load of other assignment operators.

Evan Turner
Evan Turner

yeah, for binary operators dumbass

Jace Wilson
Jace Wilson

Spent the whole day working on sound support for my operating system and then building a desktop piano app so I can play little melodies :)
Check it: youtube.com/watch?v=kIZ9eBBlY5M

Attached: harold.png (274 KB, 549x413)

Zachary Gomez
Zachary Gomez

NOT is a binary operation.

Adam Howard
Adam Howard

Thats cool even though famitracker already is a thing.

Wyatt James
Wyatt James

Dude, it's just backwards unlike all the other ones. Ritchie thought it would be funny to make it inverted since it's an inverter.

x =! f();

Christopher Wright
Christopher Wright

What language uses != or similar for assignment?

Colton Wilson
Colton Wilson

9P2000 IPC DISCO PARTY

Robert Hall
Robert Hall

Won't let me post the code I wanted to post.
connection error

Zachary Smith
Zachary Smith

Attached: really.jpg (22 KB, 138x282)

Ayden Hernandez
Ayden Hernandez

lisp does as of now

(defun != (x y)
(setf x (not y)))

Jose Richardson
Jose Richardson

If you already have ^=, &=, |=, <<= and >>= why wouldn't you have logical inversion? It's likely just to avoid syntax collision in conditional statements.

Adrian Morgan
Adrian Morgan

This is the new while(x --> 0)

Isaac Thomas
Isaac Thomas

I'm not arguing. I thought you might know some language that has it, since you expected C to have it.

Julian Flores
Julian Flores

good post

Nicholas Taylor
Nicholas Taylor

Is Prolog worth learning?

Brody Evans
Brody Evans

I don't know of any, it would just follow from the other assignment operators.

Robert Russell
Robert Russell

Certainly.

Jason Jones
Jason Jones

^, &, |, << and >> all have two operands
! has one operand
you're utterly retarded

Benjamin Nguyen
Benjamin Nguyen

Why? I know it's obviously not used in production but why?

Alexander Smith
Alexander Smith

learn erlang

Chase Thompson
Chase Thompson

I'd be mentally fucked up too if I had to read such an obsolete, outdated and irrelevant book. There aren't even up to date books, javascript.info covers every needs of retards who can't live without books.

Charles Jackson
Charles Jackson

hackage.haskell.org/package/base-4.12.0.0/docs/src/Data.Unique.html#newUnique

Jaxson Cook
Jaxson Cook

That makes more sense. Even though you're rude thanks user.

Jaxon Roberts
Jaxon Roberts

But I already know Clojure...

Henry Peterson
Henry Peterson

you don't.

Jaxson Brooks
Jaxson Brooks

this but unironically

Lucas Wright
Lucas Wright

is there a standard interface to play audio? (like vga for graphics).

Jason Nelson
Jason Nelson

Other than the pc speaker that can only do beeps, no not really. There are a whole bunch of different cards that all work slightly differently :|

Luke Reyes
Luke Reyes

Don't do modern chips do PWM?

Ethan Thompson
Ethan Thompson

intel.com/content/dam/www/public/us/en/documents/product-specifications/high-definition-audio-specification.pdf

Hunter White
Hunter White

Post bad code.

Attached: r-1479051-dRoDB.jpg (36 KB, 589x675)

Luke Morales
Luke Morales

Nanodegrees from Udemy don't count user.

Cameron Brown
Cameron Brown

At least this is better than all the string comparisons he was doing before.

Matthew Turner
Matthew Turner

boolean for gender
Wow, that is truly terrible code, are you really assuming that everyone is either a male or a female? We live in a diverse society, have some respect dude, seriously.

Camden Reyes
Camden Reyes

how do I write a windows API hook that performs a simple action whenever a certain file is opened/read

Josiah Gomez
Josiah Gomez

Tfw will be a timeless consciousness after death and could possibly have possessed Brendan Eich and authored JavaScript myself. I did what had to be done.

Attached: 1562517355003.jpg (19 KB, 400x400)

Ryder Cox
Ryder Cox

stop right there, criminal scum

Aaron Torres
Aaron Torres

what the fuck user

Joseph Young
Joseph Young

youtube.com/watch?v=My0lzMuNcHI

Jeremiah Perez
Jeremiah Perez

inject and overwrite GOT

Cooper Reed
Cooper Reed

no. all I want is a little tool that sends a keystroke when an audio file is played/read by a windows application BUT IT'S SO FUCKING HARD IM LOSING MY SANITY

GOT?

Oliver Richardson
Oliver Richardson

game of thrones

Mason Moore
Mason Moore

Game of Thrones ya dumdum.

Jackson Reyes
Jackson Reyes

What.

Attached: 148hfh.jpg (54 KB, 1280x720)

Jayden Parker
Jayden Parker

GOT?
You are underage, just use the time you have at your disposal to learn instead of asking for help whenever you are stuck. opensecuritytraining.info/

Now fuck off before b&

Owen Thomas
Owen Thomas

global offset table.

Zachary Jones
Zachary Jones

user killed systems programming

Aaron Smith
Aaron Smith

thanks, gonna try it with this method, although I have a feeling it won't work.

Gavin Perez
Gavin Perez

new thread when? :3

Joseph Miller
Joseph Miller

Go to learn C#
Realise it's the exact same thing as Java
Switch to learning JavaScript instead

Kevin Gonzalez
Kevin Gonzalez

Stop asking, you dumbass.

Sebastian Clark
Sebastian Clark

I'm trying to do some leetcode problems so I can become a developer in ~3 years.
tfw i could solve fizzbuzz before college but after being exposed to alcohol and weed i can't.

Bentley Williams
Bentley Williams

New bread at what relative difference in time from now?

Julian Gonzalez
Julian Gonzalez

Go to learn shit
Realise it's the exact same as shit
Switch to to learning something even more shitty instead

Attached: 1453305269531.png (92 KB, 186x371)

Jackson Adams
Jackson Adams

What build tools do you use?

Nathaniel Cruz
Nathaniel Cruz

Want to work on personal project for ages
Constantly some shit going on every weekend stopping me from do it
Finally get a free sunday
Can't be fucked

Attached: 1559939601681.png (27 KB, 331x257)

Leo Sullivan
Leo Sullivan

As the resident Meson shill, I suggest that you should check it out.

Leo Martin
Leo Martin

Mind showing an example of a meson build file?

Easton Green
Easton Green

Just start. You will find a flow. No expectations juist throw yourself in what you want

Easton Ward
Easton Ward

project('myprog', 'c',
version: '0.1',
default_options: ['c_std=c17', 'warning_level=3'])

libpng = dependency('libpng')

executable('myprog', 'main.c', 'other.c',
dependencies: libpng,
install: true)


Here is a trivial build with 1 dependency.
The amount of features you get even with this is vast compared to other build systems.
"Free" LTO support, "free" ccache support, etc.

But the best part is that it's a build system that actually has types, instead of hacking everything together with strings.

Carson Peterson
Carson Peterson

jowforums.com/thread/71866851/technology
jowforums.com/thread/71866851/technology
jowforums.com/thread/71866851/technology

Aiden Morgan
Aiden Morgan

Fuck the new thread im going down with this ship.

Zachary Rogers
Zachary Rogers

What are you working on, Jow Forums?
My hand is getting better. I am going to try working some on a model shader with some lighting and integrating a obj and gltf parser into my model viewer project. Tags: OpenGL SDL2 C++ Discount Programming Socks

Camden Lee
Camden Lee

Js isn't a systems lang, larper.

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit