[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: 320
Thread images: 49

File: dpt_flat.png (102KB, 1000x1071px) Image search: [Google]
dpt_flat.png
102KB, 1000x1071px
Old thread: >>61770973

What are you working on, /g/?
>>
File: java.jpg (154KB, 724x810px) Image search: [Google]
java.jpg
154KB, 724x810px
>he doesn't enjoy OOP
>>
>>61776976
He sounds normal to me
>>
File: ambientgif-pool.gif (252KB, 500x374px) Image search: [Google]
ambientgif-pool.gif
252KB, 500x374px
>>61776862
Pls help

>Captcha: THIRD Warning
I'm scared.
>>
Trying to learn C++
Anyone able to give me some good places to learn?
>>
>>61776976
t. rajeesh
>>
>>61777030
look it up on a reference

thanks C
>>
>>61777048
You mean a reference website?
>>
>>61777030
>>61777053
Yes, there are many reference sites or you could read the standard itself.
However, size_t in particular is from stddef.h
>>
File: c-baby.jpg (247KB, 808x805px) Image search: [Google]
c-baby.jpg
247KB, 808x805px
>>61777047
t. assblasted c-cuck
>>
>>61777115
You really could have put more effort into that like a personified segfault or something.
>>
File: 1497308911652.png (2MB, 991x1426px) Image search: [Google]
1497308911652.png
2MB, 991x1426px
>>61777115
>>61776976
>le feely man
>>
if event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil then
if recoil then
Sleep(200)--1
for i = 0, 10 do
Sleep(13)
MoveMouseRelative(.3, 3.1)--2
end
for i = 0, 10 do
Sleep(13)
MoveMouseRelative(0, 3.9)--3
end
for i = 0, 10 do
Sleep(13)
MoveMouseRelative(.2, 5.3)--4
end
for i = 0, 10 do
Sleep(13)
MoveMouseRelative(.9, 5.9)--5
end
end
end
end
end


Recoil script for FPS games written in Lua. Works fine now but I want to put all the for loops in one big for loop. The problem is I wouldn't how to break out of the loop when I release MouseButton1. With all the loops separated like this I can add a break and check in between. Any help?
>>
>>61777128
Instead of sleeping why not just make a proper cooldown function.
>>
File: 20620748.jpg (49KB, 640x791px) Image search: [Google]
20620748.jpg
49KB, 640x791px
First for (((Rust)))
>>
>>61777181
but anon, that's the 14th post
>>
>>61777188
He was trying out his new optimized rust client.
>>
File: halp.png (9KB, 400x749px) Image search: [Google]
halp.png
9KB, 400x749px
>>61777074
Yeah this obviously isn't going to work
>>
>>61777242
how are you not blind.
>>
File: object oriented languages.jpg (328KB, 2048x1536px) Image search: [Google]
object oriented languages.jpg
328KB, 2048x1536px
>>61776976
>He thinks he knows the right kind of OOP
>>
>>61777254
Is ricing really that important?
>>
>>61777242
Just look for the typedef.
typedef.+size_t
>>
>>61777283
No but having a readable font and decent colors are.
>>
>>61777265
>OOP
>right
>>
>>61777128
You're checking if recoil is True, and then check it again immediately afterwards in the body of the outer if statement... why?
>>
File: font.png (197KB, 1024x768px) Image search: [Google]
font.png
197KB, 1024x768px
>>61777299
Doesn't work with structs and functions, but I guess it's useful in certain situations.

>>61777300
Geez. How's this?
>>
>>61777418
thats better, just use an off-black background though, pure colors are bad four your eyes in prolonged use.
>>
>>61777392
Noted and fixed.
>>
File: 055.png (134KB, 720x331px) Image search: [Google]
055.png
134KB, 720x331px
Thoughts?
>>
>>61777654
Haven't you got anything better to do?
>>
>>61777654
>java
0/100
>>
>>61777654
It's a program
>>
>>61776941
Thanks for a good anime image.
>>
>>61777654
at least allow user to input his own age
>>
where can I learn programming
>>
>>61777654
>}else{
just awful
>>
hello fellow trannies programmer what do people use to play sound nowadays in Windows?? do people still use DirectSound?
>>
File: 3610154048314_600.jpg (44KB, 600x600px) Image search: [Google]
3610154048314_600.jpg
44KB, 600x600px
>>61777777
>massive fag wastes sexts
You don't deserve an answer
>>
>>61777777
God damn it, /dpt/.

>>61777654
Pretty lame.
>>
File: hifumi_dubs.png (251KB, 580x506px) Image search: [Google]
hifumi_dubs.png
251KB, 580x506px
>>61777777
RUINED
>>
File: 123 (2).jpg (20KB, 520x390px) Image search: [Google]
123 (2).jpg
20KB, 520x390px
>>61777777
checked
>>
File: 1436819922136.webm (156KB, 320x240px) Image search: [Google]
1436819922136.webm
156KB, 320x240px
>>61777654
>}else{
>>
File: 1498184476752.png (89KB, 261x192px) Image search: [Google]
1498184476752.png
89KB, 261x192px
>>61777777
>>
>>61777654
Why are you starting in Java? You should learn Python first.
>>
>>61777828
>bad to worse
>>
>>61777763
Here you go:

https://python-guide-pt-br.readthedocs.io/en/latest/
>>
>>61777828
Your opinion is wrong. Python really fucks you up when switching to other major languages, mostly due to its type system (or lack thereof) and weird code structure/best practices. I wouldn't recommend Java as a first language, but it's better than Python in that regard.
>>
>>61777688
>>61777828
>>61777844
There is nothing wrong with Java.
>>
>>61777850
What is a good first language then?

Don't say C.
>>
>>61777777
Just use OpenAL.
>>
>>61777777
Jesus Christ what a waste of sexts
>>
>>61777859
Except for the language, the libraries, the runtime and the users.
>>
>>61777869
It's C.
>>
>>61777654
I can tell straight away that this is the New Boston tutorial.
>>
>>61777901
Spotted the fedora.
>>
>>61777869
C++ or even C#, depending on which way you want to go after that.
>>
>>61777777
WASAPI
Directsound a shit
>>
>>61777869
You should start with C on DOS, anything else will permanently damage your understanding of programming.
>>
File: anal beads.png (61KB, 724x810px) Image search: [Google]
anal beads.png
61KB, 724x810px
>>61776976
>implying I don't
>but also implying I use it ad absurdum like Java
>>
>>61777975
>C on DOS
>when C was designed for UNIX
>>
>>61777903
>i recognise that gay tutorial
>>
>>61777982
>Not MS colors
stop half-assing it
>>
>>61778006
I stand by my statement
>>
File: haskellbro.jpg (197KB, 935x799px) Image search: [Google]
haskellbro.jpg
197KB, 935x799px
>>61776976
>>61777982
>not writing in the thinking man's language
>>
>>61778240
false flag
>>
>>61778240
Good luck getting a job with that, faggot.
>>
>>61778240
>>61778280
samefag
>>
File: diary2.png (73KB, 754x560px) Image search: [Google]
diary2.png
73KB, 754x560px
>>61776941
Hey /g/, I said i will be open sourcing my project soon. Here it is: go-o.-gl/Qtfns9 (remove dashes)
Written in C++/Qt Widgets. Working on it for over a year now.
Thoughts?
>>
>>61778303
Why are you swimming and studying math at the same time?
>>
File: brainlet_wojak.jpg (47KB, 645x968px) Image search: [Google]
brainlet_wojak.jpg
47KB, 645x968px
>>61778240
>tfw you are too dumb to program in Haskell
Why did Haskell never take off anyway?
>>
>>61777869
I would say either Java or C#, c or c++ would be totally horrible to have as a first language.
>>
>>61778240
Meme language.
>>
>>61778303
what is this and why should i use your app instead a free better one?
>>
>>61778330
Most programmers are too dumb, like you
>>
>>61778320
multitasking
>>
>>61778303
Looks pretty bad, to be completely honest. I'm not seeing why anyone would use this.
>>
>>61778330
Because it's pretty much useless in the real world.
The performance is abysmal. Non-free abstractions. Shit module system. Long compilation times. Default setup lacks anything usable so you need extensions to make anything useful.
>>
Can someone advice me the best IDE for Linux? I tried Code::Blocks but it was shit.
>>
File: d41d8cd9.ArnoldCSublime.png (65KB, 563x712px) Image search: [Google]
d41d8cd9.ArnoldCSublime.png
65KB, 563x712px
What does /g/ think of Arnold C?
>>
>>61778391
>it's another "I'm so clever for doing some basic replacements related to this pop culture thing" episode

It's shit, and so is everything like it.
>>
>>61778416
this
>>
>>61778354
>>61778359
i guess i'm the only autist here who cares about the code :( the app is shit atm, i agree, but my goal was to write a good code, not a good product. although now i might consider focusing more on the futures and not on their implementations.
>>
>>61778391
Sauce on that language.

>>61778416
Chill out. Dickwad.
>>
>>61778499
>but my goal was to write a good code, not a good product
You are everything that's wrong with like half of the programming community. Yes, you should write good code, but your #1 goal is to solve a problem, or otherwise generate some sort of value using programming as a tool. Write good code while creating something useful, interesting, or fun. You can go back and gold-plate the code later.
>>
>>61777043
http://www.learncpp.com
>>
>>61778391
>>61778530
samefag

Asks for sauce on something that's easily copied into google to pretend that a 3rd party is showing interest in this low-effort replace-and-label piece of shit "language".
>>
>>61778556
Fuck you, I'm not same fagging. That jealous someone else likes their programming?

>>61778391
Sauce?
>>
>>61778530
>>61778577
https://github.com/lhartikk/ArnoldC
>>
>>61778532
Well, i was just learning stuff, so my goal was adequate imo.
>>
File: 1495230756389.jpg (6KB, 250x250px) Image search: [Google]
1495230756389.jpg
6KB, 250x250px
If you're a real programmer you should be able to ensure that a*b, a-b and a+b don't overflow.

Number of real programmers ITT: -2.
>>
>>61778869
I use unbounded integers
>>
>>61778330

>Why did Haskell never take off anyway?

Imagine you have a factory which produces tinware. You can chose between two different technologies:

1) A super laser which can be used for pretty much everything. Downside is that it's control panel has 5000 buttons and you need at least two years of training for a worker to be really productive. There aren't many people that can really use this laser, and those who do probably don't want to produce tinware, but rather build comlicated stuff.

