[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 348
Thread images: 38

File: cover.jpg (76KB, 597x750px) Image search: [Google]
cover.jpg
76KB, 597x750px
What are you working on, /g/?

Previous thread: >>60095622
>>
FIRST FOR C
>>
nth for ISO-8601
>>
>>60101987
SECOND FOR C
>>
>>60101975
Sepples was mistake
C was robbed
It didin't have to go this way
>>
which one?

if (!strcmp(dvar->pnt, "Er15z") ||
!strcmp(dvar->pnt, "Dfr11") ||
!strcmp(dvar->pnt, "dkt4f") ||
!strcmp(dvar->pnt, "xm11z") ||
!strcmp(dvar->pnt, "qgbfo") ||
!strcmp(dvar->pnt, "m34kn") ||
!strcmp(dvar->pnt, "xnj34")) {
op_hash = 0;
} else {
op_hash = 1;
}


or
op_hash =!(!strcmp(dvar->pnt, "Er15z") ||
!strcmp(dvar->pnt, "Dfr11") ||
!strcmp(dvar->pnt, "dkt4f") ||
!strcmp(dvar->pnt, "xm11z") ||
!strcmp(dvar->pnt, "qgbfo") ||
!strcmp(dvar->pnt, "m34kn") ||
!strcmp(dvar->pnt, "xnj34"));
>>
>>60102051
How about
op_hash =(strcmp(dvar->pnt, "Er15z") &&
strcmp(dvar->pnt, "Dfr11") &&
strcmp(dvar->pnt, "dkt4f") &&
strcmp(dvar->pnt, "xm11z") &&
strcmp(dvar->pnt, "qgbfo") &&
strcmp(dvar->pnt, "m34kn") &&
strcmp(dvar->pnt, "xnj34"));
>>
Any good books on higher level mathematics from a programming perspective? I knew up to baby calculus at one point, but I've probably forgotten everything beyond college algebra by now...
>>
>>60102075
fuck
warning: multiple unsequenced modifications to 'op_hash' [-Wunsequenced]
>>
File: 220px-Hott_book_cover.png (97KB, 220x317px) Image search: [Google]
220px-Hott_book_cover.png
97KB, 220x317px
>>60102099
>>
File: pool.webm (673KB, 901x498px) Image search: [Google]
pool.webm
673KB, 901x498px
Reposting from last thread but I'm making something to cheat at pool8 to help me learn some opencv.
>>
>>60102211
looks interesting

explain this webm, please
>>
>>60102099
I don't use books often, but it probably depends on which mathematics you care about.

I've read Prime Numbers: A Computational Perspective, and found it informative and an enjoyable read.
>>
File: ides_auf_dem_prufstand_0.jpg (1MB, 3020x2207px) Image search: [Google]
ides_auf_dem_prufstand_0.jpg
1MB, 3020x2207px
Trying to really get into an IDE. Mostly I've been using text editors (or near -- Sublime) but I need to get good.

Frankly though, there are a lot of choices. Any major pain points or advantages between these three? Just trying to get a feel for how they are different.

I guess should add that I'm leaning toward IntelliJ because it doesn't send my eyes to Hell.
>>
>>60102273

My end goal is just to draw a line which starts from the first ball that the cue ball hits and points in the direction that the ball will move.

The clip is showing proposals for circular shapes in the scene (green circles) and their centers (red dots). I think there is a hack that'll do this but I'm trying to do it with pure computer vision
>>
>>60102410
intellij is decent
eclipse is pure cancer
never used netbeans
>>
>>60102410
use vim
>>
>>60102410
vim
>>
File: Capture.png (74KB, 843x873px) Image search: [Google]
Capture.png
74KB, 843x873px
i had literally never heard of this

since when does C have lambdas?

is this a feature that you fuckers actually use?
>>
>>60102479
oh it's objective-C cancer

https://en.wikipedia.org/wiki/Blocks_(C_language_extension)
>>
>>60102479
>fucker
i wish
>>
File: 1469886054113.jpg (451KB, 1084x1000px) Image search: [Google]
1469886054113.jpg
451KB, 1084x1000px
I just fell in love with Rust
>>
What ever happened to anime images in the OP?
>>
>>60102447
>>60102464
Literally not an IDE.
>>
>>60102539
>Literally
>>
>>60102479
C has anonymous functions by GCC extension but it doesn't create closure.
The objective-C blocks are supported in C by clang.
If only there were compiler extension for lambdas in C that was supported in more than one compiler, man could almost be happy.
>>
>>60102539
vim is an IDE if you want to make it into one.
>>
>>60101770
>you just replace the most common character with e, etc.
Brilliant algorithm, never fails, A+++, sold to the CIA for millions.
>>
Is uploading 14gbs of probably-trade-secrets on volafile a bad idea?
>>
>>60102653
>Trying to write a substitution cipher breaker.
could say the same for your middle school project
>>
>>60102703
Shouldn't you be rewriting the haskell kernel in linux or some shit Mr. Genius?

Feel free to show everyone how trivial it is by giving it a shot yourself.
>>
>>60102703
Not him, but letter frequencies is just one heuristic. If that's all you use, you're going to get gibberish. At the very least you're also going to want to take letter combination and word frequencies into account followed by some bruteforcing with a dictionary to narrow down the results to only those substitutions which make sense.
>>
>>60102749
lol defensive much? sorry, good job on your substitution cipher breaker! it's great! is that better?
>>
>>60102021
THIRD FOR C
>>
>>60102799
Nah, you projected more aggression into my post than was actually there.
>>
>>60102840
>>Shouldn't you be rewriting the haskell kernel in linux or some shit Mr. Genius?
>>Feel free to show everyone how trivial it is by giving it a shot yourself.
>Nah, you projected more aggression into my post than was actually there.
>>
Where can I get fingerless programming gloves?
>>
File: 148508538838.png (26KB, 861x758px) Image search: [Google]
148508538838.png
26KB, 861x758px
Kotlin?
>>
>>60102864
fun
>>
>>60102849
Try reading it again after whatever mood you're in passes.
>>
>>60102864
more like fatlin. That shitty fucking language runs on fucking huge ass jvm and is basically murrican overweight burger eating fat piece of fat shit fuck of the programming languages.
>>
can someone make a TLDR version of introduction to algorithms? would appreciate it
>>
File: 1477319531144.jpg (14KB, 142x250px) Image search: [Google]
1477319531144.jpg
14KB, 142x250px
>>60102859
How do you program without fingers?
>>
>>60102889
Indeed. That's why functions are defined as fun.

>>60102907
Hey, how's 2004 going?
>>
>>60102931
lol
>>
>>60102935
Voice-to-text?
>>
guys why can I solve code katas for many hours a day but lack motivation to work on small own projects? I did only a single one.
>>
>>60103085
Because all of those years in school taught you to just do busy work that's assigned to you rather than think for yourself.
>>
>>60102970
>string final c a m e l capital c a s e equals sign single quote fugg single quote semi-colon new line

This sounds like hell
>>
>>60103161
check this out
https://www.youtube.com/watch?v=8SkdfdXWYaI
>>
>>60103239
I'd literally rather learn to type with my feet.
>>
>>60101975
Winfag here. I use sepples for all my 'scripting' needs, because that's really the only language i know well enough to be efficient in. Do you think that's a problem?
>>
is it possible to monetize browser extensions?
>>
Is there a way to make this simpler?
b = "B"
a = "A"
n = "N"
s = "S"
x = 0
print(b)
while x < 2:
print(a)
print(n)
x += 1
print(a)
print(s)
>>
File: 1445549403622.gif (1MB, 720x720px) Image search: [Google]
1445549403622.gif
1MB, 720x720px
>>60103239
So, why the hell don't we have some kind of neural input device already? I get that everyone's brain is wired differently, but you'd think that between deep learning letting the device adapt to each individual's brain and your own ability to train to work with the machine, you could at least wire up some "neural hotkeys" or something.

Just too much noise on EEGs for even that much? I'm not asking for mind reading here.
>>
>>60102410
I used netbeans in my programming courses at college. I didn't mind it but I don't have a lot of experience with other IDE's.

Eclipse is really popular so you should probably give that one a shot.
>>
>>60103677
print "ANANAS"
>>
>>60103687
you'd put something like that in your brain?
>>
>>60103619
make the users mine bitcoins for you
>>60103614
it's a problem 4u. you should probably learn a scripting language if you want to be more efficient
>>
>>60103710
I was thinking more like on the scalp. I don't think a lot of surgeons would be keen on performing elective brain surgery. Plus the cost would be insane.
>>
>>60103703
But what if I want to make change it to
x < 50
? Or a user input?
>>
File: 1490726200654.jpg (411KB, 1462x1462px) Image search: [Google]
1490726200654.jpg
411KB, 1462x1462px
>professor says integer addition isn't associative due to overflows
>raise my hand and question that
>tells us he's right
>see him after class and show him that 2000000000+1000000000-1000000000 is in fact associative for 32 bit integers in nearly every implementation
>doesnt say anything
>hours later he sends out a passive aggressive email to the entire class apologizing for "briefly forgetting a basic fact after 30 years of study"
>>
File: test (2).png (716KB, 811x599px) Image search: [Google]
test (2).png
716KB, 811x599px
>>60102099
This >>60102165.
Start with Kahn academy if you don't even know calc
>>
>>60103725
Which one? Python? Powershell? Is there an sh interpreter for windows?
>>
>>60103772
>Ignoring saturating integers
Nice trash post
>>
>>60103803
Bash for Windows is out
>>
>>60103737
print('B' + 'AN' * 50 + 'AS')
>>
>>60103737
import sys
def Ananas(x):
if(x <= 0):
return
while(x > 0):
sys.stdout.write("AN")
x -= 1
print "AS"
>>
>>60103832
Yeah, I like when my rapist put a condom.
>>
>>60103772
Congrats, want a blowjob?
>>
>>60103832
I forgot about that. I'd rather not deal with win 10 for a while yet.
>>
>>60103838
didn't know you could use python like that, that's obviously way simpler
def Ananas_2(x):
if(x <= 0):
return
print("AN" * x + "AS")
>>
Anyone know where I can find some x64 tutorials and excercises.
>>
>>60103830
Where is that used outside of normalized vectors
And in that case they're floats
>>
>>60103842
>>60103888
You forgot the B at the beginning
>>
So about graphics programming, how do you render truetype fonts this nicely?
>>
>>60103888
He's trying to print
B
A
N
A
...
N
A
S

not 'ANANAS'.

It'd look something like
def bananas(n): list(map(print, 'B' + n*'AN' + 'AS'))
>>
File: Untitled.png (20KB, 299x39px) Image search: [Google]
Untitled.png
20KB, 299x39px
>>60103943
Woops, forgot pic.
>>
>>60103918
I think I hear goalposts moving. Point is, "overflow" isn't standard. Your professor is right.
>>
>>60103772
>>60103918
your prof was right dickhead. apologize by sucking his mushroom tip off
>>
>>60103803
doesn't really matter what you choose. you can use c++ if you want, you just might be more efficient in the long run. everyone and their mom uses python. you can be unique and use perl
>>
>>60103677
def bananas(n):
print('BA{}AS'.format(n * 'NA'))
>>
>>60103975
>>60103986
Except he isn't
signed 32 bit addition is associative
Show a system with clamped 32 bit integer primitives
>>
>>60102521
Welcome to the master race, anon
>>
>>60104052
signed 32 bits are Z/4294967296Z.
So everything ring operations work. Only division is dangerous.
>>
>>60104052
Except I didn't see you specify 32-bit ripple select adder addition is associative. I read "overflow" from a disrespectful moron who doesn't know "overflow" doesn't have a definitive definition.
>>
>>60104000
>>> bananas(2)
BANANAAS
>>
>For another small quality of life improvement, it’s common for new Rustaceans to try to use + to add two &strs together. This doesn’t work, you can only add String + &str. As such, a new error message was added to help users who make this mistake:
>Rustceans

lol
>>
>>60104107
Get rid of the superfluous A then.
>>
>>60104109
*crustaceans
>>
>>60104109
who exactly are you quoting?
>>
>>60104178
The Rust core team.
>>
>>60104097
You're reaching dearly
I used the same coloquialisms used by my professor including overflow as the discussion concerned what operations could be performed concurrently in OpenMP/Cilk/TBB
>>
>>> x = bytes(b"hello")
>>> x[0:1]
b'h'
>>> x[0]
104

fucking why

>>60104121
just bustin your balls m80
>>
>>60104192
Kek
>>
>>60104204
my bad ignore the superfluous bytes() constructor
and in a post where I'd mocked someone else's error too, karma
>>
>>60103999
>you can be unique and use perl
I might actually try this. It appeals to the hipster in me.
>>
no actually is it a bad idea to upload trade secrets on volafile
>>
>>60102410
Intellij is best
NetBeans is ok
Use eclipse only if you have to
>>
File: complications.png (14KB, 478x68px) Image search: [Google]
complications.png
14KB, 478x68px
oh shit
why did i think this was a good idea
>>
>>60103085
Your answer is implicit in your question: "small own projects", "code katas", and "did only a single one".

When Karateka perform a Kata, they're supposed to strive for such perfection that they fail, every time, so that they're never content that they "performed a Kata". Their life as a martial artist is their project, which is never finished.

So, your answer is to quit with worthless Katas and tiny projects that you are able to solve and complete easily. You pick one single project and commit yourself to it until the day you die, never expecting to finish. Otherwise your life as a programmer is meaningless.
>>
>>60104287
Netbeans is a piece of crap and way worse than eclipse. It also comes with bloatware.
Agree with IntelliJ but it is not free (unless you are a student or have an open source project) with the exception of android studio.
>>
https://www.youtube.com/watch?v=ZD8PH5oE79A

what the hell lmao
>>
how do i change the >>> to a lambda in IDLE? in ghci you can just go into a file and change it
>>
>>60102165
what's this meme
>>
>>60102410
eclipse
>>
>>60104557
>Intellij IDEA not free
Uh I have it and it's free.
>>
>>60104769
it's not free for commercial use

there is nothing wrong with eclipse especially for java
>>
>get tasked with working on some Java code written by someone else
>implements Serializable everywhere
>enums used inappropriately
>print statements instead of logging

Help me, /g/!
>>
>>60104866
How do they tell if you used it for a commercial product?
>>
What's the starting point for learning C?
>>
>>60104959
>enums used inappropriately
how could you use enums inappropriately?
>>
>>60104959
>print statements instead of logging
it's either somebody dumber than you, or somebody much smarter who has realized how much OOP sucks
>>
>>60104959
lol fag
>>
>>60105020
I don't like OOP either, but I see the value in using something more powerful than just printf for logging.
>>
>>60104994
k&r. it's also the end point
>>
>>60102907
JVM is the only good thing about java. how about you elaborate?
>>
>>60105039
such as?
>>
>>60102907
t. microsoft evangelist
>>
if you're getting sick of quoting guy (that one autistic NEET that keeps asking people who they are quoting) then add "quoting" to your filter.
>>
>>60105107
who are you quoting?
>>
>>60105078
Something that lets you specify different logging levels, that can do something other than just print to stdout (maybe log to a database or save it as JSON or some other structured format), that adds timestamps, file and line info, etc.
>>
>>60105020
>print statements for debugging
>somebody much smarter
not likely. only freshman CS students and complete dumbasses use the print statement form of debugging
>>
>>60102864
>>60102907
Kotlin is basically a crippled Scala for people who get upset if they can't understand a new programming language instantly.
>>
>>60105121
you can use your shell to do this too >:(
>>60105133
nobody said anything about debugging. and logging is not any better for debugging anyways
>>
>>60105137
Kotlin and Scala are used in totally different ways.
>>
>>60104959
>Somebody else's Java code
>Print statement debugging

Sounds about right
>>
>>60105144
>you can use your shell to do this too >:(
You can't get it to figure out file and line info unless you manually put it in each and every string you send to printf. Same with logging levels.
>>
Hi guys I have a serious question for all of you
Does learning to program will be usefull to be employable in the future?
I was learning a few months ago and I kit becase I fear to put a lot of effort in something that I dont know if will be useful for me in the future, I study banking and finance and I would like to learn to program by myself in my spare time.
Does it will be useful skill to know in my field?
>>
>>60105152
You're right. Scala can be used well and Kotlin can't.
>>
>>60105161
actually I see print statement debugging mostly used in C and C++. Most of the time Java is written in an IDE, and almost every single IDE has a build in debugger.
>>
>>60105185
https://www.bloomberg.com/news/articles/2017-04-03/new-h-1b-guidelines-crack-down-on-computer-programmer-jobs

not anymore rajesh
>>
>>60105185
i don't think you'll need to do much programming. focus on excel and maybe mathematica. but it can be good to know some programming if you're interested in it.
>>
>>60105185
It depends exactly what kind of banking/finance you want to go into. If you go into research/algorithmic trading/etc. it would probably be useful for you to be able to implement models, not necessarily in something like Java but maybe in something like Matlab.
>>
>>60105223
sirs, please teach me to program. i beg you please sir
>>
>>60105245
is this srs
>>
>>60105245
If you weren't programming by the age of 10 then you're not going to make it bruh
>>
>>60105255
sir please. my name is rajesh and everybody in my country use c++. i herd c++ is great language please I beg you teach me
>>
Hello friends of /dpt/.

I need some help with a threading problem in Java. The objective is to count the number primes from 1mil to 2 mil using 4 threads. It seems retardedly dumb, so I have no idea what's going wrong.
https://hastebin.com/emumufopik.java
>>
>>60105278
I can't, and nobody else here can, because only one person in the world knows C++. His name is Bjarne Stroustrup.
>>
>>60105285
damn, you write really terrible Java code
>>
>>60105303
It's my first time working with threads, so I have no idea what the fuck Im doing.
>>
>>60105285
This is homework, isn't it?
>>
Is CS just a circlejerk or a real deal?
>>
>>60105285
give each thread its own counter and synchronize them at the end
>>
>>60105326
No, I am most certainly in scientific need of figuring out how to code something that could be done in 2 seconds on Wolfram Alpha.
>>
>>60105346
She could alternatively use an AtomicInteger.
>>
i know the command: free(*ptr)
deallocade *ptr memory in C
but what exactly does it mean? it destroy the pointer? can i free a pointer and them call him and give him new values?
>>
>>60105346
Is there something wrong with having a synchronized method for incrementing? I am pretty sure that the initializing and the "joining" is what's causing the issues.
>>
>>60105394
Did you just assume the pointer's gender??
>>
>>60105223
Thats old news retard
I dont want tp live there
Faggot
>>
>>60105344
depends on the school. most will land you an average software development position. top schools will let you either do real computer science or land a great software development position.
>>
>>60105415
Top schools will leave you frustrated because they'll teach you much better languages than Java, C#, Python, JS, etc. but you'll be stuck using shitlangs at almost any software job.
>>
>>60105232
Why not java?
>>
Rate my multiplication table
def printmulttable(s):
for a in range(1,s+1):
for b in range(1,s+1):
print("[%s]"%(b*a), end="")
print("\n")
printmulttable(10)
/*-----------------------------*/
[1][2][3][4][5][6][7][8][9][10]

[2][4][6][8][10][12][14][16][18][20]

[3][6][9][12][15][18][21][24][27][30]

[4][8][12][16][20][24][28][32][36][40]

[5][10][15][20][25][30][35][40][45][50]

[6][12][18][24][30][36][42][48][54][60]

[7][14][21][28][35][42][49][56][63][70]

[8][16][24][32][40][48][56][64][72][80]

[9][18][27][36][45][54][63][72][81][90]

[10][20][30][40][50][60][70][80][90][100]
>>
>>60105441
I know. if only everybody came to their senses and used Common Lisp and Idris for everything.
>>
>>60101975
playing around with neural nets in TenserFlow
>>
>>60105502
"But our other programmers wouldn't be able to understand them!!!! It might take them a few weeks to become productive!!!"

Maybe that wouldn't be the case if you hadn't CRIPPLED THEIR MINDS BY FORCING THEM TO USE SHITTY TOOLS FOR DECADES
>>
>>60105491
Align it.
>>
>>60105487
Things like Matlab, R, etc. are generally faster for implementing mathematical models in than Java, and much more expressive.

Java's good to know, but I'm not sure how high a priority it should be for a finance guy/gal.
>>
which language would you suggest me to use for:
Finding non media files in few folders, i need to detect files that are not videos, That need to work all the time, run check on every change or folder size.
>>
>>60105545
honestly, he's going to have to learn both anyway, or at least javascript
>>
>>60105407
in my 3rd world language pointer is masculine, sorry
>>
>>60105580
shell script
>>
>>60105580
Haskell
>>
>>60105524
the fact that CL and other under utilized langs are not widely used is not for their complexity.

let me ask you - if you are teaching somebody who has never seen or written a line of code ever, what would be an easier language to teach? Lisp or C++?
>>
Trying to print records in a defined array in COBOL, it has been frustrating thus far.
        IDENTIFICATION DIVISION.
PROGRAM-ID. ARRAYS-ARE-TERROR.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 GOYIM PICTURE A.
02 GOY OCCURS 4 TIMES.
03 FILLER VALUE 'TRUMP'.
03 FILLER VALUE 'HILLARY'.
03 FILLER VALUE 'RON'.
03 FILLER VALUE 'REDDIT'.

PROCEDURE DIVISION.
DISPLAY GOY(3). <=== CAN'T PRINT RON THIS WAY
>>
File: 1490586828250.jpg (40KB, 726x720px) Image search: [Google]
1490586828250.jpg
40KB, 726x720px
Has anyone here paid for Sublime Text?
>>
Create a data structure for an directed graph. Your professor has given you the example of an array of structs, where each struct contains two 8 bit integers in the format: (from, to):


[ (0, 3), (0, 4),
(1, 3), (1,1),
(3, 2), (3,4),
(4, 1), (4,2), (4, 3), (4, 4) ]


You realize you can save memory in your implementation! How do you do it?
>>
>>60105580
bash script
>>
File: 1406007819880.png (148KB, 300x300px) Image search: [Google]
1406007819880.png
148KB, 300x300px
>>60105628
Yes.
>>
>>60105612
Don't get me wrong, I think the complexity argument is a complete strawman. Lisp is easier to teach than C++ in pretty much every way.

I'm tired of businesses being obsessed with having developers be replaceable at all costs, to the point that they will use unreliable, outdated, or unsuitable tools for no other reason that there are a lot of other people out there who know them too. I'm also tired of them refusing to spend even a moment training their people, expecting universities to churn out Java developers instead regardless of the cost to their broader CS education.
>>
File: 1490429297016.jpg (210KB, 900x1170px) Image search: [Google]
1490429297016.jpg
210KB, 900x1170px
>>60105647
slack off and stare at bae
>>
File: 1488152442120.jpg (60KB, 640x360px) Image search: [Google]
1488152442120.jpg
60KB, 640x360px
>>60105652
I have some magic beans, would you be interested?
>>
>>60105672
Count your fucking blessings. My university focuses on JavaScript and it's frameworks.
>>
>>60105695
Yes please, I love magic beans. Here, take all my money.
>>
>>60105701
I'm amazed that they have the gall to call it CS at that point.
>>
>>60105701
Your university is making you employable, unlike most.
>>
>>60105728
lmao, hirable for a front end position. people get jobs in that from doing boot camps and making a website
>>
>>60105728
Someone who knows only JS and some JS frameworks should be unemployable.

That the opposite is true is truly depressing.
>>
>>60105753
some of us just want a job, nerd
>>
Clojure?
>>
>>60101975
That was my Algo textbook.
I fucking hated that class.
>>
>>60105728
Yeah that seems to be the overall slant here, I've noticed.

They don't focus much on fundamentals and theory, like the science side of it gets neglected. They just give you a working knowledge of what CS used to be, what it is today, and then focus on examples of industry implementation and where the industry is headed. It feels more like engineering than actual science, since it's so focused on the design aspects and how to build shit or finish projects.
>>
>>60105770
Not a bad attempt at a modern Lisp on the JVM.
>>
>>60105762
Some of us want to make things better for developers everywhere, by pushing for more powerful tools to be used.

Some of us want to make things better for users everywhere, by developing more reliable and performant software using advanced, modern, safe languages.
>>
>>60105753
Things you need to get a job:

1.) Be a quick learner

2.) Don't be an autist

3.) Know useful information, not memorize Dijkstra's algorithm or other useless shit you'll literally never use
>>
>>60105798
some of us just want the degree so we can get $80k starting
>>
>>60105784
Clojure is not a Lisp, just inspired by Lisp.
>>
>>60105781
I wish my university was like this desu. the "le hardcore academic that doesn't need a job xD" meme is overrated
>>
>>60105807
Things you need to get a job:

