[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology

View post   

[ Toggle deleted replies ]
File: 105 KB, 473x496, prog.jpg [View same] [iqdb] [saucenao] [google] [report]
62203462 No.62203462 [Reply] [Original] [archived.moe] [rbt]

What are you working on, /g/?

Old thread: >>62196453

>> No.62203475

rewriting linux kernel in C

>> No.62203542

Trying to use windows.h to create a gui.

kill me.

>> No.62203544
File: 110 KB, 914x892, 1503687807072.jpg [View same] [iqdb] [saucenao] [google] [report]

second for programming is hard

>> No.62203580

I used to write some small GUI utilities in Win32AP using MASM32 15 years ago, it wasn't that hard IIRC, just tedious.

>> No.62203592

Linux is already in C...

>> No.62203610

>calls himself a programmer
>has more facebook friends than github followers

>> No.62203676

>anime thread

>> No.62203793

The quality of that image fucking infuriates me every time.

>> No.62203825

>calls himself a programmer
>has facebook

>> No.62204140

I'm writing a file manager in racket.

>> No.62204496

I create all my GUIs that way
it's great, what seems to be the problem?

>> No.62204676

Hey, /g/, tell me what you hate the most about my toy language:

>> No.62204677


>> No.62204687
File: 494 KB, 1000x1000, 1500972315269.png [View same] [iqdb] [saucenao] [google] [report]

If I wrote a book on combining functional programming with object oriented programming to get the best of both worlds, should I call it FOOP or POOF?

>> No.62204715


>> No.62204724

>best of both worlds
FP and OOP are incompatible. What you are imagining is just OOP, or what I've taken to calling it, OOP plus functions.

>> No.62204736


>> No.62204747

What does it do?

>> No.62204749

>or what I've taken to calling it, OOP plus functions.

>> No.62204767

>FP and OOP are incompatible

>> No.62204781

>Hey, /g/, tell me what you hate the most about my toy language:
how about you first say a few words about it
i am interested it looks really cool

>> No.62204782

It separates case pattern from body (like in scala and rust)

>> No.62204830

Recently I've really wanted to make an A.I. that would learn to play some simple games.
So just doing research on ai programming for now.

>> No.62204837

It's pretty much rust but without all that safety bullshit. It doesn't really have any innovative features, it just turned out, that making a compiler is fun as fuck and i have enough features i want to implement that i won't be bored for a year or so.

>> No.62204852

he's right, you know

>> No.62204861

what exactly do you compile to, what intermediate language do you use
i dont quite understand what's going on

>> No.62204899
File: 16 KB, 529x337, im killing myself.png [View same] [iqdb] [saucenao] [google] [report]

I'm going to kill myself now thanks

>> No.62204907

I'm outputting asm files (real men don't use llvm). I habe my own intermediate representation language, which i generate from ast, do some passes on it and then convert to assembly. Then i just invoke nasm to assemble it and gcc to link an executable for me (i couldn't get microsoft's link or mingw's ld to work).

>> No.62204927

Use butterknife.

>> No.62205025

>I'm outputting asm files (real men don't use llvm)
i did the same (code related), but mine is so much shittier and doesn't even have pointers, uses the stack too much and the assembly is slow, realistically speaking
admittedly i did it in two weeks, but still
how can i become as good as you
also, how long have you been progging
about 2 years for me

i want to maybe start over at one point and make it a usable language with pointers

do you do any sort of advanced register optimizations and 'planning' if you know what i mean or just do what's easiest to code? how does your lang compare to rust in terms of speed

really good job bro, it looks absolutely beautiful

@(function main () ()
(print_num (fibs_iter 10)))

@(function fibs (n) ()
(if (< n 2)
(+ (fibs (- n 1)) (fibs (- n 2)))))

@(function and (arg1 arg2) () (if arg1 (if arg2 1 0) 0))

@(function fibs_iter (n) (i a b tmp)
(= i 0)
(= a 0)
(= b 1)
(while (< i n)
(print_num a)
(= tmp a)
(= a b)
(= b (+ b tmp))
(= i (+ 1 i))))

also i like the name, it's rust-like, so oxidation

>> No.62205084

Isn't suicidal encouragement illegal?

>> No.62205132

>and make it a usable language with pointers
So, Golang?

>> No.62205144

first for Java

>> No.62205149

Make it a microkernel.

>> No.62205156

How does Rust do arrays?

>> No.62205174
File: 1.36 MB, 858x570, sdm7NFE.gif [View same] [iqdb] [saucenao] [google] [report]

When building a c# dll, is there any way to make the compiler work harder at optimizing the output, in exchange for longer compile times?
Just curious.

>> No.62205177

no, oop is a data abstraction technique where the data is hidden behind a procedural interface. nothing prevent you to make that procedural interface functional. you guys know nothing about PLT.

>> No.62205206

is not and will never be functional

>> No.62205225
File: 6 KB, 196x257, images.jpg [View same] [iqdb] [saucenao] [google] [report]

>reddit is no longer open-source


>> No.62205233