2) A cheap old metal press. It does only one thing, but you can learn to use it in 5 months. Also everybody is working with it, so you can find plenty of workers.


A no-brainer, isn't it?
>>
>>61778964
>
1) A super laser which can be used for pretty much everything. Downside is that it's control panel has 5000 buttons and you need at least two years of training for a worker to be really productive. There aren't many people that can really use this laser, and those who do probably don't want to produce tinware, but rather build comlicated stuff.
Then how did C++ get popular?
>>
>>61778964
>this is what Hasklets actually believe
>>
>>61778981
C++ got popular because most of it's buttons don't work and are clearly marked as such
>>
>>61777777
What a fucking waste!
>>
>>61778964
>Imagine you have a factory which produces tinware. You can chose between two different technologies:
>1) A super laser which can be used for pretty much everything. Downside is that it's control panel has 5000 buttons and you need at least two years of training for a worker to be really productive. There aren't many people that can really use this laser, and those who do probably don't want to produce tinware, but rather build comlicated stuff.
>2) A cheap old metal press. It does only one thing, but you can learn to use it in 5 months. Also everybody is working with it, so you can find plenty of workers.
In practice the super laser breaks down often because it has many small and fragile components which are very expensive to replace while the simple mechanical press continues to work for many years with minimal maintenance because it doesn't try to over engineer the solution.
>>
>>61778981