Connections
>>
>>60105628

No. There's a universal license key you can enter in to activate it.
http://appnee.com/sublime-text-3-universal-license-keys-collection-for-win-mac-linux/
>>
>>60105781
The point of an undergrad is to get a job, so they're doing better than others
>>
>>60105807
you know that software development interviews don't ask you whether you're a quick learner or know javascript, right? they ask you really hard algorithm questions
>>
>>60105816
Hence why I called it an attempt at a Lisp.
>>
>>60105811
>JS
>80k starting
Yeah, no. Especially not in a market saturated by bootcampers.
>>
>>60105821
Kinda of ironic then that the best univs for that are the mediocre ones. Big name brand ones like MIT, Stanford and CalTech are all le hardcore muh deep neurons unga bunga genetic algorathms
>>
>>60105835
If it's an attempt at all, it's an insincere attempt.
>>
>>60105846
this.
stay out of web development kids.
>>
>>60105834
This.

Whenever I give interviews I use questions designed to filter out people who didn't study hard CS.
>>
>>60105834
If you're applying to meme companies like Google or Facebook. Most complex question I've ever gotten was "Reverse a string in whatever language you want"

I have a coworker that memorizes algos and Data structures, 4.0 gpa, etc. but can't program for fucking shit and my boss has told me he won't be here for much longer.
>>
>>60105875
I'm somewhat disappointed to learn that.

