[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: 316
Thread images: 28

File: Gambas.png (35KB, 195x280px) Image search: [Google]
Gambas.png
35KB, 195x280px
What are you working on, /g/?

Previous thread: >>60044514
>>
first for C hash
>>
What's GAMBAS?
>>
Why use such a niche language.
>>
GCC7 WHEN
>>
>>60050310

A conjunction of compiler, IDE and framework that implement a modern object-oriented dialect of BASIC.

http://www.gambas.sf.net/en/main.html
>>
https://www.youtube.com/watch?v=0JUN9aDxVmI
Pretty good class.
Shame there's so few datastructures that actually fit modern computers. I can see good ways of making fusion trees and they're certainly interesting but because there's cache it's always difficult to make all these datastructures actually worth it.
If you manage to prefetch everything so your traversal isn't slow somehow you're gonna thrash the cache usually.

Does anyone have a big list of cache aware datastructures?
>>
>>60050332
>BASIC

Why would you even
>>
>>60050332
>modern BASIC

why would anyone wish this on themselves?
>>
>>60050340
>Does anyone have a big list of cache aware datastructures?
Or just implementations of algorithms/datastructures that are cache aware.
>>
>>60050355
>>60050362
It's actually bretty comfy.
>>
Python is shit, I don't care how many libraries there are for it, it's like putting ribbons on a turd.
>>
>>60050355
Works great for RAD and it's pretty stable.

>>60050362
BASIC is not a bad language at all, son. You're just too new and accustomed to other stuff.
>>
>>60050376
Highly unlikely, but it's not my problem so I have lost interest.
>>
>>60050395
Idgaf.
>>
>>60050379
Just googled it.. more like a successor to Visual BASIC? Which is a bit different than just "being a basic".

Why isn't there a "Visual Python"?
>>
>>60050315
>erp'ing with cute feminine boys
Man I lust for your life! I'm supposed to be paid to maintain Odoo databases rn, but cute boys I see none around, sadly.
>>
>>60050290
first installing gentoo, then working on one of those shitty image to collage of images generators, but with a small twist. it will only use gifs/videos and output a giant webm.


>>60050322
we need a new C compiler that is not a complete turd of code like GCC (I bet you could write a fuzzer in a weekend to find vulnerabilities in that piece of crap) and not bloated as shit like clang. C only, too.
>>
>>60050449
It's happening, OpenBSD is making an ISC-licensed fork of GCC4:
http://marc.info/?l=openbsd-tech&m=149032069130072&w=2
>>
>>60050430
>Just googled it.. more like a successor to Visual BASIC? Which is a bit different than just "being a basic".
What the fuck did you google?

It's a KISS, consistent Unixer's lang that grew organically as a Free software project. what's the link with basic besides very superficial resemblance?

>Why isn't there a "Visual Python"?
Because MicroShit didn't make one, and they didn't because there would have been no benefit to it and they had enough problems with Visual FoxPro Visual C++ and Visual Basic already.
>>
It's time /g/

https://doc.rust-lang.org/book/
http://rustbyexample.com/

* not for the brainlets*
https://doc.rust-lang.org/nomicon/
>>
>>60050479
>g-guys learn muh language p-pls
>>
>>60050479
>This is a draft document, and may contain serious errors
>for unsafe behavior which is clearly a necessity to replace C
Yeah that's exactly what I Want to see.

I'll give you a year to remove that.
>>
>>60050479
Idris > Rust
>>
>>60050461
>Therefore, I am asking all authors to respond to this thread if they object.
I'm extremely contrary to the GPL, but do you guys think this is correct?
>>
>>60050543
OpenSSL is doing it.
>>
>>60050474
http://gambas.sourceforge.net/en/main.html

The fucking website itself just straight up says Visual Basic. They make it pretty obvious they wanted a "Visual Basic for Linux."

> Because MicroShit didn't make one,
Reason I put it in quotes -- why hasn't someone made a Visual Basic like environment for Python yet? That'd be ace for beginning programmers and hobbyists.
>>
>>60050554
Reminder that Excel is just Visicalc for MS-DOS.
>>
>>60050515
t. retard
>>
>>60050554
Python is garbage and has learned nothing from the last 40 years of programming language development, theory, and research.

Favoring Python is an immediate no-hire at my company.
>>
Got a programming competition on Friday and I'm brushing up on modulus, triangles and sorting data.

It's really not anything major - aside from printing triangles using asterisks I have no idea what kind of programming issues triangles pose.
>>
>>60050591
Is this a new meme?
>>
>>60050609
copypasta*
>>
>>60050552
This doesn't really answer the question though. Still seems pretty shitty to me.
>>
>>60050290
Gambas is prawn en espaƱol :D
>>
>>60050632
Copyrights are shitty. Anything we can do to workaround them is great by my book.
>>
>>60050580

As much as I hate using Python for my own programming and would hate to use it for work, there are few languages so suited for beginners.

It'd be a great replacement for the sort of people who work(ed) in Visual Basic. Y'know, retards and newbs.
>>
>>60050659
I think Python retards a beginning programmer's learning, but whatever.

The bigger problem is that Python is widely used in production at many companies.
>>
>>60050609
>>60050623
Wait, what? No, I genuinely have one.
>>
>>60050700
Nice try, memer.
>>
>>60050700
thanks, saved in my pasta file
>>
>>60050659
>retards and newbs.
The people who actually work in Visual Basic are old farts who can't/won't shift to C#, those maintaining their legacy garbage, and finance retards. My old community college still teaches VB6/.NET for the introductory course, though, probably one of the few schools that do.
>>
>>60050741
>>60050755
I think I'm having a stroke.
>>
>>60050827
Then you should stop memeing and seek urgent medical assistance.
>>
>>60050839
My doctor is prescribing me some "take-what-I-say-seriously-honest-to-God-I'm-not-memeing".

Huh.
>>
>>60050461
>OpenSSL and SFLC are suggesting lack of consent towards an action,
indicates consent towards that action.
>According to that:
>If we do not hear from you, we will assume that you have no objection.

??
>>
>>60050865
Then take your prescribed meds and stop memeing.
>>
>>60050643
And I thought mockito was the stupidiest name in SW history.
>>
>>60050876
>she didn't say no!
>>
Are you ready for this lovely Microsoft Certified Professional, /g/?
>>
File: 1460316627179.png (777KB, 668x667px) Image search: [Google]
1460316627179.png
777KB, 668x667px
>>60050492
>>60050915
Who said this?
>>
Can I get a job at Microsoft if I use Linux at home?

Can I get a job at Facebook if I don't use it?
>>
>>60051019
Dumb animuposter.
>>
>>60051019
>does this upset you?
>>
>>60051043
Totally dude.
>>
>>60051062
>let's talk like this for the rest of the thread
>>
>>60051016
I like his personal website tbqh
>>
File: 1466867464032.jpg (63KB, 944x550px) Image search: [Google]
1466867464032.jpg
63KB, 944x550px
>>60051043
I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.
>>
>>60051056
Anime is the fundamental part of imageboard culture and being disgraceful to the anime must be a punishable offence.
That being said, I really don't understand your motivation. Why are you on anime site yet you despise anime fans? Why are you wasting your life away arguing with anime fans?
>>60051062
>>60051091
Feel free to delete these posts.
>>
>>60051098
I use Linux but I don't use GNU on top of it, I use various non-GNU alternatives, so I don't see how your comment is at all relevant.
>>
>>60051103
Anime is the fundamental part of imageboard culture and being disgraceful to the anime must be a punishable offence.
>I agree with this
>>
>>60051103
Feel free to delete your post.
>>
>>60051121
Android uses Linux without GNU too (since it's the Android OS, not the GNU OS), but I don't see how your comment is at all relevant.
>>
>>60051121
>>60051098
Your containment thread is this way: >>>/g/fglt
>>
>>60051098
>GNU
>>>/r/abbit
>>
>>60051144
Go away, Richard.
>>
should I learn perl?
>>
should I learn Ook?
>>
File: tddwi.jpg (134KB, 1107x1388px) Image search: [Google]
tddwi.jpg
134KB, 1107x1388px
idris
>>
>>60051185
I LOVE Ook!
>>
>>60051177
>>60051185
No
>>
File: 1459097156067.jpg (37KB, 686x576px) Image search: [Google]
1459097156067.jpg
37KB, 686x576px
What type does anime have?
>>
>>60051249
Stop false-flagging, normie.
>>
>>60051177
Yes
>>
>>60051256
I care deeply!
Do you realize how stupid your comment is?
>>
static types > dynamic types
>>
R8 my shitty throw() function
>>
>>60051334
This post is as stupid as saying:
static types > something which is by definition not a type
>>
>>60051353
Sorry, let me rephrase

static types > dynamic "types"
>>
>>60050355
>>60050362
you're most likely assuming that 'BASIC = bad' based on quotes you've heard from people who were talking about early versions of BASIC from the 70s which had restrictions like functions could only be a single line long, and only have a name of one character long, etc. that is, stuff that hasn't been true of any version of basic after 1985 or something
>>
>>60051365
No, it doesn't make sense. Anything which is a type is by definition "static".
>>
>>60051374
types > no types?
>>
>>60051396
"dynamic types" is an oxymoron.
"dynamic type checking" sadly isn't.
>>
>>60051374
"static" is a misnomer
>>
>>60051450
It is an accurate description of what a type system is.
"dynamic typing" on the other hand is definitely a misnomer. It should be called "dynamic type checking".
>>
Technically you can have a "dynamic" type, which is really just a type, but is checked in a dynamic manner.

From there, it's an argument of whether the quotes around "dynamic" should be present to satiate your pedantry.
>>
>>60051493
>Technically you can have a "dynamic" type
That would be a self-contradiction.
>but is checked in a dynamic manner.
It's not dynamic then, it's just checked dynamically.
>>
>>60051493
No, but you can have a type that's statically checked but only reduced dynamically
>>
Why do some people, upon seeing a new concept in Haskell, Rust, Lisp, whatever, try to implement it (and poorly) in their favorite shitlang? They learn nothing from it because the concept is lost in the noise of working around the shitlang's deficiencies.
>>
>>60051773
Because the concept in Haskell is annoying to use and doesn't fit it with a fuckton of other tools we're already using, so we take the gem out of the pile of Haskell shit and repurpose it to make the better languages even better.
>>
>>60051095
I'm surprised you know who this "literally who" is.
>>
>>60051809
It doesn't make the shitlangs better, though. They cannot be made better.

Haskell is a much better language than the garbage most companies use and if you built your entire product around a shitty tech stack then you deserve to fail.
>>
File: cygwin-ide.png (302KB, 1680x1050px) Image search: [Google]
cygwin-ide.png
302KB, 1680x1050px
>>60050290
Gambas is cute! Cute!
http://gambas.sourceforge.net/en/main.html
>>
File: 20170330_194610.jpg (1MB, 2560x1440px) Image search: [Google]
20170330_194610.jpg
1MB, 2560x1440px
Anyone here familiar with Visual Basic? I need help on an assignment. I don't know how to make the college major appear on the right list box when one of the buttons are selected. I already made the interface, I just don't know how to code it.

I'm willing to send like $10 on paypal to anyone who can do this for me. Thanks.

here is the link to the assignment.
http://imgur.com/a/KB1Uf
>>
>>60051773
To use it and still get paid for it.
>>
>>60051865

>that clipped text

open source is shit
>>
>>60051809
>doesn't fit in with my OOP garbage manage pattern visitor class, so it's wrong
>>
malloc(2000000000);


How do people defend this language?
>>
>>60051886
>>60051895
From whom did you reference this statement?
>>
>>60051872
Fuck off, pajeet.

You should have picked a school that's at least using C# or Java.
>>
>>60051915
I go to NYU, everyone has to take this class before Java.
>>
File: AAAAAAAAAAAAA.jpg (12KB, 474x473px) Image search: [Google]
AAAAAAAAAAAAA.jpg
12KB, 474x473px
>>60051951
>he went to college to learn programming
>>
>>60051872
I can do it only if you will tell your professor that you got help from 4chan.org/g/dpt
>>
>>60051909
what about this
>>
>>60051992
Allocates gigabytes a second
>>
>>60051912
They are quoting me, for I have told them.
>>
>>60052005
kk
>>
>>60051964
Sorry but did you reply to the correct post?
>>
>>60051872
>I'm willing to send like $10 on paypal
If you're going to offer money, youngtapeworm, offer more.
>>
>>60052015
I'm literally lmaoing at your life, famalam
>>
>>60050659
Lua
>>
>>60052032
is not a real language
>>
>>60052029
>lmaoing
>famalam
Only an underage /b/tard would find this cancer funny
>>
>>60052040
How so?
>>
>>60051773
>>60051849
They try to implement it for languages that are actually used in the real world. Features hidden away in some academic plaything don't help anybody. If they get added to a real language, they can become useful. If not, they were junk to begin with.
An example is OOP. It was invented for Simula and used in Smalltalk, but these languages were garbage. OOP only became useful when added to a dialect of C.
>>
>>60052064
>the real world
How do you determine if a world is real? Am I in a real world right now?
>>
>>60052051
I'm not the one wasting $20k annually just to learn coding.

You really fucked up.
>>
>>60052064
>An example is OOP
I didn't even bother to read your post, because I already know it's fucking stupid.
>>
>>60052090
Who do you think you're responding to?
>>
File: 1473727760877.jpg (13KB, 236x306px) Image search: [Google]
1473727760877.jpg
13KB, 236x306px
>>60052080
>>
>>60052080
Look at it this way, you can make anything you want in the darkness of your basement but nobody will ever be interested in it the way you are. If it sees the light of day, people will think it's garbage. That's why some activities are hobbies and others are jobs.
>>
>>60052131
What does this have to do with what I asked?
>>
>>60052017
Someone already offered to do it for me, thanks for the suggestion though.
>>
OK, what's so bad about BASIC?
>>
>>60052165
Why are you even in college if you don't wanna do the work?
>>
>>60052176
It's an antiquated beginners language.
>>
>>60051909
property([]).__init__()


How do people defend Python?
>>
>>60052064
>OOP
>became useful
>>
>>60052182
I've done all the work up until here, I missed the last class so I'm not sure how to do this, plus I have to write and 10 page paper about vpns, study for a networking exam, and do another project about Nagios. So i'm alittle busy to sit around and try to figure this out.

I don't even know why I offered money, the guy who sits next to me always knows how to do this shit, I'm just gonna take a picture of his code next class.
>>
>>60052232
They don't, it's indefensible
>>
>>60051872
I recognize that class code.

You need to drop out of Postner's course right now if you can't handle this, I don't care that it's ~3 weeks to the end of the semester. She makes everything as easy as fucking possible, it's VB, I remember she had incredibly flexible office hours and would respond to email, and the lab is open all fucking day till 10 at night. git_gud
>>
>>60052197
There aren't many widely adopted new languages, anyway.
>>
>>60052254
I have no idea what your talking about, not my professors name and the lab closes at like 8.
>>
>>60051989
Yeah I can do that, we can get help we just have to code it ourselves.
>>
>>60052299
>code
Wrong thread.
>>>/g/wdg/
>>
Starting off with Haskell From First Principles. If it gets too boring, I'll move over to the wikibook.
>>
>>60052311
It definitely will. I simply can't image something that needlessly long not being boring.
>>
>>60052311
It's a very long book
>>
>>60052197
So is c
>>
>>60052336
C is timeless. It will never be irrelevant.
>>
>>60052311
the wikibook is of... varying quality.
>>
>immutable arrays
>creating a new array to change one array member
>asynchronous callback function hell
>long and unreadable chains of closures that return closures that return functions that return data

defend this
>>
>>60052374
Defend what? Nobody posted that.
>>
>>60052324
>>60052327
I want to finish at least chapter 1 which discusses lambda calculus.
>>60052369
The quality varies, but it's good on average.
>>
>>60052391
Ironically chapter 1 is the least about Haskell, despite Haskell being LC++
>>
File: 1492793476549.jpg (7KB, 200x135px) Image search: [Google]
1492793476549.jpg
7KB, 200x135px
>>60052374
>>
>>60052349
Still an "antiquated beginners" language, tbqh
>>
File: hakase and sakamoto laughing.gif (1MB, 400x225px) Image search: [Google]
hakase and sakamoto laughing.gif
1MB, 400x225px
>>60052090
>stupid american can't imagine a sane educational system
okay
>>
>>60052422
C isn't for beginners. You're thinking of assembler.
>>
>>60052439
I think the joke was that "antiquated" was meant to describe the beginners, not the language.
>>
>>60052429
Did you reply to the wrong post?
>>
>>60052429
He said NYU, dumbshit.
>>
>>60052474
>NYU
>America

Pick one.
>>
File: pic1158101.jpg (22KB, 258x402px) Image search: [Google]
pic1158101.jpg
22KB, 258x402px
Lambda Calculus
or
Turing Machine
>>
>>60052503
LC
>>
>>60052503
This question is unanswerable as written.
>>
>>60052474
He's not going to NYU, check his assignment. NYU courses are prefixed with CSCI. He's going to Nassau Community College, which prefixes its computer courses with CSC and is the only college that numbers its introductory course 104.
>>
How do you know when a CS program is shit? When it begins with an OOP language, especially a dynamic one.
>>
>>60052503
true
>>
>>60052585
Very witty
>>
>>60052546
>>60051872

I sent an email to your professor. Please, when you professor spergs out about it, record it and post it here. I made sure to include the links of this website to illegal content and pornography involving minors.

https://www.youtube.com/watch?v=rbzJTTDO9f4
>>
File: 1459487295667.png (249KB, 340x314px) Image search: [Google]
1459487295667.png
249KB, 340x314px
>>60052670
>>
>>60052374
>>immutable arrays
>>creating a new array to change one array member
Performance
>>asynchronous callback function hell
Async/await
>>long and unreadable chains of closures that return closures that return functions that return data
Deprecated, use async/await
>>
>>60052546
>>60052670
I'm glad this happened.
>>
>>60052707
>>>asynchronous callback function hell
>Async/await
>>>long and unreadable chains of closures that return closures that return functions that return data
>Deprecated, use async/await

>muh monads
>>
File: 1468899863437.jpg (90KB, 394x404px) Image search: [Google]
1468899863437.jpg
90KB, 394x404px
>be me
>download software
>there's a folder with all the icons used in that software
>all icon images are not optimized
>optimize folder
>reduce 33% of the software size
>>
>>60052546
There are other colleges that have a CSC104.

What makes you think I'm going to NCC?
>>
>>60052715
>>60052736
Are you fucking moronic?
>>
>>60051872

If you can't do the work, you should fail the course and choose a different career, rather than trying to pay people money to cheat.

>>60052496

Whether you like it or not, NYU is, in fact, located in the United States.
>>
>>60052759
what did you mean by this?
>>
>>60052759
?
>>
>>60052496
>>60052772
>>
>>60052503
False.

I prefer the C abstract machine model over both. Turing machines were the original Turing tarpit. The lambda calculus is a bit better, but adding IO to it is ill-defined unless you add execution order semantics.
>>
>>60052791
>>60052799
I was going to be meaning that the text you're quoting doesn't seem to exist anywhere.
>>
>>60052821
Greentext isn't just used for quoting
>>
>>60052836
>Greentext
What is that? Is this something from /b/? Please refrain from using it here.
>>
>>60052861
read this sentence.
>>
File: 1492052016048.png (39KB, 200x200px) Image search: [Google]
1492052016048.png
39KB, 200x200px
>>60052861
>thinks greentext is a /b/ thing
>>
>>60052887
Who are you quoting?
>>
>>60052887
Learn to use language correctly, idiot.
>>
>>60052899
whom*
>>
>>60052905
who*
>>
Who's being quoted here:
>C is a good language
>>
>>60052939
Me. Depending on the day.
>>
clisp doesn't like this for some reason.

>*** - SYSTEM::%EXPAND-FORM: (+ N 1) should be a lambda expression


(defun sumsq (n m s)
(if (< n m)
(sumsq ((+ n 1) m (+ s (* n n))))
(setf s1 s)
)
)


ideas?
>>
>>60053001
Whom are you quoting?
>>
>>60053001
You have extra parentheses around the arguments to sumsq.
>>
>>60053001
(+ n 1) does not result in a function.
>>
>>60053009
read this sentence.
>>
>>60053017
ahh ofc
>>
>>60053031
I read your sentence, I'm still no closer to understanding your point.
>>
Can any of you niggers provide me with an intro/tutorial to python?

Pls no Derek Bananas he is shit.

I know you don't like it, but it's needed for an upcoming course and i have 0 exp in it.
>>
>>60053096
Don't learn Python. It will only set you back.
>>
>>60053096
WHAT ABOUT YOU SEARCH THE FUCKING INTERNET, YOU MOUTH BREATHING RETARD?
>>
>>60053096
Well, I've got a few I could recommend, but you started by calling me a nigger, so fuck off.
>>
>>60053096
just go to codeacademy and work through the python module. afterwards pick one of the modules that teaches you how to use an API so you have something to muck about with
>>
>>60052861

>Implying it isn't a 4chan-wide thing
Get rekt, Anon.

And before you ask, I'm not quoting anyone. I am using the > character to bring emphasis to a point. It is in common use for not just quoting, but also bullet points, and accusatory statements, among others.

>>60053009

Using "whom" at the beginning of a sentence is bad form. You should either rephrase your sentence, or use "who" for the object.

Also, Anon is obviously quoting their interpreter.
>>
>>60053159
Filtered.
>>
>>60052861
>>60053159
This guy has been doing this for a while.
Ignore him, yall getting b8d
>>
>>60053159
>Using "whom" at the beginning of a sentence is bad form.
Whomever your parents sent you to for English instruction was a poor teacher.
>>
>>60053110
i have to

>>60053114
Fuck off i want answers from experienced ppl not google ffs
>>60053133
will check
>>60053120
heh nothing personnel.
>>
>>60053316
thenewboston
>>
>>60053250
console.log("Whom" === "Whomever");
>>
>>60053534
console.log("Whomever".startsWith("Whom"));
>>
>>60053316
Why do you have to?
>>
File: 2017-04-23-213517_658x372_scrot.png (21KB, 658x372px) Image search: [Google]
2017-04-23-213517_658x372_scrot.png
21KB, 658x372px
bitcoin dice game in Elixir. I'll make it so it has no registration and only gives you a wallet address to send buttcoins to and you'll be able to play with different people at once and chat.
>>
>>60053701
Do the words "he" and "her" share the same grammatical function just because "her" starts with "he"?
>>
>>60053819
Ruby never mentioned grammatical function, only:

>Using "whom" at the beginning of a sentence is bad form.

She then went off on an unrelated tangent.
>>
>>60053719
have to write blender plugins with python for a 3d modeling course
>>
>>60053905
So in other words nobody's holding a gun to your head and saying you have to learn Python.

You have a choice anon, whether to cripple your mind or not.
>>
>>60050311
As revenge towards the next in line.

>>60050290
that shotgun kiss face always makes me smile
>>
>>60053250

I went to the best funded public school in my city. The word "whom" is both formal, and awkward-sounding in many situations. One of those is when it is at the beginning of a sentence, followed by a verb. While it is grammatically correct, it sounds like shit, because that simply isn't how people talk in everyday conversation.

>>60053844

>She
Wrong pronoun, dingus.
>>
>>60050290
>Gambas
Best name ever given to a programming language.
>>
File: cringe.jpg (13KB, 200x200px) Image search: [Google]
cringe.jpg
13KB, 200x200px
>>60053999
>public school
>>
>>60054048
not as good as your religious charter school education i'm sure
>>
>>60053999
>public school
Well that explains a lot.
>>
>>60053999
>public school
Was it a public school in the American sense or the British sense? I assume the former. I understand that state schools are wont to teach a simplified version of English.

>formal
This is not a bad thing.

>awkward-sounding
A subjective view. I find it awkward-sounding when people use "who" in place of "whom".

>that simply isn't how people talk in everyday conversation.
Again, my experience is the reverse. My colleagues, friends, and I mostly use "whom".
>>
I'm a community college student planning to continue at a 4 year after. So far we've had a web design class that did basic html, php, css. A VB class that covered forms applications as well as a first semester logic class. I've learned more than I've been able to on my own but I didn't know we had three months between semesters. I can't work because of, well, reasons.
What should I do? Python? Read SICP? Next semester is C++/OOP and DB management. I would like to get something out of the free time or else I'll just play diablo all day.
>>
>>60054229
>php
>vb
>python
>oop
What the fuck are you doing, anon?
>>
>>60054229
As long as you play Diablo II, it's fine.
>>
>>60054229
You should help me design RAPIC.
>>
>>60052005
What's it supposed to do?
Refuse to allocate 2GB?
What if you actually needed that much memory?

The sane thing seems to be to just try and allocate whatever the user requested and let the OS and your available hardware dictate whether it should succeed or not.
>>
File: 1477709641379.png (64KB, 640x626px) Image search: [Google]
1477709641379.png
64KB, 640x626px
>>60050290
I'm doing some things in Numpy and Python to test some autocorrelation method for porting to an embedded platform in C + ASM.

I have tested 4 different methods:
1. Using Numpy's native method - for benchmarking
2. Element-wise, using a double iteration. Slow as fuck.
3. Vector-wise, multiplying vector by vector and trasposing it as necessary. Fastest.
4. Using Fourier transform. Not as fast as I thought.

Method 3 is the fastest of the algorithms. Do you know which optimization does Numpy for multiplying and summing arrays?
>>
>>60054271
Look man I hate this school too but I'm just grateful I'm not on the streets anymore and actually have a chance at my dreams. I hate the teachers, I could make a thread of the assignments and people would die laughing. I have 3 months of free time, how should I supplement their shitty curriculum?
>>
>>60054229
>A VB class that covered forms applications
Are you the faggot that just asked the thread to do his homework for him? If so, go fuck yourself and retake the intro course.

If not, OOP is pretty par for the course in terms of what one learns in college. The only person who benefits from studying ahead is you, professors don't give you brownie points for learning the material beforehand. OOP isn't an entirely difficult concept to understand, so you might want to crack open a C++ book since they're usually covered in tandem. SICP isn't a magic text that makes you a good programmer after reading it.
>>
>>60053844
OK, but the counter-argument with whomever is a complete strawman because no one said you can't use whomever at the start of a sentence. You can't draw a parallel between the two unless they fulfill the same grammatical function.
>>
Is there any reason at all to use OOP if I'm human?
>>
>>60054408
https://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html
there are a couple different things you can pass to numpy.sum what does your method look like now?
>>
>>60054434
The only time I've posted in this thread I was talking about how bad I am at being productive on a laptop because I was lonely.
I'm hoping to have an easier time because of a better grip on logic and have less trouble when I graduate. I guess I'll just force myself to fuck around in VS for a few hours a day.
>>
>>60054505
nah just program everything in haskell
>>
>>60054229
don't listen to people who shit on languages. Every language has it's proper use case.

If you're going to be working with database management I'd suggest that you learn a wee bit of Python. My reason being that SQLAlchemy is an excellent ORM for working with relational databases.

In the case of integrating an application tier with a database, Python will let you get this done fast, and you can focus on putting whatever it is you want to do into a proof of concept.

Sure it's OOP, and idc what people say about it's class structure--it's got real-world applicability and you can get your homework done faster and get back to important things like Diablo II.
>>
>>60054565
>Every language has it's proper """use case"""
That's how I know your post is completely retarded. Stopped reading right there.
>>
>>60054584
go ahead and tell us what your suggestion is? Or are you one of the /g/ 20-somethings that doesn't actually have anything of value to say? muh haskell
>>
>>60054048
What else would it be? Private school? Protected school?
>>
>>60054606
>go ahead and tell us what your suggestion is?
Suggestion on what? Are you retarded or something?
>muh
Yeah, you seem to be retarded. Stopped reading right there.
>>>/v/
>>>/b/
>>
File: 1491336648866.jpg (78KB, 338x305px) Image search: [Google]
1491336648866.jpg
78KB, 338x305px
>>60054621
will you accept an anime figurine as payment for myspace HTML?
>>
>>60054565
>Every language has it's proper use case.

And sometimes there are no alternatives. However, I think it takes a few years or decades to realize that languages are a tool to solve a problem
>>
>>60054662
Depends. What figurine are we talking about?
>>
>>60054515
Read first, then computer.

If you want to get a head start on DB, learn SQL. I unironcially recommend the CodeAcademy course for SQL since it's one of two classes on that site that aren't huge piles of shit. Not a very difficult language to grasp. Databases are a bit of a different matter but it'll put you way ahead of the game to know your basic SQL navigation. SQLZoo and W3Schools or whatever are shit, don't fall for them, google instead since there's a lot out there from better sites and individuals. Easiest thing you can do is utilize a SQLite database and make some kind of toy program in VB (or C++ if you want to get the jump on that) that accesses it and returns data.

https://www.sqlite.org/
http://sqlitebrowser.org/ <--- this is helpful for visualizing your database

Best thing to do during the summer is not to do it every day, but maybe every other day for a few hours. It'll make you 10x sharper than anyone else in the class if you stay on point with what you learned last semester.
>>
>>60054662
>>60054701
Not programming. Fuck off.
>>>/g/wdg/
>>
>>60054669
truth enough, some are certainly better suited for certain situations than others. I remember being super opinionated about C and Assembly when I was younger thinking interpreted languages were 'plebian' but now that I've been in the field a long time it's all just a means to an end--all I care about sometimes is the quickest route there, other times the best route. I just hope people that come here aren't misguided by people with no real bearing on anything
>>
>>60054708
epic
>>
>>60054565
We're already doing that in the VB class. My final project is effectively a database and a front end UI for it. I believe the DB class will probably go way more in-depth on sql queries and etc. I'll do some python, thank you. I was interested in it anyway.
>>
>>60054670
one of those bondage ones

>>60054708
idk man I think it'll go nicely with the other anime figurines in your extensive collection
>>
>>60054722
>interpreted languages
No such thing can possibly exist.
>>
>>60054733
there are lots of good resources out there, many of them interactive. likewise if you go onto the official #python irc channel they're very helpful, and they have a very positive culture (as opposed to this shithole)
>>
>>60054733
Python is not a great choice this early in the game. I'd say go with C++ since you're going to be learning it next semester or VB since you already know it.
>>
File: 1493054465241.jpg (127KB, 537x532px) Image search: [Google]
1493054465241.jpg
127KB, 537x532px
>>60054740
>>
>>60054701
>>60054515
Just check these notes, lad:
http://pld.cs.luc.edu/courses/305/spr17/
>>
>>60054758
What sort of retarded opinion were you trying to convey with this post?
>>
File: 1491983827616.png (200KB, 356x256px) Image search: [Google]
1491983827616.png
200KB, 356x256px
>>60054740
>>60054758
>>60054800
>>
>>60054818
I don't see how this relates to my post.
>>
File: 1492887847208.jpg (66KB, 575x563px) Image search: [Google]
1492887847208.jpg
66KB, 575x563px
>>60054826
>>
>>60054758
>>60054818
>>60054839
Are we being raided by redditors today?
>>
>>60052670
There is like 12 different professors and sections of this class, I hope you sent an email to all of them.
>>
>>60054512
# --------------------------------------------------
# Native Numpy autocorrelation
def native_autocorrelation(x):
return np.correlate(x, x, mode='full')

# --------------------------------------------------
# Full autocorrelation using 'for' loops, element-wise addition and multiplication
# Incoming data: "x". Outcoming data: "rxx"
def full_autocorrelation_1(x):
newlen = len(x)
rxx = np.zeros(newlen*2 - 1)

# Basically multiplies x by one of its elements and zero-pads properly.
for j in range(len(x)):
for i in range(len(x)):
sampletemp = x[len(x) - j - 1] * x[i]
rxx[i+j] = rxx[i+j] + sampletemp

return rxx


# --------------------------------------------------
# Full autocorrelation using 'for' loops, vector-wise addition and dot product
# Incoming data: "x". Outcoming data: "rxx"
def full_autocorrelation_2(x):
newlen = len(x)
rxx = np.zeros(newlen*2 - 1)

# Basically multiplies x by one of its elements and zero-pads properly.
for j in range(len(x)):
frametemp = x * x[len(x) - j - 1]
rxx = rxx + np.concatenate([np.zeros(j), frametemp, np.zeros(newlen - 1 - j)])

return rxx

# --------------------------------------------------
# Full autocorrelation using FFT.
# Incoming data: "x". Outcoming data: "rxx"
def full_autocorrelation_3(x):
newlen = len(x)
xpad = np.concatenate([x, np.zeros(newlen - 1)])
fxpad = fft(xpad)
rxx = ifft(fxpad * np.conj(fxpad))

rxx = np.concatenate([rxx[newlen:(2*newlen)], rxx[0:newlen]])

return rxx


That's it. It's just to test methods. It's going to be ported to C, so I want to know what's, in machine level, the most efficient way to do it.
>>
>>60054752
Thank you, I love irc. All my old channels died so I haven't used it in years. I'll start lurking.
>>60054753
I feel like vb is useless but then they showed us how you can basically just turn any vb application into a website which I thought was awesome. I'd use it for small personal stuff, like little tools for a video game or something to scan a website, etc. I was just going to start C++ but I don't want to because I'm going to be doing it anyway. Half the classes here I get absolutely nothing out of it so I like to maximize what i can get out when I can.

I'm scared shitless about fucking up between this school and the next, or failing all the math in the 4 year school because this program has literally no math. As it is all of my classes went from ~25 kids to ~5 kids and I'm the only adult at 24 everyone else is 18. If they had real math literally no one would pass. I'm also worried as fuck about graduating and being unemployable because of my age and lack of work experience. fuck life
>>
so macros in C get preprocessed from the compiler

if i do something like that:

#define A(i,j) A[i*n+j]


in an extern include file, how will this macro ever know what value n has?

is this leading to undefined behavior?
>>
>>60054740
>No such thing can possibly exist.
hello there, care to back up the completely inane thing you just said?
>>
>>60054872
It would require that arbitrary programs written in that language are able to tell that they are being interpreted.
>>
>>60054865
I would check out the Numpy source code I think it's written in C(ython)? It might give you some better insight into what method they are using under the hood

https://github.com/numpy/numpy
>>
>>60054871
"preprocessor"
the clue is in the name
>>
>>60054871
>is this leading to undefined behavior?
Please don't spout retarded bullshit.
>>
>>60054871
I don't recommend using define macros for matrix arithmetic.
Every week, someone posts code similar to yours.
What leads people to think this is a good idea?
>>
>>60054910
That's exactly what I want. I'll take a look.
Thanks.
>>
>>60054902
I don't think that is a requirement at all you goofball.
>>
>>60052503
Quantum Turing machine
>>
>>60054945
It's pretty clear that it is.
>>
>>60054935
fortran/matlab syntax.
its convienent for /sci/entists.
>>
>>60054964
give me a citation that states such
>>
>>60054515
I'm glad you've accepted you post because you're lonely. I have yet to concede that to myself.
>>
Why do we keep arguing about programming and CS shit? Literally who cares about that british gay man

Post last actually useful piece software you wrote, be it simple or hard, big or small
>>
>>60054992
It's self-evident and a direct consequence of saying that a language is interpreted.
>>
>>60054870
>As it is all of my classes went from ~25 kids to ~5 kids and I'm the only adult at 24 everyone else is 18.
I'm there myself, working during the day and going at night. Age quickly stops being a thing unless you're ${ethnicity} trash.
>or failing all the math in the 4 year school because this program has literally no math.
Depending on the school, they won't let you fail with all the resources. Regardless, maybe you should spend the summer cranking out math if you're so worried about it, that was my weakness back when. I dunno where you left off/where you need to start, so I'll assume the worst and say pirate a College Algebra textbook and follow that.

Worst thing you can do is piss yourself, best thing you can do is work on where you're weakest. If you're weak in math, don't do as much programming/database reading and do math in its place.
>>
>>60055003
main = fizzbuzz {1..100}
>>
>>60055011
it's official, you're an idiot.

https://en.wikipedia.org/wiki/Interpreted_language
https://en.wikipedia.org/wiki/List_of_programming_languages_by_type#Interpreted_languages

leave it to somebody on /g/ to say something completely retarded.
>>
>>60055036
Seems like you didn't even read your own retarded link.
"a language is interpreted" is the same as saying "all programs written in this language are interpreted", which would require all programs to distinguish between compilation and interpretation as they are being interpreted.
>>
>>60051103
>arguing with anime shits
ftfy
>>
>>60055020
I should work on my math but I don't even know where to start, and I'm going to hate every minute of it where as I legitimately enjoy programming. I still need the structure of class to be productive though so I should work on that.
All I have is an intermediate algebra class that I took here. It's legitimately the only math class in the computer programming major. My grades are great so I'm going to try to get into Stony Brook or maybe even a private school with the new free tuition for ny residents thing.
Thanks for the help guys sorry for shitting up the thread with blog posts.
>>
>>60055071
actually, it seems like you *cant* read. The article doesn't say that anywhere--YOU said that. You 'interpreted' it that way funnily enough. I can break it down for you: instructions are 'interpreted' into subroutines via the interpreter. What you're saying is some fucking hashish induced nonsense.
>>
>>60055153
>The article doesn't say that anywhere-
It outright states that the term doesn't make any sense. But that article isn't a source of truth simply because it's posted on wikipedia. Anyone over the age of 18 should be able to understand this.
>YOU said that
The meaning should be obvious to anyone who knows English.
If I can write a compiler for a language which accepts and rejects all the same programs an interpret does, then the language isn't interpreted. You can do this for any language, therefore there can't possibly be an interpreted language.
>>
>>60051368
No, I was referring to my own personal experience on the C64
>>
>>60055219
>It outright states that the term doesn't make any sense
dude you are downright laughable.

the actual quote:
"The terms interpreted language and compiled language are not well defined, because, in theory, any programming language can be either interpreted or compiled. In modern programming language implementation it is increasingly popular for a platform to provide both options."

how did think this meant that the term doesn't make any sense?

I'm sorry man but I just realized I've been spending time out of my life arguing with a retard. In that sense *you've* won. I gotta go wash this down with a beer.
>>
>>60055347
>how did think this meant that the term doesn't make any sense?
It's not well defined.

If it's not possible for a language to be interpreted (which I have shown in my previous post), then the term itself wouldn't make sense.
>I'm sorry man but I just realized I've been spending time out of my life arguing with a retard.
I'm not the one citing a wikipedia article which both outright refutes my point and says "This article does not cite any sources". So no, you're the retarded one here. Which by your """logic""" would mean you've "won".
>>
File: harvard.png (191KB, 654x387px) Image search: [Google]
harvard.png
191KB, 654x387px
What's you opinion on competitive programming /g/?
>>
>>60055585
Well, I guess I'm not going to Harvard then. Yale it is!
>>
>>60055585
What he's describing doesn't sound groundbreaking or novel at all.
It's called statistical sampling.
>>
>>60055600
Why tho? Prof. Nelson is cool af
https://www.youtube.com/watch?v=0JUN9aDxVmI
>>
People, I need good sources to learn about stacks and queues in C, recommendations?
>>
>>60055700
https://www.google.com/search?q=stacks+and+queues+in+C
>>
>>60055654
Sounds like such an uncharismatic douche
>>
>>60055737
>not using lmgtfy
>>
I want to make a program that extracts images from about 5 different websites, and then upload those images into another website. Is there a way to script this without having to manually download each image? What language should I use to do this?
>>
>>60055803
By "uploading to another website", I mean writing these images to an HTML file in my computer.
>>
>>60055756
What?
>>
>>60055832
https://www.google.com/search?q=lmgtfy
>>
>>60055832
She had a stroke mid-post.
>>
>>60055832
http://lmgtfy.com/?iie=1&q=lmgtfy
>>
>>60055853
>>60055866
Oh, but where did the poster say this?
>>
>>60055803
>>60055824
>Is there a way to script this
Yes, with pretty much any scripting language.
>What language should I use to do this?
Pretty much any scripting language. I would go with Python (or maybe PowerShell) just to induce angry replies.
>>
>>60055910
Python is garbage
>>
>>60056000
... collected
>>
>>60056019
I wish someone collected the garbage that is Python
>>
>>60056071
Pythons are very clean
>>
>>60056102
S-someone mentioned me?
>>
>>60056150
Yes. I'm going to kill you right now!!!
>>
I wish I was a Pythonista
>>
>>60056260
*were
>>
>>60056327
I'm pleased that this is spreading.
>>
Can someone help me? I'm new to programming. Using putchar() in C, I'm wondering if there's a way to print everything including blank space? Or is this only possible with printf?
>>
>>60056386
What is "spreading"?
>>
New thread:

>>60056465
>>60056465
>>60056465
>>
>>60054531
>>
>>60055071
oh you kokot, you literally make no sense
>>
>>60054708
Or how about you fuck off and /g/ will be a slightly better place
>>
>>60056386
Grammar Nazism? Are you new to the internet?
Thread posts: 316
Thread images: 28


[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.