Because in 1985 when C++ came out (10 years before Java) it seemed like a good idea. It was more powerful than C and there were not many alternatives.

But it's no wonder that Java BTFO of C++. Today C++ is the sacred cow of some distinct technolgies where you need every single bit of performance or just have a huge bunch of libraries already. But if you can avoid it, you usually do.
>>
>>61779124
Are Go and Rust decent alternatives? Are they a lot slower than C++ or would it be fine programming something in them on modern hardware?
>>
>>61779137
Go is GCC, Rust doesn't have much to offer.
>>
>>61779142
it's too hot in here, I meant
> Go has GC
>>
>>61779137

My humble opinion (as non-C++ user):

Go is something completely different and not really comparable to C++.

I think Rust is a great idea. And if you are halfway decent in C (and maybe even know some basics in C++) I'd definately recommend doing a Rust project, to get generate traction for it. But it won't replace C++ anytime soon, unfortunately.
>>
>>61778981
>Then how did C++ get popular?
it went viral, not popular
>>
>>61779217
>I'd definately recommend doing a Rust project, to get generate traction for it.
Fuck off Mozilla shill
>>
>>61779046
>>61779231
That still doesn't answer my question on why C++ become used a lot.
>>
>>61779243
Oh shut the fuck up, no one cares about your stupid SJW/pol/ shit.
>>
>>61779255
>why C++ become used a lot
because it went viral answers it

it was too late to use something else
>>
>>61779264
>dumb rustfag trying to others again to swith rust because rustfags can't program anything themselves
SAD
>>
>>61779090

That's exactly my point.
>>
Is this a good approach for making a generic heap?

typedef enum {
false,
true
} bool;

typedef enum {
max,
min
} heapType;

typedef struct heapStruct {
void **heapArray;
size_t capacity;
size_t elementSize;
size_t childLimit;
heapType type;
bool (*is_equal)(void *a, void *b);
bool (*is_lt)(void *a, void *b);
bool (*is_lte)(void *a, void *b);
bool (*is_gte)(void *a, void *b);
bool (*is_gt)(void *a, void *b);
} heap;


Obviously it's incomplete for now, but is this approach of void pointers and function pointers the only approach?
>>
>>61779255
From memory, Stroustrup said in an interview that the cfront software was distributed in a package that could bootstrap on many different consumer machines, at a time when running fortran was a luxury and exclusively reserved to the mainframe programmers.
>>
>>61779255
Project managers in the 90s jumped on the C++ boat because:
- OOP was a huge meme at the time, thought to be the solution to all sofware engineering riddles
- C++ is (somewhat) compatible with C, so (supposedly) less money to spend on the migration of both old projects and developpers
- Stroustrup shilled hard for its spreading
>>
File: meme.jpg (211KB, 1280x1211px) Image search: [Google]
meme.jpg
211KB, 1280x1211px
Is pic related a meme?
>>
>>61779306
typedef int type;

struct heap {
unsigned int size;
unsigned int count;
type *data;
};

// Returns the biggest element in the heap
#define heap_front(h) (*(h)->data)

// Frees the allocated memory
#define heap_term(h) (free((h)->data))
>>
>>61779334
is a meme is a meme
>>
>>61779354
saying "is a meme is a meme" is a meme
>>
>>61777265
lol @ pic
>>
>>61779347

Doesn't this heap only work on integers? I'm trying to make one that works on arbitrary data types.
>>
>>61779380

Design it as a macro-only header like kvec.h.
>>
>>61778240
Haskell should be an old man.
>>
i'm using GNU/Linux at the moment, but if i use this user agent
Mozilla/5.0 (iPhone; CPU iPhone OS 10_10 like Mac OS X)
AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365


in my python code to make requests to a page, what does it actually mean?

they think i have an iPhone?
>>
>>61777654
>no factories
kys
>>
>>61779495
t. brainlet
>>
>>61779334
why do you need mpi and opencl?
>>
>>61778303
>material
meh
>>
File: meeem.gif (137KB, 340x340px) Image search: [Google]
meeem.gif
137KB, 340x340px
>>61779509
>falling for it
>>
>>61777654
>class apples
>>
>>61779334
sepples is a meme.
OpenCL is good.
Don't use openMPI, use openMP.
Alternatively use new programming language for HPC and distributed computing like chapel, x10 or what ever.
>>
File: 1470792067398.png (36KB, 268x237px) Image search: [Google]
1470792067398.png
36KB, 268x237px
Employed Haskell programmer reporting in
>>
>>61779608
>lying on the internet
>>
>>61779593
hadoop
>>
>>61779608
$2/hour hasklet
>>
File: 1437497521042.jpg (60KB, 1280x720px) Image search: [Google]
1437497521042.jpg
60KB, 1280x720px
>>61779693
300k starting
>>
>tell boss I know Haskell
>5 days later, he doubles my salary
>>
>>61779727