The questions I give interviewees are considerably harder.
>>
>>60105875
what's your salary and how long have you been working?
>>
They should make Computer Science be actual computer science. Advanced algorithms. Linear Algebra. Artificial Intelligence. Compilers. Functional Programming. Little to no development. Have a separate Software Engineering that is focused on development but also teaches applied computer science.

if you enjoy low level then just take EE or CE.
>>
>>60105647
can be stored as Σ(x = 0..n+1)x bits where n = max #
for your example, n = 4 -> 15 bits
basically store as a matrix and remove duplicate cells, so your data structure would be
  0  1  2  3  4

0 -

1 - +

2 - - -

3 + + + -

4 + + + + +
>>
>>60105903
No, don't have a separate SE course. Don't let businesses shift the burden of training workers onto universities. If they want a Java developer then they can spend two weeks training a CS grad.
>>
>>60105863
I've been burned by people with 4.0 GPAs and no personal projects. Our company works with a handful of technologies from different companies and ties them together. Knowing how to implement a linked list or binary search tree is essentially useless at our company. I don't care if an applicant has a degree or not, but I won't consider anyone without a personal website or github or something to show experience with programming in a practical environment and not a theoretical environment. Resumes that say "Degree from [Top university], 4.0 GPA, took classes on Data Science/Machine learning, etc." but don't have any personal projects to show go STRAIGHT in the trash
>>
>>60105875
So
"string"[::-1]
works?
>>
File: 1401039165650.jpg (49KB, 1280x720px) Image search: [Google]
1401039165650.jpg
49KB, 1280x720px
What do you guys think about scientific computing? Be honest.
>>
>>60105903
I agree.