I stole a register allocation algorithm from some paper (it's called iterated register coalescing) but it's slow as fuck (most of the compilation time is taken by register allocator). I've been programming for quite a while now. Theoretically i started in primary school, though i obviously didn't make anything impressive then, so i guess i've been actually programming for about 7 years by now.
I didn't really try to benchmark it yet, and i don't do any optimisations yet so i bet it compares quite poorly to rust, but it shouldn't be terribly slow.

>> No.62205239
File: 29 KB, 421x391, 1499013692178.jpg [View same] [iqdb] [saucenao] [google] [report]

It took me all day, but I solved my issue with memory corruption causing seg faults.

It was because I passed a pointer to a local variable........

>> No.62205257

python's integer type is an example of functional objects.

>> No.62205277

>not newing on every mutator
dumb fpposter

>> No.62205288

This is a C question:
So I have a function pointer type defined as void (func)(void *x);

My function is void myfunc(int y);

Can I safely do func m = myfunc; m(5);
Or is it undefined?

>> No.62205321

You're doing it wrong. You want to take an address with &.

Probably, anyway.

>> No.62205322


>> No.62205357

Yes my bad.
myfunc(int* x)

>> No.62205367



Basically they're contiguous blocks of memory, typically on the stack, just like in C. If you want to pass them around, you use what's called a slice, which is just a struct containing a pointer and a length field.

If you index a slice or array out of bounds, the program panics, but this is only during debug mode. When you build in release, there's no bounds checking.


No part of object oriented methodology prevents immutability of objects. C++ can even be explicit about it by letting methods be declared const, making it a compile time error for any part of that method to mutate the object it is called on.

>> No.62205410 [DELETED] 
File: 9 KB, 524x107, 150335.png [View same] [iqdb] [saucenao] [google] [report]

hi /dpt/ - my visual studio got glitched, all of the sudden my My.settings stopped working (vb.net), it just underlines all "settings" and tells me pic related, what can I do to fix this?

>> No.62205427


They had to go closed source, so that they could hide their code designed to promote left-wing content and hide right-wing content.

>> No.62205473

Rust syntax seems a bit bloated and heavyweight but this is exactly how I'd expect a sane lang to do arrays, thanks.

>> No.62205498

im going to apply to some entry level database jobs in the coming weeks, but i cant figure out what kind of projects i can do with SQL for my portfolio? the job descriptions all list SQL, SSRS, MOSS

anyone have any recommendations?

im a CS grad that went the front-end route so my portfolio is full of javascript and php apps lol

>> No.62205565

Why do programmers bully webdevs? Is it because they make mad money?

>> No.62205583

why isn't 4chan opensource?

>> No.62205594

because they are bringing theirs bad practices to the desktop.

>> No.62205676

because webdev typically includes full-stack, front-end, and "designers"

front-end and designers arent real programmers. they're just professional copy and pasters. full-stack gets more programmy but they still rely too heavily on frameworks and libraries to do their work for them.

there are a shit ton of front-end people who use stuff like vue, react, node, etc. at work but dont actually have much experience programming in pure js. its absurd. if you can learn your profession in a matter of 5 hours from youtube videos, your job security is not good.

>> No.62205677

use SQL to make a rule system
basically you'll have your database entries, each one will have it's properties
then you'll make rules
like for example if you have a database of pornstars a rule could be

rule skinny
find height>175 and weight < 52

or something like that, i don't remember the SQL syntax right now
dont use pornstars though

>> No.62205722

im making a app for smart phones that allows people to procrastinate as efficiently as possible. you tap a button on screen that says procrastinate and it makes a sound like you did something but nothing happens

its going to revolutionize how people waste time at work and schools. i have angel funding already and it should be out sometime late next year. beta testing is proving to be time consuming

>> No.62205731

come on dude im 174

>> No.62205738

nice work, you app barista
I assume you are using react native for your thing?

>> No.62205745

Because webdevs were web designers a couple years ago, so they weren't considered programmers.
Now they call themselves programmers, they call FizzBuzz OMG MATH. It's them who spread rumours like programmers don't need to know math to be programmers.

>> No.62205854
File: 5 KB, 166x249, too dumb.jpg [View same] [iqdb] [saucenao] [google] [report]

Currently reading Design Patterns,

When they say Interfaces, they mean abstract classes right?

>> No.62205876
File: 44 KB, 636x616, 1474325315193.jpg [View same] [iqdb] [saucenao] [google] [report]

Employed Haskell programmer reporting back

>> No.62205896

interfaces are (sorta like) abstract classes without any implemented methods

>> No.62205943

What kind of a background are you coming from?

>> No.62205966


Rust, C++, and Ada are all rather verbose languages, but that verbosity usually has a purpose. When you write code in a systems programming language, it helps to be explicit about everything you do, so that it's harder to fuck everything up. You want to write fast code, but you also want to write code that does exactly what you intend with no derivations that could be caused by human error. It is always better to catch fuckups at compile time than at runtime in production when someone's life may be on the line.

>> No.62205991

Not familiar with Ada, but I fully understand your point. Weak typing is one of C's worst aspects IMO.

>> No.62205993

what do you do more specifically

>> No.62205996

Not a web developer (at least not exclusively) but I'm not that great at math either. Any recommendations for resources that might help me improve (specifically in regards to programming but I guess general stuff is okay too)?

>> No.62206017
File: 47 KB, 632x852, wojak_tired.png [View same] [iqdb] [saucenao] [google] [report]

ahh ok

Read Programming Principles and Practice using C++ around 2 years ago, spent the time in-between programming in Qt and Unreal

wanted to learn more about designing software architecture

>> No.62206039


Ada is anal-retentive, but trustworthy enough to run in airplanes and nuclear power plants.

>> No.62206061

So you're a C++ guy, makes sense.

Most OOP languages don't have multiple inheritance of classes. So they have the concept of an interface instead. An interface contains nothing but pure virtual functions. You can inherit from multiple interfaces. It's safer that way.

>> No.62206119

>m-muh print function
>m-muh interators
>fork the fucking language
>community is split

why are pythonistas so retarded?

>> No.62206133

You meant pytards?

>> No.62206153

I found this pearl in the Python standard library yesterday, apparently the zip library doesn't compress archives by default, it makes sense I suppose if you wanted to just archive files/folders in a zip but when do you not want to compress shit, apart from lossy objects.

>> No.62206237

Is tbere some chart of FOSS licenses?

>> No.62206244


>anyone have any recommendations?

Hell yes.

-Read "SQL antipatterns", it a really great book.

-Make a simple app and query the shit of of it.

-Learn about the pitfalls. SQL basic syntax is simple, but there are some nasty things (i.e. "NOT IT").

-Data structures. You should be able to set off a simple database with a few different values and their correct data type (date, number types, varchar, BLOB) without looking.

-Never forget that SQL is TENARY LOGIC. Learn how true/false/null are related to each other (logic table).

-Indexes (no, it's not called "indices"..). Many people don't bother with them, but it's so important to understand how and when to use an index.

-You should be able to explain the normal forms up until Boyce-Codd. Make up examples in your head. But also: learn some basics about denormalisation! When to use it? What are the advantages?

-Performance optimization is always good, but a big topic. If you how how to use properly use indexes you already know a lot. But if you are a real hotshot, get some basics about optimization.

-Backups/MetaData: Advanced topics. You are probably not supposed to know this, but you should know that these topics exist, if only to know what you NOT know.

-Stored procedures, triggers and PL/SQL: If they ask you about those.. run.

>> No.62206302
File: 80 KB, 710x473, 88f2hey0icjz.jpg [View same] [iqdb] [saucenao] [google] [report]

I-is this true, anons

>> No.62206330

>he doesn't know tail call optimisation
>he spreads literal facebook memes

>> No.62206332

Not if you use tail recursion optimization.

>> No.62206339
File: 87 KB, 1000x924, 1494813289305.jpg [View same] [iqdb] [saucenao] [google] [report]

>15 years ago
Jesus anon, I thought this board was for young people

>> No.62206352

Programming languages are so shitty that I'm currently evaluation the viability of non-java JVM languages as scripting languages, as well as other non-java JVM languages for desktop applications.
Fucking save me!

>> No.62206357

>writing code explicitly more complicated than it need to be in hope that the compiler might be able to optimize it

>> No.62206365

how old are you?

>> No.62206369

t. literal retard

>> No.62206376


>> No.62206382


>> No.62206429


>> No.62206430


Under certain circumstances recursion is a bad choice. But unless you are crazy shit in some special field like matrices or graphics, you'll be fine..


The greatest scripting language ever is Ruby.
The greatest JVM language is Clojure (you can also use SWING here, if you want some desktop things).

You're welcome.

>> No.62206471

Why Lisp is called sometimes to be non-true functional language?

>> No.62206475


Maybe you should take a look at non-C# .NET languages while you're at it. Actually don't. C# is okay; it's VB that sucks.

>> No.62206530

OOP seems like it'd be good to create different processes and communicate to each other. does it have facilities to do that easier than in C?

>> No.62206540


>It turns out modern operating systems already have nice, fast UI libraries. So use them you clod!
>Also all you web devs: Go learn C or Rust or something. Your program runs on a computer. Until you know how that computer works, you're doomed. And until then get off my lawn shakes fist.

I like this guy. And maybe we should be converting all of those JS programmers to Rust programmers. At least then we'll have faster programs (even if they use a bunch of crappy micro-libs)

>> No.62206543

What do you mean?

>> No.62206570

thanks anon, i didnt expect such a detailed response.

the places im applying to are mostly healthcare related, and their requirements are exceptionally dry aside from just saying they'd like me to know about the stuff i listed (sql, ssrs, moss are all listed) and wanting someone with a degree.

>> No.62206577

Is there ANY reason why people would choose a license other than Unlicense?
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.


For more information, please refer to <https://unlicense.org>

Look at it. It's perfect.

>> No.62206579

Communicating with processes doesn't mandate you use a certain language. You just use some form of IPC or a socket.

>> No.62206603

if you have multiple processes running in memory that need to communicate to each other, in C the only way i could think of doing that would be to have it constantly loop and check if it's gotten any new messages. but languages like java emphasize communication between objects. what's the point of that communication if they're all in the same process?

>> No.62206619

For stuff I don't care about I prefer the CC0 because in some countries "public domain" doesn't exist. The CC0 license tries to address this and guarantee the recipients of your software as much freedom as possible while still complying with local copyright law.

>> No.62206633

Because the NSA doesn't want to

>> No.62206644

Yet they open source SELinux...

>> No.62206671

Not if you use a functional programming language. Plus most imperative languages nowadays don't use TCO because it doesn't provide as good error messages for stack traces and often times it is better to just use a for loop or a while loop. Java, Go, Rust and Python are languages off the top of my head that don't use TCO.

>> No.62206677


Lisp is pretty "functional" when it comes to how "functions" are treated in Lisp.

But generally "functional languages" also use immutable data. This is sometimes inconvenient and many languages try to ease the painpoints with opt-in mutable data. Lisp doesn't really care about the "functional paradigm" too much. But even Scheme (which is more "functional" than CL, for example) allows you to cheat in many ways.

Please note that this would not be considered good coding style - but it's doable:

(define x '(1 2 3 4))

(define (muh-sideeffects)
(set! x "oh shiiieet nigga, what are you doing!"))

(display x)

(display x)

>> No.62206680

>Doesn't support TCO
All of those languages are horrible memes.

>> No.62206690

Java spews out concurrency errors if you do that, tried making a small game engine in javafx a while back and its fucking cancer, you have to use prebuilt classes for processing graphics on a separate thread then drawing it to window, even if one thread is essentially read only

>> No.62206707

oop is so full of lies. it doesn't even do anything it says it does. i just want C with namespaces

>> No.62206715


>> No.62206727

Its not that oop is full of lies, its that Java is too asspained about errors like some sort of controlling girlfriend
Oop is full of lies, but java is especially bad here

>> No.62206776

>with namespaces
Namespaces are fundamentally useless. Why the fuck do you even need them?

>> No.62206804

>Cares about social media features
wew lad

>> No.62206812

>concurrency errors
Are you talking about ConcurrentModificationException? That shit's easy to avoid man.

>> No.62206929
File: 149 KB, 1920x1080, 1453303319472.jpg [View same] [iqdb] [saucenao] [google] [report]

Does setting a function to be "hidden" allow for a compiler to optimise a function more?
__attribute__((visibility("hidden"))) void my_fn(void)

I'm making a shared library, and I was curious if this makes a difference, especially if you're using link-time optimisation. I imagine the compiler could possibly inline and completely remove these sorts of functions, even if they're extern.

>> No.62207210

.net ecosystems seems to be extremely encumbered by proprietary crap whereas the jvm ecosystem does not have such issues. Beside, java GCs are known to be much better than .net ones, even though the .net runtimes are often faster than the java ones.

That would be sad if it were true, since clojure and ruby are dogshit.

>> No.62207298


god is dead

>> No.62207335

What is that autism in the comment section

>> No.62207354

Hooktube now needs javascript enabled, and I hate Google. Give me the rundown

>> No.62207377

default notepad with comicsans ms to communicate with the viewer and skrillex music trying to explain how to make snake game in C

>> No.62207398
File: 725 KB, 1200x1200, 1503433017218.jpg [View same] [iqdb] [saucenao] [google] [report]

This is the future we chose

>> No.62207416

the cherry on top is indians begging for source code in the comments

>> No.62207449
File: 25 KB, 164x242, 1370465847215.png [View same] [iqdb] [saucenao] [google] [report]


>> No.62207497

because header files are a hack

>> No.62207536

I know this is a programmer thread, but does anyone know a good starter kit for getting into embedded shit with microcontrollers?

>> No.62207539

What's the least plebby scripting language?

>> No.62207546

They aren't a hack but everything is global when you include a file isn't it? That's why you have to prefix everything with underscores and add #ifdef checks to make sure things don't get included multiple times.

>> No.62207572

so instead of having to do that hackey stuff, i'm saying C should have namespaces

>> No.62207580

How many Github followers do you have? I only have 28.

This question is open to everyone in this thread, of course.

>> No.62207587


>> No.62207591

but im not studying to be- nor working as a programmer

>> No.62207597

>calls himself a programmer
>has a github with public projects

>> No.62207599

I agree, I was just making the point that there's nothing "hacky" about includes except for the hacks we as programmers make to prevent bad things from happening because namespaces don't exist.

>> No.62207606

let (|Even|Odd|) n =
if n % 2 = 0 then

choose the type (or typedef in C) of data using a conditional statement.

I love F#

>> No.62207607

>>has a github with public projects
>Not using Gitlab

>> No.62207614

bring back /prog/

>> No.62207619

Which areas of math are most pertinent to programming?

>> No.62207620

>using fur "we're SJW and we lose all our data" lab

>> No.62207622

i shouldn't have said header files are a hack, i should've more precisely said header files require hackey practices because of the lack of namespaces. i wish they'd come out with ++C. something C++ should've been

>> No.62207625

Gross. They should be the same type (for example Number) and have a method such as Number.IsOdd or Number.IsEven.

>> No.62207637

>Which areas of biology are most pertinent to beakers?

>> No.62207640

What on earth do namespaces have to do with header files?

>> No.62207649

I want to try writing a game in Common Lisp but SDL doesn't have CL bindings. Do you think GLUT would be suitable?

>> No.62207659

Care to explain this analogy?

>> No.62207665

You have to header files A and B both have some foo. Which foo gets used? With a namespace this isn't an issue because you can either do `using A` or access foo via `A::foo`. In C I don't know which foo would be used, I guess it'd be up to the compiler?

>> No.62207675

SDL has CL bindings.

>> No.62207701

>making a function call everytime you wanna see if your number is odd or even

>> No.62207703

0 but I work as a full time programmer

>> No.62207733

A header file is not a module.
Also, namespaces in the sense you're talking about does not fundamentally do anything useful, compared to just prefixing the name with some shit.
You can go on about your A::foo vs B::foo, but what if I call my namespace 'A' as well? What do these namespaces actually solve, compared to just A_foo and B_foo?
Don't conflate namespaces with actual modules, which is something different.

>> No.62207736

A good compiler will optimise out the function call.

>> No.62207780

you're deliberately missing the point because you can't stand any criticism of C. i like C. it'd be better with proper namespaces

>> No.62207793

-O3 fags leave

>> No.62207813

But what does it fundamentally add? What can you do with it that you couldn't do before.
Also, namespaces require name mangling of some sort, which is just not fucking acceptable. C is known for it's extremely simple/stable ABI, and is probably one of it's greatest advantages. Why would you break that for something which is literally useless?

>> No.62207816

>not using Git Gud

>> No.62207839

A namespace makes it explicit where as with prefixing, things can slip through if you're not careful, not to mention some random library could break your build by adding something you don't expect.

A_foo is also more verbose than just `foo` (after a using A) or `A::foo` which makes it clear that something isn't just named "A_foo" it's actually foo and a part of A.

>> No.62207842

t. salty Pajeet c++ programmer working for $10/hr while Chad makes $200/hr at Google c+p'ing JS code from Stack Overflow.

>> No.62207847

it adds the convenience of knowing you're not going to be stepping on your own toes. and that's why people use HLLs. convenience.

>> No.62207877

Can we get a list of the least pozzed repository sites?

>> No.62207887


>> No.62207902

>not to mention some random library could break your build by adding something you don't expect
And the proposed C++-like namespaces doesn't fix this either, because I can just use the same namespace.
Again, namespaces != proper modules.
>makes it clear that something isn't just named "A_foo" it's actually foo and a part of A.
Solving a complete non-issue. It's blindingly obvious from context. Don't pretend that programmers are literal fucking retards.

How on earth do namespaces stop you from "stepping on your own toes", whatever that's supposed to mean.

>> No.62207912

>while Jerome makes $200/hr at Google c+p'ing JS code from Stack Overflow and culturally enriching his female coworkers

>> No.62207923

because there's not ambiguity when you use the same name in different files for different thing. are you thick?

>> No.62207945

>there's not ambiguity when you use the same name in different files for different thing
There is literally no ambiguity to begin with. You straight-up cannot have a symbol with two definitions: it'll result in a linker error.
Your one actually adds MORE ambiguity, at least for the programmer, because they now need to know what "using X" context they're in.

>> No.62208001

>Your one actually adds MORE ambiguity, at least for the programmer, because they now need to know what "using X" context they're in.

How is that an issue? Shouldn't you as a programmer know where functions have come from? This is an issue without namespaces, you still need to know where functions have come from to use it correctly and know what its arguments are, etc.

>> No.62208042

Your argument is all over the fucking place.
>How is that an issue? Shouldn't you as a programmer know where functions have come from?
I can say literally the exact same thing about non-namespaced functions.
>This is an issue without namespaces
How? There is a single, authoritative place that a function is defined, and as per your argument above, I should know where it is.

Also, with your precious "namespaces, but not modules", what's stopping me from doing
// mylib.hpp

namespace yourlib {
void foo();

>> No.62208071


>> No.62208090

Is it worth learning a scripting language?

>> No.62208101

>Your argument is all over the fucking place.

You're right, I'm bad at articulating myself, for that I apologise.

>Also, with your precious "namespaces, but not modules", what's stopping me from doing

Generally people aren't assholes so won't do this. You're right that, that is an issue though. I don't know of a fix for that without proper modules as you've pointed out and I'm not sure what that might even look like.

>> No.62208118

yeah you'll need to know at least one (in addition to bash). don't go learning a million. i'd recommend python even though i don't like it

>> No.62208131
File: 1.65 MB, 200x150, 1359688900186.gif [View same] [iqdb] [saucenao] [google] [report]

Oh my fucking god

>> No.62208134

this desu senpai but I'm trying real fucking hard to replace python by something else since python is so unforgivably shit.

>> No.62208150

>Generally people aren't assholes so won't do this.
Again, the exact same thing can be said about A_foo, or whatever.
There is really nothing else I have to add to this. Namespaces fundamentally don't add anything to a language, and would only serve to fuck with the ABI,

Oh, wow.

>> No.62208192


>> No.62208202


>> No.62208222
File: 2.56 MB, 190x200, 1433238773091.gif [View same] [iqdb] [saucenao] [google] [report]


>> No.62208238

I see your butttears all over the place but your brain seems to be missing still.

>> No.62208240
File: 234 KB, 545x530, 1490295976287.png [View same] [iqdb] [saucenao] [google] [report]

whats funny

>> No.62208258

He's getting argument advice from /brit/ because he knows he fucked up >>62208071

>> No.62208260

that is a thread dedicated to the discussion of british culture
none of you fucking nerds better not discuss your gay programming shit there

>> No.62208285

>yanks are now resorting to recruiting fellow yanks from other boards to dilute this thread's culture even further
fucking hell these cunts are worse than the pakis, honestly

>> No.62208297
File: 25 KB, 641x530, 1490296496833.jpg [View same] [iqdb] [saucenao] [google] [report]


>> No.62208362

>combining functional programming with object oriented programming
Nothing new. Both CL and Racket have very robust object systems.

>> No.62208374
File: 111 KB, 223x207, 1478720183888.gif [View same] [iqdb] [saucenao] [google] [report]

>Call him a retard and close the tab
This is the hardest I've laughed in weeks

>> No.62208377


>> No.62208385

Can we talk about programming for once in this thread?

No more insulting Indians/Americans/Europeans

No more socks

No more frog pictures

No more Python/Ruby/JS

>> No.62208393

Confirmed for not knowing what TCO is.

>> No.62208394

Can I talk about Lua?

>> No.62208397

It's not programming, so no.

>> No.62208401

What's the best IDE for learning C?

>> No.62208409
File: 528 KB, 926x560, 1408312872390.jpg [View same] [iqdb] [saucenao] [google] [report]

Reddit spacing won't save you this time, 'wanker'

>> No.62208411


>> No.62208414

I like S&W. Cheap and does the job if you know to aim for the roof of your mouth.

>> No.62208425

Pelles C if you're locked to Windows
I've never used an IDE on GNU+Linux

>> No.62208426

Not programming related, please leave.

>> No.62208432

Only if we can talk about how your mom is programed in >>/b/

>> No.62208444
File: 45 KB, 389x259, 1407727250671.gif [View same] [iqdb] [saucenao] [google] [report]

'Oy 'oy, fish-n-chips, fish-n-chips, mind the gap

>> No.62208455


>> No.62208461


>> No.62208467


>> No.62208475

Too many distractions to make an effective learning environment.

>> No.62208476


>> No.62208481


>> No.62208493
File: 304 KB, 1280x960, 1383406973216.jpg [View same] [iqdb] [saucenao] [google] [report]

>Willing to post with a proxy to damage control
Am I finally going to get to post my entire laughter folder?

>> No.62208500

Not programming related, please leave.

>> No.62208502

I've never programmed anything more substantial than end-of-chapter exercises from textbooks. Every project I've been suggested has sounded boring.

>> No.62208504


>> No.62208523


I dare you to do a project that was suggested to you.

What's the matter? Not up to the challenge?

>> No.62208532

>learning environment
We're not all beginners, kiddo. Have you ever written a compiler? How about a bootloader? Did you do it in Visual Studio or Eclipse? I doubt it, baby-baby.

>> No.62208535
File: 86 KB, 268x309, 1502386370051.png [View same] [iqdb] [saucenao] [google] [report]

You've been a fucking delight, m8

>> No.62208536

Wrong. Objectively better.

>> No.62208549

>learning C
>not a beginner
Pick one.

>> No.62208551

:term is love, :term is life.

>> No.62208553


>> No.62208609

why not do this?
i'm thinking of going through it 30 minutes a day just for the compiler aspect, already know C and lisp

>> No.62208612
File: 1.61 MB, 3840x2160, 1474140098052.png [View same] [iqdb] [saucenao] [google] [report]

Fine, I'll take my post number and translate that to a number from this chart.

>> No.62208629

Paint clone it is. Seems boring, tbqh, but I'll do it.

>> No.62208663

I know C, C++, Haskell and Common Lisp. That's enough, right?

>> No.62208671


>> No.62208673

pretty much this desu

>> No.62208679

do you really know C++, or are you just familiar with a subset of it? if you know C++ you can get a job easily

>> No.62208711

That's an indefensible position.

>> No.62208783
File: 86 KB, 235x228, 1282879505815.png [View same] [iqdb] [saucenao] [google] [report]

Started learning Java as my first programming language.

I started with 'A Beginner's Guide' and saw the 748 pages and thought I could go through it in 1-2 weeks. Boy, was I wrong... I'm almost on week two and only up to Chapter 5 - Page 181.

I've been practicing some of the problems as I go, obviously. I understand them, in my mind. But I feel all this programming... language is something that I have to memorize sort of. Understanding a code when I read it but not being able to create it from scratch (some of them) is a bit irritating.

It makes me want to rush through things but I hold myself back to bang my head against problems I even understand just to make SURE SURE I can do them. Now I see why it's taking me longer to finish my first book.

So yeah, these first few steps of programming are quite steep damn.

>> No.62208831

why not use ucs-4, seems the simplest?

>> No.62208854

By "know", I mean I've read about 10 textbooks (mostly intermediate best practice and puzzle books, but also some more advanced ones on concurrency and metaprogramming), and have been doing projects in it for 2 years.

When I graduate I might try getting a job as a C++ programmer.

>> No.62208866

Something can be an improvement and heretical at the same time.

>> No.62208934
File: 48 KB, 365x444, 1423526310066.jpg [View same] [iqdb] [saucenao] [google] [report]

Hello, novice programmer here.
All of my programing experience has been inside an IDE. I have been told it may be better to learn from using a text editor and a compiler, and I am currently learning both C and Java. However, I am totally confused on how to set up these compilers and allow my written scripts to be compiled through them. I understand a small amount of command line function, like how to navigate directories, but that is mostly it. If someone could point me in the direction of some resource or a quick tutorial for someone very new, that would be great. Reading the documentation on the compilers I plan to use doesn't help me very much. Advice on switching from an IDE would also be helpful as well, just to stop me in case I am being memed (highly possible)

>> No.62208952

>So yeah, these first few steps of programming are quite steep damn.
As with any new skill.
Java was my first language as well, went about half-way through a similarly sized beginner's guide. After that I found a free online book on Perl - that was a really fun change of direction.
Going through SICP, at least the first few chapters, might be good for you - what they present in that book definitely requires more understanding than memorization from the reader.

>> No.62208980

The way I think of it is as follows:

At first, learning a programming language is less learning the language and more understanding to express yourself through code. It's seeing how common problems can be abstracted to functions that each do small things whose effects compound, and how to achieve your goals in the simples way possible.

Once you have a suitable framework, when you try learning a new language, you'll have a much easier time because now you'll be learning the syntax and how to write idiomatic code instead of learning what programming is.

So don't rush at all, but make sure you take is slow at first. Java (as much as I hate it) is a decent introductory programming language. It's pretty dummy-proof, so it allows you to focus on the bare bones of programming (although I don't think it's suitable for much more)

>> No.62209020

nice blog, upvote
i start seriously with c++ then ended up hating myself for 2 weeks before continue

>> No.62209046

javac is the standard Java compiler you should have available if you have Java installed. Go to the directory where you've saved your program, invoke the compiler:
$ javac MyProgram.java
This should compile your program to MyProgram.class. Now you can execute your program within a Java Runtime Environment with the java command:
$ java MyProgram

>Advice on switching from an IDE
Obviously use an editor with syntax highlighting. If you have the time and grit, take a few weeks to learn how to use a meme like vim. If you don't, stick to Atom/Sublime/Notepad++ if you're on Winblows.

>> No.62209052

You know Bram Moolenaar didn't invent vi, right? Sure he made good improvements on it, but that's the point isn't it? Bram improved on what others before him built, just as neovim improves on what Bram built. If Bram had the same religious devotion to tradition that you have, we wouldn't have vim.

>> No.62209071

If you want a job, you should learn a useful language like HTML or CSS :^/

>> No.62209141

>Going through SICP, at least the first few chapters, might be good for you - what they present in that book definitely requires more understanding than memorization from the reader.
That's very good to know. I definitely try to understand more than/before memorizing.. I feel I have to know -why- to be able to express my solution with clarity always.

Thank you, I will put it on my list for sometime after I feel more comfortable with coding.

Yeah, I'm definitely trying to slow myself here and pay close attention to the basics. I'll probably spend a good few weeks.. or whatever it takes to put all this learning into practice through all sort of projects and online exercises I can find.

I understand that I understand code, but I need it to become more a way of my thinking/part of me I think to be able to progress with excellence.

Thanks for the tips, I picked Java cause I thought it was a good "balance" as far as programming languages go to not "spoon-feed" me too much but that will put me in a good place to approach other languages. I hope so.

>> No.62209250

How much do you inline, C++ programmers?
Everything 1-3 lines?

>> No.62209293

Nothing because the compiler will do it for you.

>> No.62209295

Depends. If it's a small project and all the classes are small, probably just inline everything in the .h.
Anything bigger, I'd rather be consistent across all modules, so maybe inline tiny stuff (trivial constructors/getters/setters) in the .h's, but put everything else in .c's. If the compiler decides to optimize any of that, that's cool with me, I just want a clean, consistent codebase.

>> No.62209329

>write code like a drunken slut on h writes in mancum
>>>>>>>>>>>clean, consistent codebase

>> No.62209392

I will just use Notepad++, I like stuff simple. Thank you for the help, I got the compiler up and going, and I don't really find it that really different from my code examples without one. I never paid too much attention to the code highlighting, and the errors are pretty descriptive. Thanks again!

>> No.62209648

I have a bunch of questions for you.

My brain can't handle FP programming and memorize all the functions. Any tips around this?

Do you follow a specific SDLC?

How do you test your product in the unit level, integration level, system level and acceptance level?

Is it all test scripts from the ground up?

>> No.62209702

Go back to middleschool, kid. The adults are talking.

>> No.62209767

>void *(*start_routine) (void *)
what does this definition actually mean? start_routine is the name of the function

>> No.62209792

It's a function pointer.

>> No.62209807

i know, can you explain why it being a function call requires void*(*_____)(void*)?

>> No.62209816

>trying this hard on a congolese child soldier recruiting boad
im glad i grew out of this attitude.

>> No.62209837

It's defining the type of the function pointer.

The first void* means that the function it points to returns a void*. The second void* means that it takes a single argument of type void*.

>> No.62209849

got it, i didn't know what that last part was. thanks

>> No.62209857

>>My brain can't handle FP programming and memorize all the functions.
Have you considered gitting gud?

Use it. The more you use, the more you remember. Isn't this common sense?

>> No.62209868

>My brain can't handle FP programming and memorize all the functions. Any tips around this?
You end up memorizing core functions with enough practice. Beyond that, use types to identify probable functions that you want.

>> No.62209878

>My brain can't
Write in cursive daily. I swear it's not a meme. Your cognitive abilities will increase significantly within weeks.

>> No.62210017
File: 522 KB, 1920x1080, 2017-09-01-211345_1920x1080_scrot.png [View same] [iqdb] [saucenao] [google] [report]

lmao off at princeton

>> No.62210044

What is with the curly braces and the while loop in the root method?

>> No.62210060

What is loop/recur

>> No.62210107

while (i != id[i])
i = id[i];

>> No.62210133

What's so funny?

>> No.62210260

Why do C++ shills meme that you have to have a powerful brain to understand C++ and use it well--
supposedly unlike the C zealot, who need only know relatively few concepts and keywords--while opponents of the language disagree and claim that C++ is like a disgusting chimera of multiple species and genders and it all fits together very poorly and produces very ugly code?

Has it not occurred to them that both things are true? C++ is a patched- together language grotesque in its enormity. Also--and not only also, but ERGO, even--the demands it places on programmer intellect are considerable.

Why do they disagree with each other when it seems like common sense that they're both saying the same thing?

>> No.62210261

I know, but why use a while loop? Why not just use an if statement? And when I was talking about the braces, why was he using the more C# style and not the traditional Java style.

>> No.62210334
File: 49 KB, 1281x753, 2017-09-01-215308_1920x1080_scrot.png [View same] [iqdb] [saucenao] [google] [report]

>I know, but why use a while loop? Why not just use an if statement?
Are you familiar with the problem? It's basically a tree where you find the root, if you did a single if-statement, you wouldn't traverse the tree.
>And when I was talking about the braces, why was he using the more C# style and not the traditional Java style.
Not too familiar with either.

Sorry, not sure if I understood either of your questions.

>> No.62210356

I was trying to fit in.

>> No.62210438
File: 57 KB, 1280x720, 1432989141270.jpg [View same] [iqdb] [saucenao] [google] [report]

I've just started trying to learn programming today and i've been doing more fucking math than learning stuff about programming. For the first time in my life i heard the term "exponent's" and I spent about an hour trying to wrap my head around what the fuck it meant and about 20 minutes of that time trying to find the exponent button on a calculator.

Is there any hope for me?

>> No.62210504

>Not knowing exponents
Wow... that's really basic.

I mean, that did shock me. But I guess you should keep going and see how difficult it is? You might need to up your math game a little though. I don't think it's the end of the world but if it's that bad then it would make your own life much easier.

On top of that programming does take a lot of practice and time. So have fun, it's a long ride. It's better you're aware of that now than regret it later. But don't be discouraged, if you really want it.

>> No.62210525

you can make some websites or apps that make heavy use of sql. For example data mine the st louis fed's data and see if you can write some queries, maybe put them in graphs for visualization.

build a website that requires user input and store those values in an sql database. I did that prior to knowing I could get hired for a corporation and showed them what I did. Those projects got me hired because my degree is in an unrelated field.

>> No.62210541

>I've just started trying to learn programming today and i've been doing more fucking math than learning stuff about programming.
That is normal. At a fundamental level, programming is about manipulating your ideas until you have turned them into math, at which point a computer (read: math machine) can actually execute your ideas.

>Is there any hope for me?
Probably, yes. It's a harsh introduction for almost everyone. It takes some getting used to.

>> No.62210569

>i'm 8 years old

>> No.62210580

I had to check what exponents were, but for a language barrier reason, I knew the word power for it.
Where do you come from ? Do they not teach you this in high school ?

>> No.62210596

It's called Scala, or OCaml/F#. Either way, in both of those languages, the advanced programmers have generally accepted that it's best to throw out the OOP parts and just do things the functional way instead.

>> No.62210599

Because software has value, and some people want to be compensated for producing that value.

>> No.62210632

on the fly Ingesting and decompressing a gzipped JSON stream in Go.

Writing Flume sources and clients in Scala using Cats for grabbing data from several social media sites and putting it in HDFS.

building a home Hadoop cluster.
Brushing up on good 'ol C

Data cleaning and machine learning research

>> No.62210686

Thank's for the encouragement. And yeah i knew this wasn't something i was gonna pick up quickly, but all these mathematical terms that have popped up so early has gave me a shock.
I wish. If i was i would probably be picking this up more easily.
UK and i don't know if they taught it at school since I skived off a lot, but it wasn't on any test. Maybe sixth form might've taught it but i didn't choose to stop on.

>> No.62210984
File: 765 KB, 1265x685, 01.png [View same] [iqdb] [saucenao] [google] [report]

third year CS student here, this may be a dumb question but what do professional non-web programmers actually make?

like java and c/++ are super popular languages but i personally only use a few desktop programs. what are those java and c/++ programmers making that makes those languages so popular? like the obvious android shit (java) and OS shit (c) but there must be other shit right?

maybe im just being a retard but it seems like everything is a webapp nowadays

>> No.62211034

>maybe im just being a retard but it seems like everything is a webapp nowadays
no, you're right
this is why javascript is so popular right now, and overtaking languages like java and C++

>> No.62211044

>there must be other shit right
Business app such as management and other things are big (Java and C# are big in ERP)

>> No.62211111

big enough to warrant using java as your core language?

im just having a moment where i want to go head deep into javascript and its frameworks and ignore everything else, if thats the best way to get a job

>> No.62211171

Depends on which industry you plan on joining. On the B2B market that's the main category of products. I don't recommend putting all your eggs in a single basket though. If you're fine with web by all means go for Javascript but make sure you at least know some stuff about databases, infrastructure etc.

>> No.62211187

In the $40,000's and up for any proper work environment. expensive cities in the $50's or $60's starting is not unheard of.

some places might start you off in the $30,000's if its a government job with low requirements or if you are a glorified help desk monkey.

>> No.62211212


You are a consumer and only use consumer applications. Not all applications are marketed towards people like you, and so you never see them.

>> No.62211244

Just wanted to say: Fuck Apache TomCat with a fucking serrated knife.

>> No.62211250
File: 47 KB, 645x968, brainlet_wojak.jpg [View same] [iqdb] [saucenao] [google] [report]

>tfw you will never be good at programming
Why even try?

>> No.62211253

Use electron and typescript and angular. It's all I use for anything that requires a GUI now.

>> No.62211274

you try so you become good.

>> No.62211280

That's like telling a fish to climb a tree ;_;

>> No.62211283

So you can deny you've ever tried in case you fail

>> No.62211285

How jealous are you?


>> No.62211293

where is this kid now?

i never watched this video but he sounds like someone who would kill himself early lol

>> No.62211294
File: 108 KB, 400x400, K85ZWV2F_400x400.png [View same] [iqdb] [saucenao] [google] [report]

>tfw you will never be good at programming
You only need to be good enough.

Learn Java, we'll accept you.

>> No.62211300


>> No.62211320

>senior design class
>I'm literally the only person that uses github to organize their projects

>> No.62211323

Programming is one of the easiest things to learn.
If you can solve a captcha, you can make a program.

>> No.62211332


well what kind of projects are they..? are they projects that benefit from being on git?

also if you go to a meme school they might be using bitbucket or gitlab

>> No.62211333
File: 32 KB, 480x375, 1v5y5q.jpg [View same] [iqdb] [saucenao] [google] [report]

>intentionally making a language that doesn't provide safety guarantees

>> No.62211337

How about you fuck off?

>> No.62211338

i did senior projects with and without github. didn't really make a difference desu.

>> No.62211339

Fuck off you worthless idiot.

>> No.62211344

>implying SELinux isn't a honeypot

>> No.62211359
File: 91 KB, 480x375, Untitled.png [View same] [iqdb] [saucenao] [google] [report]


>> No.62211373

It's not as well written in terms of a legal document as CC0. It wasn't drafted by lawyers.

>> No.62211407

Do programs like make that have shit ton of output run faster, even by a little bit, if they don't print their output? Can I just do something like make > /dev/null?

>> No.62211410

Can you explain to me how you can be in computer security while at the same time willingly using a smartphone? How do you make secure the existence of the baseband? Just what kind of snakeoil definition of "security" are you peddling over there in academia?

>> No.62211427
File: 33 KB, 450x450, laughing cheeta.jpg [View same] [iqdb] [saucenao] [google] [report]

>javascript devs get this mad when you call them on their shit

>> No.62211446

No, it's because you're an utterly moronic tripfag who doesn't know shit about programming.

>> No.62211462

>saying I'm a tripfag
Wow, you sure are flustered. Anger has clearly clouded your vision.

>> No.62211473


>> No.62211502

>>62204837 said that their language is "Rust without the safety bullshit", which implies that Rust is safe. Checkmate, cunt.

>> No.62211520

Mad that electron devs like me make an entire fully functional application and aesthetically pleasing user interface in a day while Qt devs are debugging their segfaults?

>> No.62211553
File: 560 KB, 691x479, disgusting.png [View same] [iqdb] [saucenao] [google] [report]

>fully functional application
Pictured: fully functional human.

>> No.62211781

return n % 2;

>> No.62212024

That's not really a functional human tho. I doubt she can procreate, walk for extended periods or care for herself without any help.

>> No.62212030
File: 4 KB, 152x151, Kotlin-logo[1].png [View same] [iqdb] [saucenao] [google] [report]

thoughts on kotlin?

>> No.62212046

ugly pos that doesn't really fix the main problems with Java so much as it puts bandaids over them

>> No.62212058
File: 18 KB, 260x250, 4.jpg [View same] [iqdb] [saucenao] [google] [report]



>> No.62212191

How to get gud at databases? Is there a sicp like book for dbs?

>> No.62212207 [DELETED] 

This is all you will ever need:


>> No.62212212

just normalize that shit and you are good to go

>> No.62212223

This is all you will ever need:


>> No.62212227

>that doesn't really fix the main problems with Java so much as it puts bandaids over them
Can you elaborate? I've been curious about java and kotlin for a while now.

>> No.62212242

New thread:


>> No.62212245

Thanks but I literally can't stomach video tutorials, I need a book

>> No.62212360

He also said it's bullshit.

>> No.62212928
File: 619 KB, 460x258, beric_0.webm [View same] [iqdb] [saucenao] [google] [report]

Can CMake download dependencies automatically like Gradle or Maven does?

>> No.62213029

Well, for one thing all that safety guarantees are not there, because i didn't get to implementing them.
Also, i'm not convinced that allowing only one mutable reference to any object is a good thing.
I do plan to include something, that would prevent dangling pointers etc.

>> No.62213320

A suicidal encouragement not resulting in a suicide is legal afaik

>> No.62213728


>> No.62213900

whoah that was fast
good job anon >>62203475

Name (leave empty)
Comment (leave empty)
Password [?]Password used for file deletion.