> 300k Indian rupees
so $2/hour like I said
>>
>>61779442
yes, but it doesn't really matter if you're doing requests because most of the time user agents are only useful on the frontend when you want to check for browser specific capabilities

the only thing I can think of is that they would serve you mobile-tailored markup instead of the regular one if they have a mobile version of the website
>>
>tell boss I know APL
>5 days later, he triples my salary
>>
>>61779929
I did the same by saying I know C and x86 assembly. Didn't work that well.

Next time, I'll try COBOL.
>>
>>61778964
>1) A super laser which can be used for pretty much everything.
>Haskell
HAHAHA
>>
File: file.png (240KB, 960x560px) Image search: [Google]
file.png
240KB, 960x560px
Is this what the average programmer looks like?
>>
>>61780281
>program an AI
>make it exactly like yourself
the ego
>>
>>61778390
Emacs
>>
File: 1235145214252344.png (6KB, 225x225px) Image search: [Google]
1235145214252344.png
6KB, 225x225px
Anyone can recommend ruby/ruby on rails books? Pref ror 5
>got links? send
>>
>>61777869

Here is the officially guide what langauges to learn to become a GOAT programmer:


[Stage 1 - Foundations]
1) Lambda Calculus (just the basics) - 2 days
2) Scheme (though SIPC + Little Schemer) - 3 months
3) C (with K&R of course) - 2 month


[Stage two - getting employable]
4) SQL (normal forms, set theory basics and learning by doing) - 1 month
5) Java or C# - 3 months
6) JavaScript - 2 month


[Stage three - let the fun begin]
7) Clojure (super easy if you know Scheme and Java already) - 1 month
8) Ruby (benefits from Scheme and JS) - 2 months
9) Perl or Python (both are very easy with Ruby background) - 1 month
10) F# or Erlang+Elixir or Haskell (muh functional coolness) - 6 months
11) Scala or C++ - at least 18 month
>>
>>61780421
Omit 11, it adds nothing but trash
>>
>>61780345

See:
>>61779814
>>
>>61780435

Yeah, it was bascially a joke.
If someone is really such a hotshot that he has implemented things in all langauges before, C++ or Scala will give him an unsolvable problem. It's basically an endless looping of learning..
>>
File: flap.gif (269KB, 393x450px) Image search: [Google]
flap.gif
269KB, 393x450px
>>61776941
Is there a canonical C++ text I should learn from? Or just a good introduction to the language you recommend?

Don't tell me to learn C or Lisp or Haskell instead--I already know them. I need to learn C++ specifically.
>>
>>61780598
More or less any tutorial will do.
It's not really complicated if you've done C.
>>
>GHC 8.2.1
>:t 3
> Num p => p

>p

What did they mean by this?
Why p? It's an awful choice.

>8.0.1
>Num t => t
>>
>>61777030
cplusplus.com is pretty hand. I know you're looking at C but they have a pretty good c reference there as well.
>>
>>61780598
>>61780661
This is all you will ever need:

https://www.youtube.com/playlist?list=PLAE85DE8440AA6B83
>>
>>61780598
Well, Bjarne duh, every adult male should read Bjarne at least once
De holy trinity of Meyers, Sutter and Andrei
>>
(<*>) . ((,) <*>)

>this is valid Haskell
>>
>>61781153
No it isn't.
>>
>>61781162
It's a valid expression, and it typechecks too
>>
>>61781162
>>61781187
oh shit, I mean
(<*>) . ((,) <$>)


>this tiny crazy character difference is the difference between typechecking and not typechecking
>>
>>61778240
Why is he so smug?
>>
>>61780598
C++ Primer 5th edition is pretty well-regarded. It's YUGE, though
>>
>>61781226
Living the NEET life
>>
File: Capture.png (2KB, 153x134px) Image search: [Google]
Capture.png
2KB, 153x134px
Hi DPT, First time here, I'm trying to learn Boolean algebra and so far i'm understanding AND, OR, XOR, XNOR and INH but I don't understand how the IMP (implication) truth table works. Could you give me real life examples please? The one on the french wikipedia page is this: Living in Italy means I live in Europe but living in Europe doesn't mean I live in Italy. I understand this logic statement but I don't understand how this is illustrated by pic related. Should I ask /sci/ ?
>>
>>61781376
Think of IMP more like a theorem. Which of the combinations in the truth table prove that theorem wrong? Which prove it right?
>>
>>61781376
Hypothesis:
If it rains then the pavement is wet.

Suppose I go outside and:
It rained and the pavement is wet. Hypothesis still valid.
It didn't rain and the pavement is wet. Hypothesis still valid.
It didn't rain and the pavement isn't wet. Hypothesis still valid.


It rained but the pavement isn't wet. Hypothesis invalid. Must be some kinda cover over the pavement.
>>
>>61781376
your pic is bidirectional implication
>>
>>61781376
Your picture is if and only if, not implication. Does one confuse you or do both confuse you?
>>
>>61778006
>DOS
nah but you should definitely learn C by creating an at&t system v virtual machine and writing your code using vim/ed. The more minimalist you get, the more you will learn.
>>
>>61780598
> Is there a canonical C++ text I should learn from?

lol no, you need to read like 10 books just to be taken seriously
>>
>>61777777