The highest level of math I have to take for my CS major program of study is calculus III, which is vectors, vector valued functions, multivariable calculus, partial derivatives, line, surface, and volume integrals, that sort of thing.

Actually, linear algebra is kinda... basic. I had to take that before calc III. Everything you listed are classes I had to take except artificial intelligence.
>>
I'm active duty in the Army, so I basically get to take classes online for free. I was curious if anyone has any recomendations for a solid CS degree that's offered online.

I've been programming as a hobby for years, and it's what I want to do after I get out. Since I can come out with a master degree for free pretty easily, its not like it can hurt
>>
>>60105939
I won't hire you if all you can show me are meme languages. Do it in a C-family language or else I'll assume you can't work on our framework
>>
>>60105927
question - do canned projects such as bittorrent client and mobile alarm clock application look bad?
>>
>>60105945
math majors shouldn't be allowed to touch a computer, they write the worst fucking code
>>
>>60105927
Lmao this. Except my github was a personal project for checking, scraping, downloading and categorizing sadpanda. So I couldn't show it. Still got the job tho as I described to them my project and the process.
>>
i'm torn now, should i practice dynamic programming and advanced data structures or make a personal website with ruby on rails for a job in software development?
http://www.strawpoll.me/12840925
>>
>>60105927
What about professional experience in lieu of personal projects?

