[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: 327
Thread images: 59

File: 1493996935952.jpg (405KB, 900x1200px) Image search: [Google]
1493996935952.jpg
405KB, 900x1200px
What are you working on, /g/?
>>
File: haskell.png (8KB, 415x154px) Image search: [Google]
haskell.png
8KB, 415x154px
First for Haskell
>>
File: ocaml-logo-big.png (235KB, 6944x1905px) Image search: [Google]
ocaml-logo-big.png
235KB, 6944x1905px
>>60235254
Second for OCaml
FP rulez
>>
>>60235254
>Two official websites
>>
File: ulisp.jpg (350KB, 768x1024px) Image search: [Google]
ulisp.jpg
350KB, 768x1024px
>>60235248

nice :-D

I got this

Making a bootloader for some ATMega328's and then putting uLisp on a barebones board so i can free up this arduino
>>
>Yes hello, how do i do dependent types in haskell
>...
>>
Why isn't there a reading list by people I can trust on how to start programming from scratch? things either seem unprofessional or too advanced to pick up from nothing.
>>
>>60235353
>pick language
>find a book
>start learning
>>
>>60235353
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md

you don't have to trust me
>>
>>60235353
Learn C. It's fundamental. Get Dietel's C book. Then get K&R.


After that you can pick your flavour of autism. There are many: Functional programming, OOP, ASM, (((Rust))), (((D))), Sepples, Java, etc
>>
>>60235370
but what's DA BES book?
>>60235373
I prefer proprietary books.
>>
>>60235321
cabal install idris
>>
OpenSource NodeJS Forum software which interface is inspired by Social Media Platforms.

I'm honestly more interested in your project though that looks like it does something worth interest.
>>
>>60235393
Thank you. I'll try that.
>>
>>60235266
*one official website
>>
>>60235398
thats right lad.
>>
>>60235353
I honestly thing the whole "not trusting people" and "too advanced stuff" is your excuse to not force yourself to start learning. Seriously, Python is one of the best beginner languages i've seen out there and I see A LOT of good learning material for people who haven't programed shit before.
>>
>>60235424
>lad
What information did you intend to convey with this?
>>
>>60235353
https://github.com/open-source-society/computer-science

cant vouch for them, but give it a go.
>>
>>60235462
This is a good link, >>60235353
>>
>>60235462
It is mostly videos?
>>
>>60235248
Learning on edX

>TFW too many courses I want to take and will do so but scared I'll wipe out

Not for certificates btw
>>
File: 1471048631328.png (345KB, 607x608px) Image search: [Google]
1471048631328.png
345KB, 607x608px
I see programmers on /g/ talk about how different interview test are depending on the type of programming job you are applying for. But how many different types of programming jobs are there?
I could only think of like web dev, network security, or video games.
pls help im stupid.
>>
>>60235448
Python is not a good language for anyone. It is especially bad for beginners because it imbues them with false notions and bad habits.
>>
>>60235254
Haskell is a meme language. The only haskell projects on github are shitty translations of projects written in superior languages. You're all faggots
>>
>>60235511
There's good programmers and there's shitty ones.
Framework and industry don't matter because it's trivial to pick up a new one
>>
>>60235532
The shitkell community is so edgy they made two official websites for the same languages
>>
>>60235547
language*
>>
>>60235547
There are two variants of Haskell: Haskell 97 and Haskell 2010. It is unsurprising that there are two websites. Only a memer would try to make a mountain out of this molehill.
>>
>>60235569
>that damage control
>>
>>60235569
C has many more variants as well. Don't tell me haskell broke compatibility
>>
>>60235569
>dude just ignore fragmentation lmao
>>
>>60235587
>that ignorance of facts
>>
>>60235522
What are you talking about. It's designed to teach basic concepts. Forced indentation, for example, teaches new developers when indentation is important.
>>
>>60235600
Of course it has broken compatibility in some areas, that's the price of progress.

Why is it apparently okay when Python does it, but not when Haskell does it?
>>
the Russian shitposters are waking up, I see.
>>
>>60235623
Python doesn't try to pretend that it's the best language

Shitkell does
>>
>>60235612
You best be joking m8. Indentation is one of the least important things in a language or in programming.
>>
>>60235623
wtf I hate haskel now
>>
>>60235638
>Shitkell does
Nice source for that claim.
>>
A language that never breaks backward compatibility is a language that never evolves.
>>
>>60235671
this desu ne
But a language that keeps around its old junk is shit.
>>
>>60235644
It's a basic of writing readable code. It doesn't mean it's one of the single most important things in programming, but if you're telling me learning to write readable code isn't important you MUST have brain damage or be a REALLY shitty developer.
>>
Is there a a MATLAB book that can help me understanding programing sorting algorithms?
>>
>>60235685
>>60235644
Also, I could not tell you how many times i've seen new developers in college write code without indenting anything. it's so fucking ugly.
>>
File: 1463439342137.jpg (403KB, 2024x1019px) Image search: [Google]
1463439342137.jpg
403KB, 2024x1019px
>tfw actually love using terminal
>vim turns out to be shit
Do I actually have to learn emacs now?

All I need is to be able to
1. Keep files open in different tabs and
2. Be able to (un)comment and (un)indent
>>
>>60235671
A language that never breaks backward compatibility is a stable language.
>>
>>60235705
Vim is great bro, just learn it better
>>
>>60235705
terminal based, you could use nano... but I'd really suggest learning emacs. it's amazing. and if that's all you really want, only learn those features I guess?
>>
>>60235701
Sometimes you don't need to indent code, especially in a language that enables you to be concise.
>>
>>60235705
t. used vim for 10 minutes and cant get his rc working
>>
>>60235719
This. He got your ass, >>60235671

>>60235729
You're not looking at this through a beginner's perspective. A beginner does not know when they need to indent code or why. Look at this as if it's someone who knows NOTHING about programing.
>>
>>60235353
>>60235448
I've never been able to pick up and like using python and I've tried multiple times because it was a "good beginner language"

I went from C# -> C -> Lua -> C#. C# is a really good language and visual studio community is a very good learning environment and there's tons of tutorials on beginning programming with C#.

This is a very good high quality series
https://www.youtube.com/watch?v=Grss9Zqxdng&list=PLi2hbezQRVS2ZCv2kVjtQ7jWQIt4Pzjuc

There really isn't a "right" place to start learning programming you just do stuff and your knowledge grows and expands. When people say python is a "good beginner language" I'm wondering if they're talking about.
>it doesn't use semicolons
>its a scripting language where you can type stuff into a parser and get results without a compilation/linking step
>it uses english syntax for a lot of stuff
>I think it uses generic/dynamic tables instead of typesafe data structures

All that stuff is meme-shit though it doesn't actually make it easier to learn and make stuff with. Really the only languages I think are bad to learn with BY YOURSELF WITHOUT HELP. Is C and C++ because getting a development environment up and running with an easy compilation/linking process requires more knowledge than many other languages and its easy to fuck that up and not even be able to start learning.

Visual Studio Community with C# hides stuff via abstraction and automation which is semi-bad for learning but for the first few years of programming I think its a great place to start where you're just learning how to build projects and use data structures and shit.

Maybe I just have shit taste though.
>>
C is the shit
>>
>>60235767
If you want a stable language, you can pick a version and stick with it. This leaves you with the option of upgrading if necessary later.

Choosing a language that never improves is like digging a grave for yourself.
>>
>>60235793
added a an extra word there m8
>>
>>60235815
C is the?
>>
>>60235793
>the
a*
>>
>>60235448
I can see why you'd say Python is a good beginner language but it really isn't imo. It's a good language to get people interested cause it's easy and simple, but it isn't a good language to actually learn proper programming. Not 'good programming' in an elitist stuckup way, it's like... python is like the crossfit of programming, easy and fun to pick up but makes you pick awful habits
>>
File: me-on-the-left.jpg (49KB, 454x512px) Image search: [Google]
me-on-the-left.jpg
49KB, 454x512px
>>60235353
1. Pick any language.
2. Pick any book.
3. Try reading book from last step.
4. If you get stuck go back to step 2.
5. Pic.
>>
>>60235782
Lua is said to be designed for people who don't know how to program, but it always looked more overwhelming to me than necessary, I did use it for a short period of time but I couldn't get into it.
I started with visual basics 6.0, went to C#, then C++. After C++ I learned to use python, and I saw some very serious percs. It was like visual basics only without the shitty keywords.

I don't /actively/ use python though, i only use it for simple stuff, like Discord Chat Bots, or unit tests.

(I also use languages like Node and shit, but they're not really as relevent.)

>>60235814
I see what you're saying, but languages that "Evolve" tend to deprecate older versions."

Visual Basics 6.0 for example is a language that was used commonly back in the day and there's still open source software out their that relies on it, it doesn't mean i can use that codebase in a more up to date version of VB. And there's no proper conversion without basically rewriting the entire code base.
>>
>>60235248
>What are you working on, /g/?
Making good progress on my media database thing (tagging media for filtering/etc). The media viewer now displays animated gifs and I'm in the process of wrapping the libvlc library to add audio/video file support. Then I can organize and browse all my shit efficiently. By shit I mean porn. And reaction images.
>>
The point of that exmaple being that obtaining VB6 today requires you to have an expensive MSDN license, DreamSpark, Piracy, Or get lucky and buy it overpriced on Ebay.
>>
>>60235895
You are going to release it under a free license right?
>>
>>60235906
WAIT WAIT WAIT
VB6 IS PAID?
HAHAHAHAHAHAHAHAHAHAHAHHA
>>
>>60235511
That's for CS degree memers who want to work in Silicon Valley until their startup gets off the floor.

There's a massive amount of development outside it, like embedded systems.
>>
>>60235885
>like Node and shit
But you repeat yourself.
>>
>>60235885
Lua is fucking meme. I just listed it because I tried it out for game dev and almost immediately went back to C# and started learning XNA/Monogame. I mean I'm sure people can make stuff in LUA/Love2d fine but the quirks of the language were not palatable for me.
>>
>>60235705
Use a terminal emulator with tabs then? Terminator has that and tiling, as do many others.
>>
how's the market out there for embedded programming, doing software for fuckin dishwashers and shit like that, i'd be into that but dunno where to start looking for that kinda work
>>
>>60235910
Yep. At some point in the coming weeks, I'll probably be putting it on github.
>>
>>60235248
if youre not writing in assembly for a pic or whatever that is you should seriously consider suicide
>>
Reminder that every adult male should know at least 5 programming languages according to Stroustrup-sama.
>>
>>60235932
i think it's designed to be an extension language. As in, to be primarily used to extend other applications. I know I've seen it used in a few games like Garry's Mod.
>>
>>60235961
The console says rust.
https://www.rust-lang.org/en-US/
>>
>>60235969
Python
JS
C
Rust
Java
Bash
D
Go
>>
>>60235248
Compiled my c/sdl2 game using Emscripten. It's actually working alright, holy shit. Wasm gonna kill Javascript, right?
>>
>>60235969
What about adult females?
>>
>>60235988
in other words kys
>>
>>60235961
>writing in assembly for a 32-bit microcontroller

Why?

It's not the 80s anymore, grandpa.
>>
>>60236023
What if he doesn't want to kiss his sister?
>>
>>60236023
show me some delicious ASM.
>>
>>60236035
I kissed my sister a few times. It wasn't that bad but then we grew up.
>>
Python mostly.
>>
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 and fast! Say something nice about her, /dpt/!
>>
>>60236102
Pick a different character faggot. It looks horrible
>>
>>60236063
>but then we grew up
It could lead to two different interpretations...
>>
>>60236102
She looks pretty healthy for a zombie.
>>
>>60236109
Don't bully her, anon. Or else!
>>
>>60236125
Or else what? You'll get upset?
>>
>>60236142
I'll fight you 1v1 on arabia, you piece of shit!
>>
Im working with PHP, JavaScript, and Python currently
>>
>>60236142
You'll catch std.exception
>>
What's wrong with Fortran? Why nobody uses it? It's bretty neat.
>>
File: 1491090208290.png (85KB, 600x600px) Image search: [Google]
1491090208290.png
85KB, 600x600px
>>60236102
>dlang
Slow

t. Rust chan
>>
>>60236184
>slow
>rustc is even slower
>sjw shitfest

kys
>>
File: 1467570641540.jpg (75KB, 640x517px) Image search: [Google]
1467570641540.jpg
75KB, 640x517px
>>60236193
Who cares about compilers when produced binary is faster?
>>
>>60236193
Just use CL.
>>
>>60235248
A Java octal calculator. Still working.
>>
>>60236184
I'd say that's mainly because of the GC, but it's still a p. damn fast language
>>
>>60235969
Define "know".
>>
One annoying thing about Java is it's basically impossible to get good performance unless you use arrays of primitives. Arrays of objects? Other collections? Expect your code to be much slower.
>>
>>60235248
Is the CHIP good?

It has network capabilities, far better than the arduino or any raspie for the price
>>
>>60235969
Python
Haskell
C
java
MUMPS (I work in the medical industry fuck off)
>>
File: 1471852337475.png (295KB, 640x360px) Image search: [Google]
1471852337475.png
295KB, 640x360px
>>60236242
D is definately my second favorite language. It doesn't have the "anchor" like Rust chan does
>>
>>60236258
"good performance" is relative.
>>
>>60236344
It can't beat C/C++, but Java's pretty good when it comes to number crunching if you work within the JVM's limitations.
>>
>>60235705
>keep files open in different tabs
vim easily does this
>be able to (un)comment and (un)indent
vim easily does this too
let me guess...probably came from Eclipse? intelliJ? you will actually have to put effort in and read documentation! surprise!
also - what makes you think you can handle emacs if you can't handle vim?
>>
>>60236023
probably doesn't know any ASM
>>
File: 1460938535801.jpg (74KB, 512x512px) Image search: [Google]
1460938535801.jpg
74KB, 512x512px
>>60236325
I've been interested in the prospect of a Rust OS with a D userland. Might even be a good project if I decide to actually git gud at programming.
>>
File: 1472878344224.gif (1000KB, 1000x1000px) Image search: [Google]
1472878344224.gif
1000KB, 1000x1000px
>>60236389
>easily
Vim is unproductive as fuck. What you don't realize is the fact that proper balance of keyboard and mouse usage saves more time than using keyboard at all times.

1. You are in the src/ directory. You gotta make a quick edit in something inside the lib/ directory
>Vim way
Toggle to nerd-tree, select and open. Now good luck with minimizing multiple files, keeping them open and editing files synchronously.
>Better way
Hover your mouse to the project file, open stuff in tabs and edit all you want. QUICKER

2. Oh you have to change the name of a variable within certain block?
>Vim way
Either deal with with :'<,'> s/abc/def/g autism
Or install one of 4000 plugins that offers you the method below:
>Better way
Shift+double click variables, multiple curosrs will appear. Now rename them. You can also use find and replace function

3. You want to increase/decrease indent?
>Vim way
Oh okay consider this autism:
:>> or << [you gotta select them with v: first]
>Better way
Select, right click, in/decrease indent

4. You wanted to add/remove "//" or inline comment sequences?
>Vim way
Enjoy :'<,'>norm i// for commenting and :norm ^x for uncommenting
Or use one of the 7000 plugin scripts for such a basic functionality
>Better way
See 3

WHY?

Okay you might be wondering why should anyone use Vim?
1. Because it has more plugins than any other editor in existence. Most of them should come prepackaged or should be put into large meta packages.
2. Extremely configurable. Themes are abundant to cater to your taste.
3. Editing on a remote server.
4. Toggling to a terminal is easy, depends on your setup. Autists use Tmux and normal people just use a terminal emulator with a built in multiplexer/staking support.

Why can't someone clone vim that
1. Is compatible with (almost) all plugins
2. Has a native clickable GUI with tabs and project explorer?

>use GVim
It's trash, more than terminal vim
>>
File: 1494017261650.png (108KB, 2000x154px) Image search: [Google]
1494017261650.png
108KB, 2000x154px
>>60235248
>>
File: chen_gotta_go_fast.png (91KB, 571x279px) Image search: [Google]
chen_gotta_go_fast.png
91KB, 571x279px
>>60236179
I use Fortran quite a bit for scientific computing. It's fast as fuck.
>>
File: 1471924982592.jpg (1MB, 1333x2000px) Image search: [Google]
1471924982592.jpg
1MB, 1333x2000px
>>60236421
I'm literally in the same boat as you, anon
>>
File: acidkaaba.jpg (141KB, 1500x1500px) Image search: [Google]
acidkaaba.jpg
141KB, 1500x1500px
>yfw you realize Kotlin exists
>>
>>60236433
What's the bird?
>>
>>60236478
Swift.
>>
>>60235961

By the looks of things, that's an ARM CPU.
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc1700-cortex-m3/512kb-flash-64kb-sram-ethernet-usb-lqfp100-package:LPC1768FBD100

Fairly reasonable to use with Rust.
>>
>>60236482
>Rust programmer
>(male)
You're not fooling anyone.

>>60236497
You're not fooling anyone either.
>>
File: 123abc why are you reading me.png (58KB, 333x253px) Image search: [Google]
123abc why are you reading me.png
58KB, 333x253px
>>60236478
Thanks for the Swift response.
>>
>>60236513
An almost Swiftian joke in its subtlety.
>>
>>60236497
Ruby, my man! How goes the gem mining?
>>
Remember that:

OSGTP = mummy
Ruby = daddy
nv = doggo
>>
>>60236504

The fuck are you on about?

>>60236572

Mining?
>>
>>60236618
Rubies are gems. One finds gems by mining.
>>
How woudl i go about making a raspberry pie power a tardis console prop?
>>
>>60236617
i thought ruby was a girl and osgtp a guy?
>>
>>60236802
Ruby is a girl (boy)
>>
>>60236802
Ruby's a girl (male) getting a doctorate in computational genders dysphoria studies.
>>
File: kysfaggotslearndatasmr.png (4MB, 2032x1151px) Image search: [Google]
kysfaggotslearndatasmr.png
4MB, 2032x1151px
>>60236052
>>60236404
>>
>>60236826
>>60236821
Wrong, Ruby is a man (female).
>>
you wouldn't program a car
>>
File: girl.png (119KB, 563x378px) Image search: [Google]
girl.png
119KB, 563x378px
>>60236841
That's not what his pics on IRC tell me.

>>60236861
You don't even know the full extent of my madness.
>>
>>60236861
you wouldn't program a cdr
>>
>>60236897
idgaf about your fucking yiff erp irc, you can malloc() all you want with your bullshit libraries until you actually learn into coding
>>
>>60236826

I am a man (male) who is currently finishing up a master's degree in computer science. I will be beginning my doctoral studies in computer science in August. My research concentrations are primarily in software security and computer architecture. To some extent, I am also interested in programming languages/compilers.
>>
File: lurk_more.gif (2MB, 1100x800px) Image search: [Google]
lurk_more.gif
2MB, 1100x800px
>>60236916
I hope you didn't take my post seriously
>>
>>60236952
You're a mailman?
>>
>>60236958
No, she's a mailwoman
>>
File: screenshot.png (123KB, 1366x768px) Image search: [Google]
screenshot.png
123KB, 1366x768px
3d acceleration using the SIMD extensions in Aarch64
>>
>>60236952
That gender dysphoria will fug you up evidently

>>60236964
WRONG
She's a mailwoman (mailman)
>>
>>60236952
Why do you have a girl's name?
>>
counting sort uses element values as indexes of an array, which is made to contain the occurrences of all elements with values less than or equal to its index. then the initial list is iterated through backwards, and this array of occurrence counts is used to find where to put the value into a third array, which is then returned

do i have that right? this is complicated as fuck
>>
File: smug_ran.jpg (632KB, 709x1063px) Image search: [Google]
smug_ran.jpg
632KB, 709x1063px
>>60236952
How do you feel about the probability that the commercial implementation of quantum computers may make everything you've studied for obsolete and make you unemployable?
>>
>>60236952
then why do you use a female programming language used by cute girls like this? https://www.youtube.com/watch?v=gTBCHu0btn8
>>
>>60235393
Not that guy but I was about to ask whether it's usual to expect to pay >$100 for K&R.
Then I took a gander at Amazon US and saw it was a third of the price over in the states.
>>
File: 1490204973211.png (293KB, 700x700px) Image search: [Google]
1490204973211.png
293KB, 700x700px
>>60236953
>i lost an argument so i was actually just le trolling xd

just jump infront of a train
>>
>>60237075
>it's usual to expect to pay >$100 for K&R.
No. Download PDF and read it in your tablet
>>
>>60237086
why would someone who is anonymous try to save face
>>
>>60237086
I'm so very confused right now. I didn't even know there was an argument taking place
>>
>>60236994
are you taking a data structures and algorithms course?
>>
I have something like this:

#include <functional>

using namespace std;

/*
...
*/

template <typename T>
class my_class
{
public:
my_class(function<void(T)> func, T value)
: my_value { value }
{
my_func = [func](T obj) { func(obj); };
}

/*
...
*/

private:
T my_value;
function <void(T)> my_func;
};


I am able to construct my object doing this:

my_class my_object { some_function, some_value };


Shouldn't it be ilegal? Isn't curly braces used only for initializer lists?
>>
>>60237172
May or may not be illegal in the latest standard
>>
>>60237075
100 fucking dollars? i bought my paper copy for like, $15
>>
>>60237094
I appreciate PDFs and tablets are the sensible, convenient and otherwise correct choice but I really hate reading books from screens.
Hence I'm willing to put down cold hard cash for a physical paper copy. Just not $100 willing.
It'll just have to be the second-hand $30 willing, instead.
>>
>>60237164
no, i took one last year, and an algorithms class that same year. it's all a bit of a blur, going through the intro to algorithms book again to get it all locked down in my head
>>
>>60236985
But I don't experience gender dysphoria. I am perfectly content as a man.

>>60236987
I actually used this name initially in a Pokemon RP thread on /vp/ as the character Ruby from the comics. Ruby, incidentally, is the male protagonist from Ruby/Sapphire. I kept the name after those threads died out because I liked it, and because I was learning the Ruby programming language.

In any case, the name is actually gender neutral, as Ruby is a nickname for those with the given name Reuben (no, this is not my real name).

>>60237013
All a quantum computer means for my career is more things to research, which I look forward to. Here's some ideas that might merit research: can we use the same programming languages effectively on a quantum computer, or would new languages better suit it? If so, what properties should those languages have? Can we use any of the same optimization techniques in compilers for said languages, and if so, which ones? What does an operating system for a quantum computer look like, if one is to be used at all, and how should it differ from modern operating systems? What sorts of security concerns might there be?
>>
File: Yakumo.Ran.full.2040274.jpg (483KB, 700x980px) Image search: [Google]
Yakumo.Ran.full.2040274.jpg
483KB, 700x980px
>>60237330
Quantum Turing machines are basically classical Turing machines that uses linear combinations of qubits instead of bits and take operators instead of instructions; their differences are mostly be on the lower level.
The problem here lies in the fact that most (if not all) software security research is done with respect to classical computers and implementations (since engineers follow money instead of actual knowledge), which means that once quantum computing becomes commercially viable the entirety of classical complexity theory will see a revolution and that everything you've learned will become obsolete. You can keep researching and playing catchup all you want but the fact remains that, at that stage, no one is going to hire a supposed "postdoc" who hasn't even undergrad knowledge of quantum mechanics.
>>
>>60237496
this was such a useless post. he can just learn quantum mechanics then, like everyone else will be having to do. knowing classical computing won't be a negative, i'm not even an academic and you're obviously insecure that he's getting a masters. anime posters need to be gassed
>>
Who cares about quantum, np-complete shit will still be np-complete shit.
>>
File: 1494032134142.jpg (141KB, 1024x683px) Image search: [Google]
1494032134142.jpg
141KB, 1024x683px
Bubble sort yourself out.
>>
>>60237557
>not quantum bogosorting your problems away
>>
>>60237496

>the entirety of classical complexity theory will see a revolution and that everything you've learned will become obsolete.
This might be true if I were studying cryptography. Complexity theory is less relevant to other aspects of security. For instance, there is a lot of research going on right now about how to protect smart grids from getting fucked nine ways to Sunday by targeted malware attacks, like Stuxnet. Vulnerabilities exist whether regardless of how fast software is able to run.
>>
>>60235705
needed vim commands:
>:q!

Sir you have >tmux ?
>>
>>60237612
Solution: Don't use smart grids
>>
>>60235705
vim is just a text editor so it can't do 1 without multiple windows, but what are you talking about not being able to uncomment and unindent? genuinely don't know what you're talking about
>>
Looking to sharpen my skills in C++. Haven't done shit with it in a while and I'm looking for a relatively simple project to help me get back into it. Any ideas?
>>
Hey /dpt/, excuse the upcoming blogpost and dumb question but please bear with me.

I want to start programming, as I'm fairly competent at math and it seems like something I would enjoy. I decided I wanted C to be my first language. It seems like a highly flexible language and I hear it will "teach you how computers work", which intrigues me.

I picked up K&R, knowing that I might not understand some programming concepts it requires me to learn beforehand (which I do not.) My question is this: what book/s should I pick up to learn C from scratch? I do not mind if it is a PDF or an online guide, though from my experience I seem to be able to comprehend information better when it's on paper. Any help would be highly appreciated. Thanks.
>>
>>60237627

Yeah, that'll be a hard sell. Even still, malware is going to be an issue on any platform, quantum or not.
>>
>>60237660
what platform are you using?
>>
>>60237677
On my current PC I am running Windows 7, and on my ThinkPad I am running Xubuntu.
>>
>>60235282
Microcontrollers are so addicting.

There's something about seeing your code escape the confines of a computer screen and actually affect things in the world.

I've been learning to program the Parallax Propeller the past week. Spin is a fucked language but it does suit the chip quite well.

After seeing a couple posts about it here, I also picked up the SiFive HiFive1, an arduino compatible dev board with the first "real" open source RISC-V chip.

Was also thinking about loading up some bare-bones interpreted language (probably Forth over Lisp though for performance reasons) and building a rudimentary OS on top of it, with an eventual goal of 80s-like computing.
>>
>>60237634
Bumping
>>
>>60237853
Learntris. Chip-8. Lisp or some other interpreter. Web app.
>>
Easiest place to learn to code C++ online?
>>
I get this isn't the best place to ask this but I'm having some trouble with make on windows.

Everything was working fine and then just yesterday it stopped. I just want to have make run a command to compile something so I added that program to my PATH and it was working fine, no errors. Then all of a sudden it stopped working and couldn't even find the command rm. I fixed that but now I'm still stuck with it not adding directories to bash's path variable and I have no idea why.

make is using git's bash which is probably what it was using before. I tried putting some .profile files in my home directory but they don't seem to do anything.

Any ideas?
>>
>>60237909
All the good resources are about 10-15 years out of date, and you don't really want to learn programming 10-15 year out of date C++ unless you're doing embedded with toolchains provided by vendors that don't give a fuck so don't support modern C++.

Are you new to programming in general? Or do you already know how to program at least somewhat well? If the latter, then just get one of Stroustrup's books. If the former, then god help you.
>>
File: chen_class.png (92KB, 532x391px) Image search: [Google]
chen_class.png
92KB, 532x391px
>>60237853
1. Write a numerical scheme for contour integration that checks for singularities and branch-cuts and returns the principal value.
2. Write a routine that solves a system of first-order ODEs and returns the plot and the approximate attractor.
3. Write a symbolic manipulator that computes the Jones polynomial of an oriented framed link.
>>
>>60237722
on your thinkpad compile the helloworld.c programs with gcc -o helloworld helloworld.c and run with ./helloworld. just tinkering with the source code in each chapter should let you learn the basics. see what works you know
>>
>>60237963
This is a non-answer and probably isn't the answer you want to hear, but seriously, just get a *nix. Don't even have to duel boot, just get virtualbox and install it there. I recommend TrueOS. But if you don't mind botnet and shitty Linux then Ubuntu too.
>>
File: A E S T H E T I C.gif (273KB, 1000x1000px) Image search: [Google]
A E S T H E T I C.gif
273KB, 1000x1000px
/G/ AND RUST FAGS TOLD ME IDIOMATIC LANGUAGES ARE SUPPOSED TO BE A GOOD THING, I AM JUST PASSING BY AND PROVIDING IDIOMATIC AND AESTHETICS.
HTTPS://WWW.YOUTUBE.COM/watch?v=cU8HrO7XuiE
       IDENTIFICATION DIVISION.
PROGRAM-ID. FIZZBUZZ.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS1-NUMBER PICTURE 999.
01 WS2-REMAINDER PICTURE 9.
01 WS3-REMAINDER PICTURE 9.
01 WS4-TRASH PICTURE 99.
01 WS5-TRASH PICTURE 99.
01 WS6-REMAINDER-SUM PICTURE 99.

PROCEDURE DIVISION.
BEGIN.
PERFORM CALCULATE
VARYING WS1-NUMBER FROM 1 BY 1
UNTIL WS1-NUMBER IS EQUAL TO 100.
CALCULATE.
DIVIDE WS1-NUMBER BY 3
GIVING WS4-TRASH
REMAINDER WS2-REMAINDER.
DIVIDE WS1-NUMBER BY 5
GIVING WS5-TRASH
REMAINDER WS3-REMAINDER.
ADD WS3-REMAINDER TO WS2-REMAINDER GIVING WS6-REMAINDER-SUM.
IF WS6-REMAINDER-SUM IS EQUAL TO ZERO
DISPLAY 'FIZZBUZZ'
ELSE
IF WS3-REMAINDER IS EQUAL TO ZERO
DISPLAY 'BUZZ'
ELSE
IF WS2-REMAINDER IS EQUAL TO ZERO
DISPLAY 'FIZZ'
ELSE
DISPLAY WS1-NUMBER.
>>
>>60238008
I've got many *nix systems and even had macOS running at one point in virtual machines.

If this doesn't get fixed and keeps annoying me I might have to but until now I've never had any issues what so ever.
>>
>>60235644
t. Pajeet
>>
>>60237972
I'm familiar with Python and C++ only because I'm pursuing a degree in Computer Engineering and had to take classes on both, and I have an interview for an internship this coming tuesday and im not exactly sure what to expect. I talked with them over the phone and they seemed excited to learn that I knew C++ and they mentioned that most students they get for their internships already know C++, but the company uses Java and they are willing to teach everyone the language.

I'm not sure whether they are going to test my knowledge on C++ or what, and since I took the class a year ago I feel like I've forgotten some of the more important things about it. We used school computers to write it for the class and im unsure how to code with it on one of my personal computers.
>>
>>60237999
Thank you for the response. I shall do that now.
>>
File: 1472860069099.png (185KB, 600x979px) Image search: [Google]
1472860069099.png
185KB, 600x979px
>>60237963
Yeah OK i think I'll be killing myself bye everyone I'm a fucking idiot.
>>
hey /g/

im trying to make a makefile for the first time in years, however when i run it, a bunch of compiler errors occur which dont happen if i execute the same gcc command at the terminal. what did i do wrong?
>>
>>60238072
yep no problem. if you don't have gcc look up installation instructions. it would probably be sudo apt-get install gcc, but i can't imagine your system doesn't have it
>>
File: BELIEVE.gif (386KB, 720x340px) Image search: [Google]
BELIEVE.gif
386KB, 720x340px
WE WUZ INDENTATION AND SHEEEEEEEEIT
HTTPS://WWW.YOUTUBE.COM/watch?v=8GW6sLrK40k
       IDENTIFICATION          DIVISION.
PROGRAM-ID. AESTHETIC-FIZZBUZZ.

DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS1-NUMBER PICTURE 999.
01 WS2-REMAINDER PICTURE 9.
01 WS3-REMAINDER PICTURE 9.
01 WS4-TRASH PICTURE 99.
01 WS5-TRASH PICTURE 99.
01 WS6-REMAINDER-SUM PICTURE 99.

PROCEDURE DIVISION.
BEGIN.
PERFORM CALCULATE
VARYING WS1-NUMBER FROM 1 BY 1
UNTIL WS1-NUMBER IS EQUAL TO 100.
CALCULATE.
DIVIDE WS1-NUMBER BY 3
GIVING WS4-TRASH
REMAINDER WS2-REMAINDER.
DIVIDE WS1-NUMBER BY 5
GIVING WS5-TRASH
REMAINDER WS3-REMAINDER.
ADD WS3-REMAINDER TO WS2-REMAINDER
GIVING WS6-REMAINDER-SUM.
IF WS6-REMAINDER-SUM IS EQUAL TO ZERO
DISPLAY 'FIZZBUZZ'
ELSE
IF WS3-REMAINDER IS EQUAL TO ZERO
DISPLAY 'BUZZ'
ELSE
IF WS2-REMAINDER IS EQUAL TO ZERO
DISPLAY 'FIZZ'
ELSE
DISPLAY WS1-NUMBER.
>>
>>60238124
You have to remember that make spawns a clean shell instance for every command it runs, things like bashisms and environment variables don't persist between shells unless they're defined in make.

Post your makefile.
>>
>>60238124
nevermind. not sure why this was happening, but it stopped.
>>
just upgraded my shit to binutils 2.28 and gcc 7.1. now when I compile I'm getting a long list of "undefined reference to '_environ'".
digging around in the libc source I find a lot of declarations (extern char** _environ) but no definition. anyone know where that stuff is supposed to be defined?
I know it's probably a misconfigured linker or something but I need to know which part it isn't linking.
>>
>>60238132
what is this, cobol?

Companies are going to have to rewrite their garbage cobol code someday when the last cobol programmer dies out.
>>
>>60238144
what's the point of makefiles, why not just use a bash script?
>>
>>60238192
Make works on any shell?
>>
>>60238192
make automates a bunch of things that are convenient in compiling software projects, both small and large
It works by describing the end result you want, and the requirements needed to produce that result.
The simplest example is something like
>i wanna compile "prog"
>prog requires thing.o and main.o
>thing.o requires thing.c
>main.o requires main.c
then you describe how to compile your individual compilation units using automatic rules that remove the need to define every file manually.

A good makefile grows with your project and doesn't require you to manually type in source files to compile.
Even something as simple as wildcard removes most of the headache of a bash script.
>>
>>60238185
yeah, it is a good language to take a piss upon faggots presenting "idiomatic features" as a positive thing. the thing is that i am starting to like cobol as i learn/shitpost though.
>>
File: languages3.png (17KB, 522x384px) Image search: [Google]
languages3.png
17KB, 522x384px
>>
>>60238293
fucking code tags
C   71++C
+ 1
+ +
1 +
71++C++17
+ 1
+ +
1 +
C++17 C
>>
>>60238307
alt-C, nerd
>>
>>60238253
wtf are "idiomatic features"?
>>
>>60238063
Then I'd recommend Stroustrup's C++ Programming Language, make sure it covers C++11.
>>
>>60238335
He's a retard.
COBOL literally fries your brain.
>>
>>60235248
What boards are these?
>>
>>60238352
It says on the PCBs.
>>
>>60238335
ask rust fags, they rust can't compete against cobol.
>>60238349
because another retard told so and you took it as true like a good molested boy.
>>
>>60238293
haskell doesn't actually have fast development, because that would require people to know haskell
>>
>>60235248
Which shield/board are you using?
>>
>>60238372
Then what is the shield / expansion board it is on?

>60238431
Is not me.
>>
>>60238345
cheers man
>>
>>60238431
>>60238372
>>60238447
Nevermind I found it.

>Mbed NXP LPC1768
>mbed Application Board
>>
>>60238469
>>
>>60238702
fucking cocksucking board stripped my emojii.

Probably for the best or faggots like me would turn the boards into shitmoji supreme faggot central.
>>
What's a good simple C ide for Windows?
>>
>>60239189
codeblocks
>>
>>60235248
On a linux machine, if I wanted to read data from a thermal sensors I would do something on the lines of `cat /sys/class/thermal/[...]`. How would I do this on a Mac? Please no "Just download iThermal (tm) ;)".
>>
>>60239286
And no, I don't have a Mac.
>>
>>60239286
>>60239293
you could put the back of your palm on it and try to gauge how warm it is
>>
>>60239189
I use clion.
>>
>>60235353

Do edX cs50
>>
File: 2017-05-05-230617_573x694_scrot.png (47KB, 573x694px) Image search: [Google]
2017-05-05-230617_573x694_scrot.png
47KB, 573x694px
How do I implement this?
>>
File: ran's_DMRG.png (1MB, 900x1440px) Image search: [Google]
ran's_DMRG.png
1MB, 900x1440px
>>60239909
That looks like a bifurcation diagram.
The general method is to let f and g be such that (x_{n+1},y+{n+1}) = (f(x_n,y_n), g(x_n,y_n)) and solve the system of nonlinear equations (x*,y*) = (f(x*,y*),g(x*,y*)) with Anderson accelerated Picard. However there are symmetries you can exploit that allows you to simplify calculations (e.g. the duality (x,y) → (-x,-y) which you could use to look just at parameters above y = x line).
>>
File: IMG_20170506_022748927.jpg (3MB, 4160x2340px) Image search: [Google]
IMG_20170506_022748927.jpg
3MB, 4160x2340px
Anyone here working with FPGAs/HDLs?
>>
File A:
#include <stdlib.h>
void (*vec)(void) = NULL;
void test(void)
{
(vec ? vec : abort)();
return;
}


File B:
#include <stdio.h>
void fn(void)
{
puts("in fn()");
}
void test(void), (*vec)(void);
int main()
{
vec = fn;
test();
}


Output:
$ ./a.out 
in fn()
in fn()
Segmentation fault: 11


whats the cause of this? Apple LLVM 7.3.0
>>
>>60240093
I would love to but I am a brokefag max.
>>
>>60240093
i was playing around with my cyclone 3 but then i became busy
>>
>>60240147
Lattice makes some great cheap evaluation boards, the one I have there is only like twenty bucks. A little limited as far as IO, up to 24 PMOD if you solder a header on.
>>
File: 2017-05-05-234521_581x685_scrot.png (17KB, 581x685px) Image search: [Google]
2017-05-05-234521_581x685_scrot.png
17KB, 581x685px
>>60240043
its probably some form of strange attractor

heres a simpler version. No speciall equations needed just the formulas here

the thing I'm not getting is how to actually iterate through it. Like...seems to me it would just end up going along the diagonal of x,x
and yet here it seems to fill half the space

afaik this is 10 iterations btw
>>
I'm doing one of those phone wallpaper shaders.
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor&hl=sv
I want to shade some things based on the light sensor but its moving too rapidly to produce a pleasing effect. So I want to accumulate a portion of the change. But there's no way to save things in this editor without using the backbuffer, so I'm gonna use a pixel in a corner of the screen to save the result instead.
vec4 prev=texture2D(backbuffer, gl_FragCoord.xy/resolution.xy);
gl_FragColor=vec4(mix(vec3(light),prev.xyz,0.99),1.0);

So I have this in an if statement that gets me the one pixel.
The t value (0.99) should move me 1% towards the final light value every frame so that's about 2 seconds of fade.

It works well when I go from full bright to dark but when I go from dark to bright it snaps instantly to bright. I don't see how.
>>
File: logistic-bifurcation-med1.png (47KB, 613x393px) Image search: [Google]
logistic-bifurcation-med1.png
47KB, 613x393px
>>60240043
That is not a bifurcation diagram. A bifurcation diagram shows how the fixed points of a system evolve as a given parameter changes. There are no parameters on that equation.

The plot seems to be just the simulation of such system. Just set initial conditions (x0, y0) and run those equations on a loop several times.
>>
File: 1493954395996.png (236KB, 808x805px) Image search: [Google]
1493954395996.png
236KB, 808x805px
>>60240234
but what indexes of x and y tho?

oh fuck I think I just might have gotten it...gonna try something...
>>
File: chen_stuck.png (23KB, 388x258px) Image search: [Google]
chen_stuck.png
23KB, 388x258px
>>60240234
Yeah I figured after his retarded second question.
>>60240244
>but what indexes of x and y tho?
Lol.
>>
>>60240262
well?
>>
>>60240262
Nerd
>>
>>60240302
>friday night
>on /g/
>calls someone a nerd.
>>
Anyone have know of good tutorials for ad placement within apps?

I'm prepared to launch two apps build with js through cordova but am having troubles placing ads because I'm not a creative person.
>>
>>60240306
Ackshually it's Saturday morning
>>
File: Yakumo.Ran.full.1170117.jpg (761KB, 664x1000px) Image search: [Google]
Yakumo.Ran.full.1170117.jpg
761KB, 664x1000px
>>60240294
//The faggot dualist:
void main(args* char)
{
double x = 0.5;
double y = 0.5;
int nmax = 1000;
std:vector<double> data[nmax];
for(int n=0;n<nmax;n++)
{
x = (1 - abs(x - y))**2;
y = sqrt(1 - abs(1 - x - y));
data[n] = {x,y};
}
write(data,"c\\path")
}
>>
>>60240360
Er, use auxiliary variables x_temp, y_temp like
x_temp = x;
y_temp = y;

x = (1 - abs(x_temp - y_temp))**2;
y = sqrt(1 - abs(1 - x_temp - y_temp));

in the loop.
>>
>>60240360
thats 1 dimensional tho
plot it in 2D and lets see it look the same
>>
File: Yakumo.Ran.full.1170052.jpg (359KB, 1000x1000px) Image search: [Google]
Yakumo.Ran.full.1170052.jpg
359KB, 1000x1000px
>>60240437
>that's 1 dimensional tho
Are you retarded? The data vector stores a 2D vector at each entry.
>>
File: 1474325315193.jpg (44KB, 636x616px) Image search: [Google]
1474325315193.jpg
44KB, 636x616px
Employed Haskell programmer reporting in
>>
File: lucoa_sweater.jpg (199KB, 850x1202px) Image search: [Google]
lucoa_sweater.jpg
199KB, 850x1202px
>>60240447
>>
>>60240447
yea fine 2 dimensional technically but its shape is (2,1000) instead of (100,100). Its just a truth value table of x and y, would be just diagonal if you plotted it, and could be flattened to 1 dimensional line.
>>
>>60240468
actually you should have set nmax to 10000 or 100 and have it be 10x10

either way I don't believe you know what you're talking about
>>
File: ran_disgust.png (53KB, 204x288px) Image search: [Google]
ran_disgust.png
53KB, 204x288px
>>60240468
>this fucking retarded
Holy shit talk about the pinnacle of codemoneyism.
>>
>>60240496
fucking plot it

I don't believe you actually solved it
>>
>>60240496
>won't even plot it
faggot
>>
File: 1490688272288.png (59KB, 512x512px) Image search: [Google]
1490688272288.png
59KB, 512x512px
>>60240496
>still no plot
havin some trouble there?
>>
>>60235353
SICP (you'll have to know some calculus first)
>>
>>60240675
SICP is seriously the best book to learn programming.

Literally takes you from your first line of code to exploring some of the most fundamental concepts of CS.
>>
>>60235862
C the shit (as in see the shit)
>>
>>60236249
know about, acknowledge their existence
>>
>>60240496
You're wrong actually.
>>
File: 1374218894255.jpg (27KB, 533x388px) Image search: [Google]
1374218894255.jpg
27KB, 533x388px
import re, string, itertools
users={}
def find_match():
def strip(Input):
return [''.join([ww for ww in x if ww.isalnum()]) for x in Input]
def check(a,b):
if len(set(strip(users[a])) & set(strip(users[b]))) >=1:
return a,b, set(strip(users[a])) & set(strip(users[b]))
for a, b in itertools.combinations(users, 2):
w = check(a, b)
if w != None:
del users[a], users[b]
return w[0], w[1], w[2]
return


def connect(user_hash,tags):
tags = [str(x) for x in tags]
users[user_hash]=tags
match = find_match()
if match != None:
print('Matched: "{}" with "{}" \nTags are: {}\n'.format(*match))
connect('laksdf',[1,'†a'])
connect('skldfj',[2,'a'])
connect('skldej',[2,'a'])
connect('skzdfj',[2,'a'])

This should connect the users based on matching tags. Is this OK or is it too unreadable/complicated? Seems to work fine right now.
I want to return the special symbol to the both participants, '†a' and 'a' match. Probably not worth it for something that silly.
All I really have to do now is add this to the rest of the code.
>>
Quick question:
>How much do you expect the undo operation in a Hex Editor to undo?

Should you you be able to undo every changed byte separately or should it group edited/inserted/deleted blocks of bytes together to a single undo?
>>
>>60235705
:tabe newfile
>>
Hello fellow Dfags.
DConf is on right now and there's a livestream: https://www.youtube.com/watch?v=XTtruC3D2Ag
>>
File: dlang_chan_ayy_lmao.jpg (59KB, 339x339px) Image search: [Google]
dlang_chan_ayy_lmao.jpg
59KB, 339x339px
>>60241359
I'll be watching it tomorrow
>>
File: 1482123934926.jpg (14KB, 310x464px) Image search: [Google]
1482123934926.jpg
14KB, 310x464px
I'm trying to write some simple astronomical modelling bullshit in C by autistic K&R standards to ensure compatibility with a wider range of compilers. Some orbital calculation functions in particular are pretty simple:
double perihelion(double sma, double e)
{
return sma * (1.0-e);
}

But is this good practice to return even simple computation results like this directly? Or should I declare a variable first like:
double perihelion(double sma, double e)
{
double r;
s = sma * (1.0-e);
return r;
}

And perform everything separately?
>>
I created debian vbox to use for programming and its so comfy. I get to run whatever as my main distro and have stable versions for devel and no 1000 folders cluttering everything.
>>
>>60241630
please anon
double perihelion(double sma, double e)
{
double r1;
double r;
r1 = 1.0 - e;
r = sma * r1;
return r;
}
>>
>>60241833
This is good autism.
However, I got off my ass and grabbed my K&R and there are a number of examples that return values without declaring anything, so it seems I'm alright with a one-liner.
>>
I need some interesting project to kill some time, nothing too large since i have other shit to get into soon enough.
I'd prefer something actually useful, like utility program or something. Not some useless shit like conway, chip8 etc.
>>
File: 1483533362703.png (94KB, 396x395px) Image search: [Google]
1483533362703.png
94KB, 396x395px
>>60235248
What is the best FP language invented up to this point? Doesn't matter if it doesn't even have a compiler.
>>
I want an arduino but I don't want to get one without a multimeter... and an oscilloscope... and breadboard.. and components

>it's only $30 anon!
>>
>>60241932
coq
>>
File: jerry-fuzz.png (118KB, 732x446px) Image search: [Google]
jerry-fuzz.png
118KB, 732x446px
>>60235248
>This
Die Jerry, Die IoT...

In all seriousness, dropping IoT remote denial of service/remote code execution 0 days. Jerry is my latest victim
>>
>>60242001
How does it compare to Agda?
>>
>>60242036
I was just looking
https://en.wikipedia.org/wiki/Dependent_type#Comparison_of_languages_with_dependent_types
I don't know the real difference. But I'm looking for a non lazy dependent type with optional termination proof.
>>
File: 1404238251178.png (173KB, 501x576px) Image search: [Google]
1404238251178.png
173KB, 501x576px
Does anyone have any good ressources for going from beginner to somewhat not total beginner anymore?
Im german and ive been learning dev for a while now, but our tempo is ridicolously slow.
I tried some books, but none of them really give you any tasks or ideas of what to program, its either just "this is an array btw" or "this is complicated thing that i have no idea where or how to use" and then onto the next thing.

i feel so stuck, i can do simple programs like reading information out of a database, displaying them nicely, edit them etc. But as soon as something goes beyond that im lost as to how do to it all and how to structure it.

i tried to make a turn based fight, i thought i structured it pretty fucking well, but i ran into simple problems like making the logic wait till the player decided on an action.
>>
>>60242089
Make an IPv6 NDP spoofer, basically to do MITM attacks on IPv6 networks.

Bettercap have tried at one...also make it multi threaded and don't give the bullshit excuse that you can't do it for the whole network...figure it out.

Once complete I'll talk to you again, Python/Ruby ploz
>>
File: 0000000dog.png (496KB, 484x470px) Image search: [Google]
0000000dog.png
496KB, 484x470px
>>60242107
>>
>>60240856
that code looks pretty awful desu
>>
>>60242048
>I don't know the real difference.
I've heard that proofs in it get longer because it doesn't have tactics.
>But I'm looking for a non lazy dependent type with optional termination proof.
Same here, but I would prefer mandatory termination.
>>
>>60242220
>Same here, but I would prefer mandatory termination.
Use coq in that case.
>>
>>60235393
why do people keep suggesting C to people who want to learn programming
they would want to learn the fundamentals of programming BEFORE learning architecture fundamentals
no, pointers aren't fundamental to programming
algorithmic thinking is fundamental
>>
>>60242271
>no, pointers aren't fundamental to programming
Yes they are, idiot.
>>
>>60238293
>haskell
>fast development
LOL
>>
>>60242271
>algorithmic thinking
I think this might be the most retarded programming related buzzword I have heard yet. Any non-mentally ill child is already capable of following step-by-step instructions.
>>
>>60242351
how come most of the popular languages don't have pointers.
>>
>>60235644
>Indentation is one of the least important things in a language or in programming.
Have you ever used Python?
>>
>>60242400
>following step-by-step instructions
as an engineer you have to develop those instructions. only code monkeys and front end engineers think of it as a buzzword
>>
>>60242400
that buzzword encompasses more than just step by step instructions, friend
>>
>>60242405
Most do, but in a weaker, less useful form. "References" or whatever.
Pointers themselves are extremely fundamental to how computers work, but the more general idea of indirection is what is fundamental to programming.
>>
File: yall-motherfuckers-need-science.jpg (68KB, 650x500px) Image search: [Google]
yall-motherfuckers-need-science.jpg
68KB, 650x500px
>>60235448
THANK YOU!!!!!
>>
>>60242420
>as an engineer you have to develop those instructions
That would require an above average IQ. You claimed that it is fundamental to "programming", but "programming" is merely another word for what code monkeys and web "devs" do.
>only code monkeys and front end engineers think of it as a buzzword
It is quite literally a buzzword since it's entirely meaningless.

>>60242425
Which is precisely what I mean by "buzzword", It doesn't really mean anything concrete and it completely ignores the meaning of the words it's composed of.
>>
File: m.png (10KB, 896x202px) Image search: [Google]
m.png
10KB, 896x202px
this is so stupid that im getting triggered
>>
>>60242488
Rust doesn't have this problem
>>
>>60242454
>WeKnowMemes
Really now?
>>
>>60242480
you just aren't fit to understand the phrase in the context of the discussion
>>
>>60242501
except nobody uses it
>>
>>60242510
Except for the people that do
>>
The internet told me that haskell would be so amazing for concurrency etc, but according to the computer language benchmarks game there is not a single benchmark where haskell is >= C
>>
>>60242511
>people
you're LITERALLY admitting that it's a hobby language no company would ever touch
>>
>>60242520
What kind of autism does it take to make this big of a leap?
>>
>>60242507
Assuming it means what any normal person would infer it to mean, the meaning would be "the ability to think in terms of step-by-step instructions". The retard who posted it clearly thinks it means something different, which is the reason why it's a buzzword with no concrete meaning except what the retard who posted it wants it to be.
>>
>>60242532
let me just ignore what you said because i have no counterargument
>>
>>60242550
Exactly what you did back in >>60242510
>>
>>60240101
extern void (*vec)(void);
in file B instead of the internal linking that's done with the current version. Otherwise vec in File A is a different variable.
>>
>>60242556
your retarded
>>
File: 1484318253770.png (73KB, 1420x1635px) Image search: [Google]
1484318253770.png
73KB, 1420x1635px
>>60242601
no u
>>
How time consuming and difficult would it be to write a TUI library that has mouse click support?
>>
>>60242705
https://en.wikipedia.org/wiki/GPM_(software)
>>
>>60242705
Fork ncurses if it hasn't been done already.
>>
I want to shotgun approach my CG and system programming courses with one project. CG requires the project to be done in WebGL with some shitty JS frameworks I don't know shit about. How do I access Linux syscalls from JS?

I found this demo. https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html
Looks like it downloads and compiles something at the initialization. Idk if it's a part of the web app compiles on my machine and then runs while the controller/view stays in browser or what? If it's so then how much can I do with this? can I use my syscalls here, like open files, fork and maybe write a simple (local cause idk shit about networks) server that would communicate with multiple instances of my web app with POSIX/SystemV IPC?
>>
Should I learn Lust?
>>
>>60236242
You can still produce fast executables while using the GC. Check this out this repo : https://github.com/eBay/tsv-utils-dlang/
From what I've read about it, the dev(s) didn't fall for the nogc meme but still wrote the code with memory-related common sense in mind.

Here are some interesting articles about the GC in D :
https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/
http://dlang.org/spec/garbage.html
>>
@60243827
>POOlang
No, thanks.
>>
File: 4ca54cc678f6ba5185492abefeb29d22.png (926KB, 1028x768px) Image search: [Google]
4ca54cc678f6ba5185492abefeb29d22.png
926KB, 1028x768px
>>60243825
you can you can train your Lust skills on me
>>
>>60243825
Sure why not
>>
>>60235705
>1. Keep files open in different tabs and
:tabnew filename
Switch between tabs with gt. gT goes to the previous tab and gt goes to the next. You can also specify which tab to go to, eg 3gt goes to the 3rd tab, and so on.

>(un)indent
Indent with >> and unindent with <<. As with the other commands, you can specify the number of lines to unindent. Eg : 3<< will unindent 3 lines. You can also select the lines in visual mode then unindent them with <<.

>uncomment
No idea desu. Maybe use vertical selection or search and replace or something.
>>
>Suppose that the n records have keys in the range from 1 to k. Show how to modify counting sort so that it sorts the records in place in O(n + k) time. You may use O(k) storage outside the input array. Is your algorithm stable? (Hint: How would you do it for k = 3?)
i'm confused, i thought counting sort should be able to do with without modificiations?
>>
>>60243948
>D
>Vim
Do you use Vim Dutyl? Everytime I wanted to start the DCD server, the console went black no matter what my config was.
>>
>temporarily name variables any combination of 'poopoo', 'peepee', 'fuck', 'shit', 'ass'
>>
>>60243961
>>60244029
Source?
>>
>>60244001
>Dutyl
I haven't heard of it until you mentioned it just now. I'm currently using Vim without plugins, so I can't really say. Maybe check under "issues" to see if anyone ran into a similar problem : https://github.com/idanarye/vim-dutyl/issues
>>
I'm quite literally a codemonkey. I'm programming something and I'm spending more time thinking about how do I program something, scoping problems, how stuff interacts than on actual typing. I'm constantly rethinking everything, about how will it all work together when I add new features.

How do you guys plan ahead? I can only pace around my room so much before my knees give out.
>>
Why should you localise global variables in scripts?
>>
>>60244029
>how to always remain a toy project

a project i looked at had a global variable named "<founder name>isdumb" with no indication as to what it does and it made me lose interest quickly
>>
>>60241359
Wonder if they will address the GC.
Something else I'd like to see is if they will move away from the idea of having the standard library be implemented through the language features. It's something that seriously hurts C++. You don't get the same polish on a lot of features as you would if they took more liberties with it.
>>
NEW THREAD!

>>60244282
>>60244282
>>
File: 1397641437923.jpg (69KB, 625x576px) Image search: [Google]
1397641437923.jpg
69KB, 625x576px
>>60244203
>I'm quite literally a codemonkey. I'm programming something and I'm spending more time thinking about how do I program something, scoping problems, how stuff interacts than on actual typing. I'm constantly rethinking everything, about how will it all work together when I add new features.
Isn't that the opposite of a codemonkey?
>>
>>60244203
>>60244203
If you actually want to build something that will last, some forethought is required.
You'll spend more time thinking than actually typing.

This is why sloc as a measure of productivity is stupid as hell.
>>
>>60244295
I meant to say that It's hard for me to do that and I got used to so much pre-planned typing from my uni. I mean, if I know how to program some task right away I just do it, but If I don't have a clear goal I spend time thinking about it, losing hope, procrastinating and so on.
>>
>>60235448
It's true that people should aim to just start learning rather than worry a lot but python has too many hidden complexities. Asm doesn't. C doesn't.
Now you don't have to stick to those languages for long. But I think if you start there you can reason your way into a better understanding of other languages.
I also think that taking a broader understanding to programming as you would with C is useful to divide what you've learned into categories. Math does this expertly with notation often being invented for specific circumstances. Programming hasn't really gotten there yet.
>>
>>60236431
vim does most of the things you list out of the box.
If you really need the mouse, you can use it. You can also just use Nerdtree with a mouse, or open files from Nerdtree in new tabs.
Why is GVim trash?
Thread posts: 327
Thread images: 59


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