Funniest get yet
>>
File: Capture.png (16KB, 796x521px) Image search: [Google]
Capture.png
16KB, 796x521px
>>61778390
If you are totally new to programming your shouldn't learn by using an IDE, at least that's what I think. Just use tmux and put vim/emacs in one windows and a bash to compile your code in another window.
>>
File: bjarne.png (91KB, 136x275px) Image search: [Google]
bjarne.png
91KB, 136x275px
>ywn ruin programming as much as this danish gnome
>>
File: Capture.png (3KB, 148x185px) Image search: [Google]
Capture.png
3KB, 148x185px
>>61781433
>>61781435
Ooops wrong pic. yeah I understand perfectly bidirectional implication, it's this IMP that is giving me a hard time.
>>61781410
So if it rains the pavement is wet but if the pavement is wet it didn't necessarily rained right? Same thing as the example from >>61781376
Thanks a lot for your example, I will try to think a little harder about it, it doesn't seem impossible to figure out :)
>>
>>61781589
first two cases
(0 => _) = 1
ex falso quodlibet
"from a falsehood, anything [follows]"


Third case
(1 => 0) = 0
Imagine the suggestion "p implies q"
Well if p is true (1), and q is false (0), then obviously p doesn't imply q - hence (1 => 0) = 0.

Last case
(1 => 1) = 1
As far as we know, "P implies Q" is true.
>>
>>61781639
>"from a falsehood, anything [follows]"
Not in this way, surely. That refers to contradictions.

I'm not sure, though. How are you supposed to interpret truth tables in this case? 0, 1 surely doesn't prove a => b, but it doesn't disprove it either. Are we just listing the scenarios where a => b might still be true?
>>
>>61781716
>"from a falsehood, anything [follows]"
> Not in this way, surely. That refers to contradictions.
Not him, but this applies everywhere.
>>
>>61781716
Falsity is a contradiction
Try the wiki article
>>
>>61781716
>>61781639
more from the french wikipedia page: "a => b means that "a" is a SUFFICIENT condition for "b", but "b" is a NECESSARY condition for "a"."
>>
>>61781771
A contradiction is ~P^P, not just ~P
>>
>>61781844
~P itself isn't falsity, falsity is, e.g.
(forall a. a)
or
(exists a. ~a AND a)
>>
>>61781885
The latter is a contradiction for sure. But how does that apply here? Surely we don't make an assumption on the truth value of a beforehand
>>
>>61781904
A contradiction is false
Might have messed up the former, I was referring to more type theory stuff.
I think this is more the logical interpretation

(forall a. P -> a)
P must be false.
>>
>>61781963
Recast it in terms to a = it rains, b = the street is wet, like the other anon did. I think you're coming at this from the wrong way.
>P must be false
P can be a, at the very least
>>
>>61782010
No, P can't be a, because it's forall a.
>>
>>61782010
>>61782046
hence the previous
P -> (forall a. a)

where (forall a. a) is sort of like a "all propositions are true", i.e. if you have a (forall a. a) then you just substitute a for any proposition
>>
File: EternalStruggle.png (380KB, 736x460px) Image search: [Google]
EternalStruggle.png
380KB, 736x460px
Is it possible to write a driver for a device you dont have specs for? I want to reuse an old android phone's touchscreen for a project, and I'm not sure I could get the driver source.
>>
>>61782010
>>61781963
>>61782068
>>61781904
>>61781885
>>61781844
>>61781777
>>61781771
>>61781763
>>61781716
>>61781639
K I think I got it, let's try line by line with:
a=I live in Paris (true/false); b= I live in France (true/false)

L.1 "I don't live in Paris, I don't live in france" I'm telling the truth.
L.2 "I don' live in Paris, I do live in france" I'm telling the truth.
L.3 "I live in Paris, I don't live in france" I'm lying (no, I'm not talking about Paris Texas).
L.4 "I live in paris, I live in france" I'm telling the truth.
>>
>>61782190
Specify. What are you telling the truth about? a and b are input parameters, we're not evaluating their truth values.
>>
Finding a new job.
Even though I hate social media, LinkedIn is a really nice tool.
>>
Trying to get back into programming, cant even get stupid lua game to work.

Collision isnt working, but when I copy/paste the collision function into the sample code it works fine there??

>inb4 brainlet
>>
>>61782411
Golly gee, calling the fucking function sure did help
brainlet confirmed.
>>
File: 1498131202415.jpg (90KB, 1280x720px) Image search: [Google]
1498131202415.jpg
90KB, 1280x720px
>>61781517
>that font rendering
>>
Anyone have that C++ "monster" image?
>>
>>61782803
>>61782803
>>61782803
>>61782803
Samefag
>>
Common Lisp is the perfect language. But it's unusable because it's dynamically typed and deploying applications with it is such a pain. The only decend way to deploy is implementations that compile to C but the quality of those isn't so great.
>>
File: not samefag.png (5KB, 371x130px) Image search: [Google]
not samefag.png
5KB, 371x130px
>>61782833
Nice try
>>
>>61782858
I know that you can edit it easily
To prove your innocence you need to go on twitch an stream yourself ctrl-F5 the browser window
>>
>>61782855
Use Clojure instead.
>>
>>61782894
Not lisp, also it sucks.
>>
>>61782899
>Not lisp
Why not?
>also it sucks
Your mom does too.
>>
>>61782411
>61782411
who are you quoting?
>>
>>61782890
I didn't edit the image
>>
File: file.png (24KB, 675x170px) Image search: [Google]
file.png
24KB, 675x170px
>>61782890
where is your god now?
>>
>>61782890
>To prove your innocence you need to go on twitch an stream yourself ctrl-F5 the browser window
will use this from now on, brilliant senpai
>>
File: 1497435831633.gif (301KB, 350x464px) Image search: [Google]
1497435831633.gif
301KB, 350x464px
What book should I use to start learning C?
I don't really have any specific goals in mind, but people have said that learning C will be very helpful for learning any other languages in the future.
>>
>>61782915
Riddle me this then