Someone might have spent the past 3-5 years working at a company with a great reputation, but have no personal projects because their contract gives their employer ownership of anything they work on, even outside work (yes, really, those sorts of clauses are common in some jurisdictions, and it sucks). Does the fact that they've managed to hold down a high-end job count for anything?
>>
>>60105903
College is to get a job. Nothing more or less
>>
>>60105927
having a personal portfolio goes without saying though and almost every single university has the students actually complete projects as part of course curriculum to show they understand how to apply the knowledge they're learning.

You're absolutely justified in tossing directly into the trash the resume of any student who didn't actually do anything and just slacked off in school but still somehow managed to get a 4.0 GPA (which, btw, I have no fucking clue how they could do without doing the labs or completing any assigned projects)
>>
>>60105952
linear algebra for me was something that seemed incredibly difficult and then it "clicked" one day and was super fucking trivial from that point on
>>
>>60101975
some of the problems in this book were ridiculous and way beyond the scope of the book
>>
>>60105997
College ought to be about teaching you how to learn. If employers want employees with skills, then they should provide training.
>>
>>60105988
Professional experience tops everything (even a degree). I agree since I stopped working on personal projects when I got paid. I don't spend my free time doing what I do at work.
>>
>>60105974
>Do it in whatever language you want
>Choose the easiest cause no fucking shit
>It doesn't count
Simply ebin. If you want a certain language, mention it. Don't say whatever language then get upset when someone uses python cause it is literally string[::-1]. I won't want to work for morons like you either.
>>
>>60105394
you destroy the object pointed to by the pointer. the pointer is just a variable and you can assign a new value to it
>>
>>60106015
>write out java function signature
>ask applicant to write the implementation
>"can I do it in Python?"
No.
>>
>>60106011
>they should provide training

that costs money. Right now it's an employer's market: for every unmotivated software developer who doesn't teach himself anything, there's 1000 people who are EXACTLY what they want/need and it will cost them way less to train them than to train you. 2 week bootcamp in company technology vs 3 months
>>
>>60105285
call start not run
>>
>>60106014
If I were to get hired by your company, would I be stuck using shitlangs?
>>
>>60106040
Good you specified Java. Then people know to write in Java but if you read the original post I was referring to here >>60105875. It literally says

>Most complex question I've ever gotten was "Reverse a string in whatever language you want"
>whatever
>language
>you
>want
Moron
>>
>>60105903