If each programming language were to be represented by a cute anime girl, and if the tit size of each anime girl were to be inversly tied to its low levelness and its thiccness were to be tied to its memelevel, who would be the cutest anime girl?

Just a reminder there is only one correct answer that will prove your innocence
>>
>>61782953
C Programming: A Modern Approach
>>
>>61782962
kill yourself
>>
>>61782953
>but people have said that learning C will be very helpful for learning any other languages in the future.
C is the least helpful language for that. It's helpful to understand how a computer works though.
>>
>>61782962
Yotsuba is the cutest anime girl
>>
>>61782980
Thanks anon
>>
>>61782962
idk about cutest, but Rust would be the milfiest based on those parameters
>>
>>61782986
>Brainlet can not grasp the question and lashes out
Sad.
>>
>>61782953
If you want to do really cool hardware level shit learn C using the memebook in the OP
Otherwise if you want to do stuff thats entirely software learn Python. I don't know a good python book, but the language can be used procedural, OOP, and Functional, while C is ONLY procedural or functional w/o lambdas
>>
File: 1496092914747.jpg (60KB, 611x560px) Image search: [Google]
1496092914747.jpg
60KB, 611x560px
http://www.strawpoll.me/13650170
Nothing like a good strawpoll.
>>
>>61783161
>GML and Go but no Haskell
>>
>>61780778
that's pretty shallow and shit, tb.h

>class deconstructor

find somebody with deep knowledge
>>
Could anyone give me a guide to becoming actually competent with C?

i want to work on little hobby projects but I'm so terrible at C i cant make anything worthwhile besides text based calculations.