>Advanced algorithms, linear algebra
Required for pretty much every computer science curriculum

>Artificial intelligence, compilers, functional programming
Electives pretty much everywhere.

>Little to no development
No. Learning theory without implementation is meaningless. A proper computer science course goes somewhere along the lines of "here are some algorithms, now go write a program that uses them."
>>
>>60106038
It does not destroy that object, it just marks the memory in that location as being available for re-write. Free is not a system call, but an abstraction of the brk and sbrk system calls. This is why you need to nullify your pointers after freeing them
>>
>>60106047
This is just one reason why we need a software engineers' guild, union, or similar.
>>
I really don't know why there's such massive variation in the application process for CS grads, but for my first job out of school, during the interview when I was asked why I chose CS as a major and software development for a career, I just spent like 20 minutes talking about deep learning algorithms and neural nets and how targeted ads work and web crawlers and image recognition and all that meme shit and they immediately offered me a job. I didn't even have to pass a test or anything.
>>
>>60105875
>>60105939
I would have to image that using a native function doesn't really communicate the thought process. None of the technical questions are really about getting to the right answer. They're there to make sure you can communicate your thinking, are concerned with time complexity, and and aren't a sperglord.
>>
>>60106074
I repeatedly get told "kys" every time I bring this up.

I don't fucking get it, programmers are the most self-defeating class of work imaginable.
They'll automating away their own jobs soon enough.
>>
>>60106071
quit overcomplicating things you insane autist. from the language point of view the object has been allocated after a call to free. and you don't NEED to set it to null, what the fuck is wrong with you
>>
>>60106087
Actually you are wrong. Just like programming exams where you are forced to write code on paper, technical questions in interviews are just to make sure that you have experience coding. A lot of times they ask you practical answers and as long as you know how to arrive at the solution, it shows that you have experience coding before. They don't want a moron with a GPA of 4.0 that only reads the books.
>>
>>60106084
I know a guy that was offered 56k (I know, is't that great, but small town) and literally the only question they asked him was "what is object oriented programming?" and they loved his answer so much
>>
>>60106074
>>60106107
literally kys fags. most other jobs especially six figure jobs require some amount of expertise. it's not unreasonable for employers to set requirements or at least choose the best applicant.
>>
File: 1402950410384.jpg (138KB, 500x506px) Image search: [Google]
1402950410384.jpg
138KB, 500x506px
>>60106069
This pretty much sums up my experience at uni so far.

t. full-time CS undergrad.
>>
>>60106126
No, I want to be able to sit around all day and collect my paycheck!
>>
>>60106140
Unironically this is my job right now. I am a sysadmin
>>
>>60106154
My job is to write programs that replace you.
>>
File: miyako_code.png (2MB, 1280x720px) Image search: [Google]
miyako_code.png
2MB, 1280x720px
>>60105945
I hate it but I have to do it as part of my job.
>>
>>60106107
I figure by the time we automate programming we'll have UBI, or working won't be necessary, or something. I'm not too concerned about that.

I'm thinking more of the large-scale deskilling going on by companies adopting braindead languages like Java, I'm thinking of the flooding of the market with cheap unskilled labor, I'm thinking of employers forcing programmers to produce code under impossible time constraints with inadequate tools that result in a broken product, I'm thinking of programmers being required to engage in unethical practices or be fired (see some of the stuff that Uber has reportedly done), I'm thinking of companies not allowing programmers to keep up to date in their field. Things like that. Stuff that you couldn't get away with with engineers or lawyers.
>>
>>60106126
Is that why your job is so easy that some third-world shitstain 8000 miles away can do your job for 1/10 your salary?

You don't get to be competitive by taking a paycut, they're forced to pay you benefits and they can legally not pay pajeet benefits for the first 4 years of an H1B employment, at which point he is fired and promptly deported.
>>
>>60106171
You are writing a program that sits around all day and does nothing? Me too. Wishing you all the best so my company can sack me and I finally get to move on.
>>
>>60106154
>>60106192
sysadmin and web dev are things that can be automated to some extent, not programming
>>
File: universal basic income.jpg (40KB, 651x389px) Image search: [Google]
universal basic income.jpg
40KB, 651x389px
>>60106177
Wagecucks who still have a job will be absolutely against any form of "welfare" for do-nothings like UBI.

Wagecucks would rather pay to keep you in prison than to pay for you to play xbox in your jammies all day, and this is the norm.
>>
File: 1401333442448.jpg (35KB, 553x443px) Image search: [Google]
1401333442448.jpg
35KB, 553x443px
>>60106202
I was kinda trying to take the piss out of you, but that reply you just gave me changed how I feel about it and now I'm a little sad.

Sorry man. Feelsbad.
>>
>>60106192
you fucking suck if you can get replaced by a pajeet lmfao git gud fucking lazy idiot

oh and didn't you get the memo

https://www.bloomberg.com/news/articles/2017-04-03/new-h-1b-guidelines-crack-down-on-computer-programmer-jobs
>>
>>60106218
That's some real fucking psychopathy right there.
>>
File: 1401042910974.jpg (39KB, 533x352px) Image search: [Google]
1401042910974.jpg
39KB, 533x352px
>>60106172
What do you do?
>>
>>60106222
>that reply you just gave changed how I feel about it
holy shit people we are witnessing a rare event right here in /dpt/
>>
>>60106222
Don't feel too bad. I am using the time I am doing nothing to learn programming and other relevant skills while accumulating "job experience". The only reason i haven't quit is because this job is far far far too comfy for me to leave. I literally do 5 hours of actual work a week and then spend the rest looking busy.
>>
>>60106074
Fuck that, I already pay taxes to the government. Why should I pay a bunch of my money to a group of socialists who want to make the industry HARDER for me to get a high paying job in?

It's all about the money for me. Fuck all you other guys
>>
>>60106177
In 2006, I was aware this would happen, still a kid at the time. I also predicted an invasion of libraries and bullshit frameworks plaguing the industry with the promise of raising productivity at the cost of performance for the people (customers).
If I saw that coming as a kid, so could you. I don't get why you guys spend so much time complaining about this shit though, you chose this profession despite the coming shitstorm.
>>
>>60106218
basically "I got mine, fuck you"
or the conservative ideology summed up
>>
>>60106109
I'm just pointing out that you're wrong. The data is not destroyed. You gave him a wrong answer.
>>
>>60106255
Ah, well godspeed then comfy anon. I hope you do well.
>>
>>60106274
kill yourself
>>
>>60106278
Me too anon. Me too.
>>
File: solve (6).png (1007KB, 1920x1080px) Image search: [Google]
solve (6).png
1007KB, 1920x1080px
>>60106243
Physics grad student (theory).
>>
>>60106296
x = 2
>>
>>60106258
>the government pays unions or guilds in private industries
>>
>>60106305
jokes on you there's no variable x in that equation
>>
>>60106296
question - is calculus like basic arithmetic to you by this point?
>>
File: 1401038402423.jpg (59KB, 1280x720px) Image search: [Google]
1401038402423.jpg
59KB, 1280x720px
>>60106296
Wow neat! I'm a grad student in CFD.
>>
Great talk: https://www.youtube.com/watch?v=7xSfLPD6tiQ
>>
>>60106383
>Scala
I'm not even going to open that shit.
>>
>>60106394
It's okay, I'll leave you to your Java(Script?)
>>
File: yuzuko_gelfand.png (3MB, 1366x2300px) Image search: [Google]
yuzuko_gelfand.png
3MB, 1366x2300px
>>60106323
Concepts such as integrability and differentiability yes; I can also solve ODEs and PDEs by inspection, or at least know several strategies that I can apply to solve them.
Though I use Mathematica for tedious computations since I make small numerical mistakes if I did it by hand.
>>
>>60106218
without prisons, you have criminals on the street. without UBI, neets have to get mommy to pay for their doritos, instead of the federal government
>>
>>60106258
What if guild membership was $1k a year, but the guild's existence meant you earned $10k more a year?
>>
>>60106428
I disagree on UBI on the simple premise that we shouldn't give government more power than they currently already have. Giving the government the ability to withhold, decrease or increase something like UBI? Oh shit, you got a fucking shitshow at end that will not end well.

People want to go on strike? Oh there goes your UBI.
People commit thoughtcrime? Bye bye UBI
You get my point
>>
>>60106067
Honeslty "reverse a string" is such a basic weeder question to filter the most idiotic undergrads. Maybe "reverse a string in-place" would be slightly less trivial, but even then.
>>
>>60106470
Reversing a string in place is impossible in certain languages because their implementation of string is immutable. So yeah that would be a good test if the interviewee knows multiple languages or the properties of his own language.
>>
>>60106490
OK, then it'd be reversing a list/array in-place.
>>
interviewers of /dpt/ - how common is it for you to get candidates who even do the simplest of programming tasks or answer the most basic questions? I hear it IS common, but I wanna hear it from the horses mouth
>>
>>60106465
The government can garnish your wages right now.
>>
>>60106465
exactly. you're a pet. and when you become a strain on the government, it's in the government's best interest to reduce you. so when UBI comes about, also expect a great deal of population control to come about shortly after
>>
>>60106506
I start simple and ramp up as quickly as possible in every interview I give.
>>
>>60106506
literally never. i just ask to see the personal website they made and put on their github or tell them to get the FUCK out
>>
File: 1493138560031.jpg (28KB, 228x214px) Image search: [Google]
1493138560031.jpg
28KB, 228x214px
>>60105822
>>
File: subsets.png (40KB, 485x441px) Image search: [Google]
subsets.png
40KB, 485x441px
>>60105903
CS guys have been butthurt about that for a while now replicating math/"applied math" debate. Truth according to them is "There is science. There are it's applications. There is no such thing as "applied science".

I actually had two separate deps in my uni CS/SE. CS students had ~0 development and were studying something like that https://www.youtube.com/watch?v=0JUN9aDxVmI , proving theorems left and right like theoretical physicists or mathematicians and it made perfect sense tbqh, there is a shitton of unknown in computer science. While SE people have been taught by industry programmers, programming non-stop.

>>60106069
>here are some algorithms, now go write a program that uses them

>implying CS is only about algorithms
>what is complexity theory, alex
>>
>>60106532
That video isn't CS... is it?
>>
>>60106509
So I should give them more power to not just garnish my wages but completely take away my income. Is that it?
>>
>>60106561
I'm saying that they already have the power to do that.
>>
>>60106624
NSA also has the power to strip away my privacy. Doesn't mean I should support more laws that remove privacy. Only a moron would think they because they can do it now, they should be given more power to flex it.
>>
>>60106624
they also have the power to execute you. doesn't mean that if they do it unjustly, the people don't have the ability to rise up against them
>>
>>60105394
>>60106274
>The free() function frees the memory space pointed to by ptr, which must have been returned by a previous call to malloc(), calloc() or realloc(). Otherwise, or if free(ptr) has already been called before, undefined behavior occurs. If ptr is NULL, no operation is performed.
>The free() function frees the memory space pointed to by ptr
https://linux.die.net/man/3/free
>>
File: test (3).png (990KB, 1280x720px) Image search: [Google]
test (3).png
990KB, 1280x720px
>>60105903
>tfw CS majors can get their degrees without taking at least one course in topology and quantum mechanics
What the fuck is wrong with this country's education?
>>
>>60106532
>old school chalkboard
>erasing it with your fingers
cringe
>>
>>60106673
just because you are in the top 1% and incredibly intelligent doesn't mean they should set the bar that goddamn high
>>
>>60106722
it's not that high you're just intimidated by the buzzwords
>>
File: Jj9DUWz[1].jpg (689KB, 800x2798px) Image search: [Google]
Jj9DUWz[1].jpg
689KB, 800x2798px
>>
>>60106750
>stupid brainlet, topology is not that complicated
>>
File: 1483932922814.webm (393KB, 720x480px) Image search: [Google]
1483932922814.webm
393KB, 720x480px
>>60106776
>tfw Ada would be the only one to save the princess gracefully
>>
Just spent 3 hours fixing matlab->c code because Matlab apparently thinks the bss section is infinitely large.
>>
matrix multiplication with threads in C
https://github.com/box3x4/my-projects-or-studies/tree/master/pthread
tried to not use global variables, but i failed.
is there a way to pass just a matrix column using pointer? line is doable, but column i couldn't do.
>>
>>60107116
intel mkl is a thing, anon
>>
I always find Bisqwit to be rather motivating...

https://www.youtube.com/watch?v=rUB5Hlm9AaQ
>>
>>60107149
i'm doing this to study how threads work... just using some library will not increase my knowledge in that area.
>>
>>60107116
#include <stdio.h>
#include <stdlib.h>

void some_function(size_t n, int a[static n][n])
{
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
printf("%d ", a[i][j]);
}
putchar('\n');
}
}