ridicule my code please, https://github.com/cannibal2021/Voxos-c
>>
>>61783209
Use a build tool like CMake or at least create a makefile yourself.
>>
>>61782962
>>61782991
Answer me
>>
>>61783161
Perl? :(
>>
>>61783161
How the fuck did you come up with that list?
>>
>>61783259
any other suggestions?
>>
>>61783161
>>>>>>>>>>>>SQL
>>
>>61783330
If you hate yourself: autotools.
>>
File: 1500935859859.jpg (60KB, 512x512px) Image search: [Google]
1500935859859.jpg
60KB, 512x512px
>>61783161
>no HolyC
>>
File: 1501897527889.jpg (34KB, 384x420px) Image search: [Google]
1501897527889.jpg
34KB, 384x420px
>>61783348
i mean for learning C, sorry
>>
>>61783330
Ignore >>61783348, I misread.
- your formatting is fucked up
- too many files for such a small project
- variable names should be lowercase
>>
What text editor should I use for Python? I want something clean and concise.
>>
Reminder that anyone who uses an OS other than Windows literally believes computer programs are made of magic elves
>>
>>61783406
nano, vim or emacs
>>
>>61783410
elf64 = 64 elves
>>
>>61783161
Ruby on first place, then c++.
>>
>>61783410
>Implying I'm not an magic elf
>>
File: half elves are for.jpg (7KB, 249x174px) Image search: [Google]
half elves are for.jpg
7KB, 249x174px
>>61783457
elves are for _
>>
Are recruiters helpful? I feel like it's a trap.
>>
>>61783410
If windows supported ELF format, you could just run linux programs in windows and windows programs in linux assuming correct shared libraries existed on both platforms.
>>
>>61783490
What stops Microsoft from stealing the ELF layer from BSD and implementing it on Windows?
>>
>>61783410

There are no ELFs on Mac OS X, only Mach-O files.
>>
>>61783515
>macho files
>>
>>61783467
A-anal&slavery
>>
>>61783506
Pajeets couldn't do anything right even if their live depended on it
>>
File: s.png (88KB, 1680x1050px) Image search: [Google]
s.png
88KB, 1680x1050px
>>61776941
>What are you working on, /g/?

Exploring the deepest, darkest corners of Racket.
>>
>>61783532
that's pretty dark bro
>>
>>61783548
Why do you never explore the light, shallow corners?
>>
About to make a web scraper in Python 3 to search Reddit via Google. That's it.
>>
>>61783553
Nothing wrong with gentle masters.
>>
>>61783548
Does Racket have transducers?
>>
>>61783506
Windows now has a BASH program you can install that is basically a full Ubuntu os, everything that runs on linux can run on it
>>
>>61783578
dark elves
get it
>>
>>61781582
Why everybody here seems to hate C++??
>>
>>61783577
requests.get('https://google.com/?q=site:reddit.com+gay+redditor+shit')

wow project done
>>
Java is a good language.
>>
>>61783628
I fucking wonder, maybe because it's so damn awful?
>>
>>61783638
Java is OK, JVM is god tier.
>>
>>61781582
>ywn
what's that?
>>
>>61783638
No. C# is a good language. Java is deprecated garbage.
>>
>>61783625
!Stop
>>
>>61782190
As this guy, >>61782296, says, you're misunderstanding a and b; they are either 'true' or 'false'.

If a is false, then anything may be implied from nothing, hence the first two original answers. If a is true, and b is false, then a does not imply b. If both a and b are true, then a implies b.

C'est facile.
>>
>>61783640
Why it's so damn awful?
>>
>>61783653
"You will never"
>>
>>61783702
k

I have ideas tto
>>
>>61783581
no
>>
>>61783694
different anon here but: bjarne is a wimp

he didn't do what needed to be done and let various factions of "the committee" run trains on him
>>
>>61780421
>multiple months for everything
If you're learning for 20 minutes at a time, maybe
K&R? 2 months? Seriously? You can master that shit in 2 weeks.
>>
>>61783467
Wizards with weak constitutions and stereotypical archers.

>>61783578
>Anon kidnaps an elf to make into his slave
>Gets shot in the left nut by said elf's wife with a longbow.
>>
>>61783839
>Wizards with weak constitutions and stereotypical archers.
That's racist
>>
>>61783777
>Many C++ design decisions have their roots in my dislike for forcing people to do things in some particular way [...] Often, I was tempted to outlaw a feature I personally disliked, I refrained from doing so because I did not think I had the right to force my views on others.

>Bjarne Stroustrup

he did the right thing
>>
>>61783887
>let niggers run around destroy buildings and burning everything
>I didn't stop them because I didn't want to force my view of peace on them
>>
>>61783934
Isn't that the Rust mindset?
>>
>>61783887
>I did not think I had the right to force my views on others.
yeah, same thing >>61783777
>>
>>61783857
Yes, well, when you get -2 CON, there's not a lot you're good for. At least dwarves dump a useless stat (unless you're planning a long game to turn your wizard into a lich, in which case, CON will eventually become a useless stat and CHA will ironically be the most important).
>>
>>61776941
Writing a letter to my congressman about what a fuckup he is and how I won't be donating to the RNC anymore.
>>
>>61783934
>I don't think those black dicks belong in my wife's ass
>I didn't stop them because I didn't want to force my view on others
>and t b h witnessing it turned me on
>>
>>61783999
>wasting time and effort on politics
ayyyy
>>
I want to make a bunch of those cheap p2w browser mmos and I have virtually all the skills except knowledge of networking. Where do I start to study?
>>
File: 1495734019609.jpg (71KB, 750x573px) Image search: [Google]
1495734019609.jpg
71KB, 750x573px
>>61784056
how can you not, since 2016?

I TRY to limit reading news to minutes every day but holy fuck is it hard to not look at the burning dumpster fire in DC
>>
>>61784093
I'm from the EUSSR, so I have no clue what's going on in DC.
>>
File: finnishpepe.jpg (34KB, 655x527px) Image search: [Google]
finnishpepe.jpg
34KB, 655x527px
>>61784093
>burning dumpster fire in DC
>economy is better than ever
Are you perhaps a bit retarded?
>>
what the fuck guys
>>
>>61784173
what
>>
File: 1501030429602.gif (2MB, 281x272px) Image search: [Google]
1501030429602.gif
2MB, 281x272px
>>61782096
Pls respond I'm scared about destroying shit
>>
>>61784200
>write driver without having specs
no
>>
>>61784200
The Linux kernel usually comes with drivers that work for your touchscreen. If not, too bad.
>>
>>61777869
Java is a fine first language.
>>
>>61784163
>economy is better than ever
growth slowed, currency in free fall, trade wars around the corner and other idiotic policies just taking effect*

yeah "better than ever"

*https://twitter.com/politico/status/894586962488643584
>>
>>61784093
>but holy fuck is it hard to not look at the burning dumpster fire in DC
Remember when everybody thought every decision Bush made was the worst possible fucking thing and we were all going to die and get into WW3 because he talked like a goof?
Remember how everybody looks back on it and in retrospective admits he did a pretty solid job?

Living through a presidency is much different than looking back on it. Everybody hates every president when they're in office, whether or not it's a real life version of Richie Rich is irrelevant.
>>
>>61784237
>Using a tweet as evidence
>From Politico
>An agency that was shown to be funded directly by the DNC
>Blaming trump for pipeline slowdowns instead of all the stupid fucking hippies illegally protesting its construction for misguided reasons
good job
>>
>>61784244
>Remember how everybody looks back on it and in retrospective admits he did a pretty solid job?
hahahaha
>>
>>61784262
>>Using a tweet as evidence
it's a news article you brainwashed drone
>>
anyway, let's please stop. i don't know how you got started on this and i don't want to know
>>
>>61784163
The economy is doing better than ever AND there's a burning dumpster fire in DC that will probably end everything in a nuclear holocaust.

>>61784056
Hey man I gotta pretend like I did something.

>>61782096
Of course you can but it's hard. It would probably take you weeks if you were experienced. How do you think they make emulators and jailbreaks?

You need to get experience for that kinda shit though. And you need hardware. I'd start with an easier reverse engineering project.

The touchscreen is maybe off the shelf though so I'd try to figure out who made it first though. If it's off the shelf then you're golden because it's probably reverse engineered or has drivers.
>>
File: droolingpepe.jpg (9KB, 238x192px) Image search: [Google]
droolingpepe.jpg
9KB, 238x192px
>>61784237
>https://twitter.com/politico/status/894586962488643584
>Government funded projects are down
>Private industry is up
>https://www.cnbc.com/quotes/?symbol=.DJI

I was wrong, you were bordering full-retard territory.
>>
    .global    printint
.global printeol
.global printstr
.text
digits: .ascii "0123456789"
eol: .ascii "\n"
printint:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -8(%rbp)
movq %rdi, %rax
movq $1, %rdi
movq $10, %rbx
.Lscan:
cmpq $10, %rax
jl .Lprint
cqo
divq %rbx
xchgq %rax, %rdi
mulq %rbx
xchgq %rax, %rdi
jmp .Lscan
.Lprint:
movq -8(%rbp), %rax
cmpq $0, %rdi
jle .Lend
cqo
divq %rdi
movq %rdx, -8(%rbp)
movq %rdi, %rbx
movq $1, %rdi
leaq digits(, %rax), %rsi
movq $1, %rdx
movq $1, %rax
syscall
mov %rbx, %rax
cqo
mov $10, %rbx
divq %rbx
mov %rax, %rdi
jmp .Lprint
.Lend:
popq %rbp
retq
printeol:
movq $1, %rax
movq $1, %rdi
movq $eol, %rsi
movq $1, %rdx
syscall
retq
printstr:
movq $0, %rax
.Llenbeg:
cmpq $0, (%rdi, %rax)
je .Llenend
add $1, %rax
jmp .Llenbeg
.Llenend:
movq %rdi, %rsi
movq $1, %rdi
movq %rax, %rdx
movq $1, %rax
syscall
retq
>>
>>61784237
Hey anon did you hear the C++ standard committee said Go is a racist language. Click my blog link to find out more.
>>
>>61784343
>go racist
Rob Pike is gay nigger.
>>
>>61784360
>Rob Pike
More like: Rob Dyke
XDDDDDDDDD
>>
I'm trying to review OOP stuff for interviews, my notebooks from class are trashed, and were pretty shit anyway.

Any good resources?
>>
>>61784289
>The economy is doing better than ever
no it's not, look at the value of the US$ ... that's one of the reasons the stocks are up and others are huge expected tax cuts (just think of the value of the proposed "tax holiday") and deregulation

it's a one time thing that burdens the budget and causes huge long term harm, which will really show years from now like it did in 2008
>>
File: wallhaven-513116.jpg (757KB, 2560x1600px) Image search: [Google]
wallhaven-513116.jpg
757KB, 2560x1600px
I think CUDA hates me. I'm working on some code for my physics research group (almost more akin to mathematics, but whatever, credit, money [am being paid], and a name on a published paper will be mine), and the evolution has been to implement our code from Python in C++/CUDA. Every. Single. Step. Every single step has been like pulling teeth and getting blood from a stone. Now I've just about got it working in CUDA to really get down to debugging that part of it and making sure I haven't screwed up something terribly mathematically important (spoiler alert: I probably have). Except, I think the Essential Phone and Cold Fusion will arrive before this behemoth is complete (worse part: it's not even a dense 400 lines of code).

I don't know, /g/ & /sci/, do I really want to make my career about Computational Physics? I'd be lying if I said I didn't love just about everything about it, but damn, it might just kill me.
>>
>>61784438
>cuda
>not openCL
it's your own fault
>>
>>61784457
Oh I'm sure I'll have to deal with openCL someday anyways, and I'm sure it'll go pretty similarly.
>>
>>61784360
"Racist" gay nigger, Rob Pike, refuses to address problematic Go community. Click my blog link to find out more.
Also check our our featured daily article "how C seg faults caused the Hindenburg disaster"
>>
>>61784339
>AT&T
tl;dr
>>
>>61784490
It's just a syntax anon.
>>
>>61784530
Programming langauges are syntax, it's the only thing they have and separates them from others.
The syntax is the most important component of programming language, they really can't afford to make shitty syntax.
>>
>>61784620
wrong
>>
File: aaaa.jpg (35KB, 317x344px) Image search: [Google]
aaaa.jpg
35KB, 317x344px
I FUCKING HATE WEB DEV AKA WEBSHIT REEEEEEEEEEEEE

BUT IT'S THE ONLY VIABLE PLATFORM TO ACTUALLY MAKE SHIT ON OTHER THAN MOBILE WHICH IS EVEN GAYER REEEEEEEE
>>
>>61784668
dumb sepples poster
>>
>>61784488
>>61784343
>every news story reporting the chaos and incompetence is my blog
go back to reading exclusively Ruppert Murdoch anal excrements

the old jew oligarch knows how to play the rubes long enough to get his sweet tax cuts, then he'll dump the buffoon like he dumped Bill O'Reilly
>>
>>61784620
>The syntax is the most important component of programming language
No. It's the leat important.
>>
>>61779756
Its a shame that dreams dont last forever, eh?
>>
>>61784726
dumb sepples poster
>>
>>61784740
>wake up
>already retired, having had a starting salary of 12bn
>>
>>61784530
Doesn't make my eyes bleed any less
>>
NEW

>>61784776
>>61784776
>>61784776
>>61784776
>>
>>61784289
Its not off the shelf, its a cheap Chinese knockoff
What would you suggest learning with? I have a lot of time soon
>>
>>61784745
No. I am a proud C89/OCaml coder.
>>
File: da2[1].png (303KB, 600x600px) Image search: [Google]
da2[1].png
303KB, 600x600px
Im fucking tired of this shit. Ive been dealing with this for two days and i cant get this piece of shit to work.
>I made a program that uses selenium.
>Selenium uses geckodriver.
>I included geckodriver in the installation folder of my program
>Program requires geckodriver to be in PATH.
>easyenough.jpg
>try to write batch file
>fucking windows is on her period and decides to fuck my shit up
>lets google this
>i know what path is
>stack overflow
>I no longer know what path is
>fuck everything up
>VM shits itself because im not fucking my own computer.

Im done with this shit. Please, PLEASE help me anon.
Geckodriver is gonna be on c:/Program Files (x86)/Coordinator/geckodriver.exe.
program is gonna be installed on many computers so it has to be compatible with many drive letters and so.
>>
>>61784866
%programfiles%/coordinator/geckodriver.exe
>>
>>61784953
alright. now how do I add the thing to path?
I tried using setx but it did exactly everything except what i wanted.
>>
>>61777654
>>61777820
>>61777765
>}else{
whats wrong with }else{ ?
Thread posts: 320
Thread images: 49


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