int main()
{
int n = 5;
int (*a)[n] = malloc(sizeof *a * n);

for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
a[i][j] = rand() % 10;
}
}

some_function(n, a);
}
>>
File: 1481101192134.gif (239KB, 500x419px) Image search: [Google]
1481101192134.gif
239KB, 500x419px
>>60106673
>>60106712
>>60106822
>>60106876
Who is saying this?
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
Threadly reminder that dlang-chan is not dead, and she's super duper cute! Say something nice about her, /dpt/!
>>
>most people on /dpt/ don't even understand monads
Why are you even here?
>>
Why is pycharm so fucking bloated? I gave it a try since I can get year license BC student. Holy shit it's slow as fuck. Worse than eclipse... I actually prefer fucking eclipse over that shit. After about an hour with it I said fuck it and went back to sublime + anaconda.
>>
>>60107205
Nice. Who said that though?
>>
File: solid_state_kyouju.jpg (116KB, 455x332px) Image search: [Google]
solid_state_kyouju.jpg
116KB, 455x332px
>>60106341
That's pretty cool anon. I'm in condensed matter myself.
>>
New thread: >>60107221
>>
>>60107205

You can be a successful programmer and go your entire life without learning what a Monad is.
>>
>>60107226
this

haskell a shit
>>
@60107226
Why do you capitalize "monad"? Are you retarded or something?
>>
>>60107233
I don't think anyone here mentioned H*skell.
>>
>>60107183
i want just the column as a vector (int *column).
i can pass a line as
int *line = matrix[0];
function(line);

i want to know if i can do this, but instead of line a column.
>>
>>60107234
Don't bully ruby too much, anon. Xie experiences gender dysphoria.
>>
>>60107247
haskell is the only language which uses monads
>>
>>60107263
False.
>>
>>60107263
Absolutely any language which has the power to define basic arithmetic can use them.
And only H*skell using them would be simply impossible since the language which came up with them is category theory,
>>
>>60107253
Pointer + stride.
#include <stdio.h>
#include <stdlib.h>

void print_all(size_t n, int a[static n][n])
{
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
printf("%d ", a[i][j]);
}
putchar('\n');
}
}

void print_line(size_t n, size_t stride, int *ptr)
{
for (int i = 0; i < n; ++i) {
printf("%d ", ptr[i * stride]);
}
putchar('\n');
}

int main()
{
int n = 5;
int (*a)[n] = malloc(sizeof *a * n);

for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
a[i][j] = rand() % 10;
}
}

print_all(n, a);

printf("Printing Row 2:\n");
print_line(n, 1, a[2]);

printf("Printing Column 3:\n");
print_line(n, n, &a[0][3]);
}
>>
>>60107116
>is there a way to pass just a matrix column using pointer?
you can pass an array of pointers, and each element of the array points to an element of the column.

//nxm matrix
//want column j

T** get_column(T** matrix, int n, int j)
{
T* column[n];
for(i=0; i<n; i++)
{
colum[i] = &(matrix[i][j]);
}
return &column;
}
>>
Reminder that R*st will have dependent types before Hasklet
>>
>>60107305
This might actually be true. Seems like H*skell will have to remain the sepples of FP forever.
>>
>>60107302
ps.: do with with malloc instead
>>
>>60107305
Reminder that Rust will never have HKTs
>>
I'm trying to create a simplistic progress bar sort of thing in HTML/CSS. It just consists of a background texture (for unfilled), a foreground texture (for filling) and text.

The background element was simple enough to do, but getting the foreground elements to layer properly and scaling the texture on the foreground bar is not so much. I haven't done this kind of stuff in quite a while so I'm rusty as hell. I just want to get this shit working.

What am I doing wrong, and how do I make it right?

CSS:
.bar      { width: 100%; height: 20px; max-width: 1000px; background-image: url(images/bar-bg.png); background-size: 100% 100% }
.bar_fill { height: 20px; background-image: url(images/bar-fg.png) }


HTML (generated):
<div class='bar'>
<div class='bar_fill' style='width: 100%'></div>
100%
</div>


>the foreground texture needs to scale with the width of the parent (background) element while also cropping the texture according to fill percentage, and also be layered in front of the background texture
>the text needs to be centered within the bar and layered in front of the fill texture

Pic related is what the generated page is spewing out right now.
>>
File: progbar.png (14KB, 1041x114px) Image search: [Google]
progbar.png
14KB, 1041x114px
>>60107447
And of course I forget the fucking image.
>>
>>60107348
I'm pretty sure you can define them in terms of dependent types.
>>
>>60107447
>>>/g/wdg
>>
is there any use to lisp besides AI?
>>
>>60105580
Any language that has file system facilities, moran.
>>
>>60107499
Whoops. Thank you sir.
>>
>>60107531
no. all languages except for java and C++ are useless except for their respective niches
>>
>>60107570
I thought so
>>
>>60107263
>what is Java
>what is C#
>>
>>60107692
i guess no one is shilling hasklel any more. there used to be an autist in /dpt/ who would shill haskell as if it's so good and so special because we wuz monads n shiet
>>
>>60107755
It's trash, but still better than the vast majority of languages.
>>
>>60105816
>not a LISP
What do you need to be a LISP, if not the parenthesis.
>>
>>60105770
clojure or racket?
>>
>>60105394
Free() doesn't do anything to the pointer ITSELF, it just frees the block of heap memory which the pointer points to. So it's only valid to do after the pointer is assigned the value returned by a malloc() call, and requires that you don't modify the pointer to point to something else in the meanwhile (though you should never modify the pointer between malloc and free calls, otherwise you end up with a memory leak). Free just releases the memory which the pointer points to, the pointer itself can still be used until it goes out of scope, and set to point to a new thing. All it means is that there's nothing left at the old pointer address.
>>
>>60107940
Common Lisp.
>>
>>60108007
why?
>>
>>60108016
CLOS, Metaobject Protocols, and SBCL.
>>
>>60108020
So absolute garbage is the reason why anyone should be using Common Lisp?
>>
>>60105780
Same, worst part was the main author for the book was my professor.
>>
>>60109330
T R I T O N S
R
I
T
O
N
S
Thread posts: 348
Thread images: 38


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.