[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: 318
Thread images: 35

File: K&R himegoto waifux2.png (1MB, 1000x1400px) Image search: [Google]
K&R himegoto waifux2.png
1MB, 1000x1400px
old thread: >>52236960

What are you working on, /g/?
>>
LSB Steg data hiding!
Only works with PNG rn, but you can hide any file you want(and get it out).
Pretty fun stuff.
Any feedback would be appreciated :)
https://github.com/nicosogangstar/Steg
>>
Thanks to the anon who helped me earlier with the second method.

Converting to and from hex doesn't work but I think I'd have to rewrite it to support that.

# convert a decimal to a given base
def d2b(dec, base):
stack = []
result = ''
while dec > 0:
rem = dec % base
dec = dec / base
stack.append(rem)
while stack:
result += str(stack.pop())
print result

# convert the number back to its decimal representation
def b2d(num, base):
result = 0
for n in str(num):
result *= base
result += int(n)
print result

d2b(412,6)
b2d(1524,6)
>>
>almost 2017
>not using a programming language that compiles to PDF
>>
>>52240629
I didn't know a PDF could be executed
>>
Nothing, I haven't been working on anything for ages, I just shitpost in /dpt/.
>>
Why do people use for (;;) instead of while(1)?
>>
>>52240707
JS and Lua can both be embedded within PDFs.
Many PDF viewers disable these 'features' for obvious security reasons, but the standard technically supports it.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
>>52240730
for(;;)
is less characters than [code[while(1), so the resulting source code is cheaper on hard drive space.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
>>52240733
>This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.

Does this mean that 4chan is now GNU too?
>>
>>52240707
it's a new meme jsyk

oh also pdf > c++
>>
Threadly reminder that you should not refer to the act of programming as coding. It is improper and makes you look like a 16 year old

You are a programmer, not a coder

Software Alchemist is GOAT
Developer is okay
Magician is okay
Software Magus is okay
Software Engineer is okay
Software Architect is okay
Code Guru is okay


Archmage is reserved for only the most senior of programmers

Writing in HTML and CSS is not programming, therefore it should be refereed to as designing
>>
>>52240752
I'm putting your post in my proprietary software.
>>
>>52240761
I'm not sure. I think so. The website does very clearly and explicitly say "Comments are owned by the Poster." As the owner of my comments, I choose to license them under the FDL.
I suppose that means that it's up to 4chan.org to ensure that the rest of the website compiles with the legal responsibilities of hosting FDL-licensed documentation.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
>>52240787
this took up 75% of the thread last time. lets not do that again poo in loos
>>
>>52240787
STOP POSTING THIS.

YOU'RE COMPLAINING ABOUT SOMETHING THAT DOESN'T EVEN EXIST ON /dpt/.

REEEEEEEEEEEEEEEEEEEEEEE

You're just making me want to start a thread with "Daily Coding Thread" in the title just to trigger you.
>>
>>52240761
>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.

He's simply releasing his comments under a copyleft license instead of the typical copyright all rights reserved.

For maximum autism, he should include
>You should have received a copy of the GNU Free Documentation License
along with this work; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52240500
Reminder! Nobody cares about definitions, they're just words! Who cares what 1 means? 1+1 = potato! Checkmate, atheists!
>>
>>52240838
>DID YOU JUST SAY CODER FAGGOT YOU MEAN PROGRAMMER REEEEEEEE
>>
2016 meme list:
>averaging two numbers
>negative numbers
>prime numbers
>compile to pdf
>programmer x coder
>print string with length < 0
>>
File: wq.png (316KB, 663x665px) Image search: [Google]
wq.png
316KB, 663x665px
I don't like Euclid anymore, I just found out he was black.

Geometry is meme.
>>
>>52240847
Right now I'm just trying to figure out how the invariant clause works into a body of writing that will literally never change.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
>>52240894
>EUCLID IS A NIGGER

yeah I can see that being a new meme
>>
>>52240879
don't forget
>pair programming with a qt crossdressing coder bf
>>
What is the best Linux distribution? Seems like most of them are made for newbies or just memes.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
Learning C++. Slowly. As I found out, I am shite at programming, but intend to get better. Also trying to wrap my head around LUI for Linux.
>>
>>52240922
Doesn't matter, Linux itself is written in C. C is incapable of compiling to PDF, so Linux cannot possibly be a good operating system.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
>>52240913
I generally don't like black people, but there's no need to say "nigger".

It just makes you like like an edgelord.
>>
>>52240931
what are you struggling with anon?
>>
What are good books for programmers to read that aren't explicitly about programming? Like "The Art of Learning", as an example.
>>
File: 2016-01-04-230234_452x308_scrot.png (27KB, 452x308px) Image search: [Google]
2016-01-04-230234_452x308_scrot.png
27KB, 452x308px
srs having trouble doing pic related in haskell
fahrenheit c = do
putStr $ show (c) ++ " "
putStrLn $ show (c * 9 / 5 + 32)

works, but I have trouble with mapping over nums, pls halp
>>
>>52240922
Install Gentoo.
>>
If you want to keep memeing in the future, please use this version of the GNU Free Documentation License.

>This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permissions is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52240894
Fucking SJW, niggerwashing the mathematicians now! What next, gods?
>>
>>52241027
>permissions

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. A copy of the License can be found at https://gnu.org/licenses/fdl.html.
>>
File: hgb.jpg (104KB, 1280x720px) Image search: [Google]
hgb.jpg
104KB, 1280x720px
>>52241036
I agree, but can you try not to sound like a foaming at the mouth retard.
>>
>>52241044
sorry senpai

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52240970
Mostly just remembering what does what and trying to relearn how to think from 12 years of being a classically trained musician to the much more mathematical world of code.
>>
>>52241069
And a takbir to you too young fidel.
>>
>>52240955
>>52241069

this is 4chan not your "girlfriend's" house. You can loosen up.
>>
>>52241098
>he can't into gentoo!
>>>/reddit/
>>
>>52241125
>>52241098
>>52241088

signatures are against the rules
>>
>>52241008
actions :: [IO ()]
actions = map fahrenheit temps

main :: IO ()
main = sequence_ actions

https://www.haskell.org/hoogle/?hoogle=%5BIO+a%5D+-%3E+IO+%28%29
>>
>>52241152
It's not a signature

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52241147
>installed Gentoo 3 times
>keep uninstalling it because it's just a fucking timesink..
>that breaks every update
nah, i got to program stuff instead of fixing my distro.
>>
>>52240879
How are prime numbers a meme?

I understand the reasoning behind negative numbers because it's impossible to have, physically, a negative amount of items. You can add items to an empty list, you can't take away items from an empty list.

But prime numbers? You can physically have a prime number of things. If I have 7 apples I can only share them evenly between 7 people or 1 person.
>>
>>52241152
This is not a signature, this is a matter of personal, professional, communal, softwaric, and civil freedom.

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
File: dilbert.gif (38KB, 640x199px) Image search: [Google]
dilbert.gif
38KB, 640x199px
>be software engineer
>project has multiple environments (dev, testing, production)
>management decides to hire separate testers who aren't software engineers and aren't skilled in computers beyond basic usage
>security team decides that for maximum security developers should only have access to the dev environment and not the test environment
>testers find bugs in the test environment
>cannot reproduce in dev environment
>since testers aren't engineers, they can't investigate it
>since I don't have the security permissions, I can't investigate it

I literally just went home at 1:30 PM today. Nothing was going to get done, so I might as well go home to take a nap. I know it won't be long before management starts asking why the project is late.
>>
>>52241160
thanks f.am
i forgot about mapM_ and sequence
>>
>>52241194
Just stop trying.
The ship is going to sink regardless of the amount of effort you put in.
>>
>>52241194
>run into some difficulties
>give up and go home
That's the spirit!

This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52241127
Repetition is the best way to learn just like in music. It'll become fluent soon enough.
>>
Functional programming? What's that?

#![crate_type="lib"]

const VGA_ADDRESS: usize = 0xB8000usize;

#[no_mangle]
pub fn write_vga(buf: *mut u16, nbytes: usize) {
let mut dst: usize = VGA_ADDRESS;
let mut src: usize = buf as usize;
let end: usize = src + nbytes;

while src != end {
let dptr = dst as *mut u16;
let sptr = src as *mut u16;
unsafe { *(dptr) = *(sptr); }
src += 2usize;
dst += 2usize;
}
}


Generated assembly:
0000000000000000 <write_vga>:
0: 45 31 c0 xor %r8d,%r8d
3: 48 85 d2 test %rdx,%rdx
6: 74 1e je 26 <write_vga+0x26>
8: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
f: 00
10: 66 42 8b 04 01 mov (%rcx,%r8,1),%ax
15: 66 41 89 80 00 80 0b mov %ax,0xb8000(%r8)
1c: 00
1d: 49 83 c0 02 add $0x2,%r8
21: 4c 39 c2 cmp %r8,%rdx
24: 75 ea jne 10 <write_vga+0x10>
26: c3 retq


I have to admit, that is some damn sexy and efficient assembly.
>>
File: 50314_288865372137_2985807_n.jpg (12KB, 200x219px) Image search: [Google]
50314_288865372137_2985807_n.jpg
12KB, 200x219px
>>52241220
>>
>>52241190
Stop thinking with apples.
>>
>>52241194
Escalate your problem up the chain since you are being restricted from solving it. It's not that hard to talk to people.
>>
>>52241236
Could you use intel syntax please?
>>
>>52241224
That's the hope, I'm thinking about cybersecurity after the Marines, so I figured I mind as well start to learn the basics of what I'll be working with. Do you know of any good sites that will quiz you on the basics of coding? It kinda feels like music theory, honestly and writing code is music comp. Both are kicking my ass...
>>
>>52241143
I just think if we act like retards with "hurr durr niggers, SJWs" we'll never win the argument senpai.
>>
>>52241180
>I've never used gentoo but if I say random bullshit that literally cannot happen in this particular distro they'll believe me!!1
>>
Help me /g/ please, I'm trying to learn lua here and the shit makes no sense

I've defined two functions
function norm (x, y)
return (x^2 + y^2)^0.5
end
function twice (x)
return 2*x
end

They work just fine, then I call the functions like so

n = norm(3.4, 1.0)
print(twice(n))

The output is 7.0880180586677

Which also works, my problem is the question in the book afterwards

Exercise 1.1: Run the factorial example. What happens to your program if you
enter a negative number? Modify the example to avoid this problem.

Now it will output the same result which is
7.0880180586677

I don't see how inputing a negative value and it coming out as a positive is broken, did I skip pre-algebra or isn't that how exponents work?
>>
>>52241180
>only installed it three times

You're not yet a /g/-tier memer, senpai. You still have work to do.

Now when you're posting free content via Gentoo and your tripcode says "FSF !LGPLv3", then you've won.


This post is licensed under the terms of the GNU Free Documentation License, Version 1.3. Permission is granted to copy, distribute, and/or modify this document under the terms of the License or any later version published by the Free Software Foundation. You should have received a copy of the GNU Free Documentation License along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
>>
>>52241278
k.
>>
so i got a new software qa job which i start tomorrow. ive coded in python and selenium before, but now ill be using java to execute my selenium scripts. ive taken the java codecademy course to get up to speed on the basics in syntax differences, but is there any other major things i should be trying to learn about?

not looking for any hand holding but a link or two to some nice articles or instructional videos would be cool.
>>
File: Logo.jpg (5KB, 206x206px) Image search: [Google]
Logo.jpg
5KB, 206x206px
>>52240500
Wrote an addon for mozilla that pipes video to your chosen media player (only mpv is supported currently).

Basically you rightclick. a link to a vid and press the pipe to media player button then BOOM it plays it.

Supports Twitch and Youtube at the moment
And only runs on Linux.

Release:

https://github.com/SpaceDustTeapot/piper/files/77948/piper-0.3.0.release.zip

Source:

https://github.com/SpaceDustTeapot/piper
>>
>>52241257

I was not aware that objdump supported other syntax formats. Learned something new today.

$ objdump -M intel -d vga.o

vga.o: file format pe-x86-64


Disassembly of section .text:

0000000000000000 <write_vga>:
0: 45 31 c0 xor r8d,r8d
3: 48 85 d2 test rdx,rdx
6: 74 1e je 26 <write_vga+0x26>
8: 0f 1f 84 00 00 00 00 nop DWORD PTR [rax+rax*1+0x0]
f: 00
10: 66 42 8b 04 01 mov ax,WORD PTR [rcx+r8*1]
15: 66 41 89 80 00 80 0b mov WORD PTR [r8+0xb8000],ax
1c: 00
1d: 49 83 c0 02 add r8,0x2
21: 4c 39 c2 cmp rdx,r8
24: 75 ea jne 10 <write_vga+0x10>
26: c3 ret
>>
>>52241219
Sure feels that way. I've managed to make some improvements, but it's a lot of struggle for few gains.
>>52241220
When a project is in a death spiral, it's hard to work up the motivation to keep going; especially when everyone around me has clearly given up.
>>52241256
I emailed some people about it. The response is "I'll look into it" which means they'll sit on it for two or three weeks before I get a decision about what to do.
>>
File: ogk2Fzd.jpg (228KB, 870x864px) Image search: [Google]
ogk2Fzd.jpg
228KB, 870x864px
What's better: Scala or Haskell?
>>
>>52241541
What are you looking for?
>>
>>52241364

That already exists, it's called Open With
>>
>>52241546
Functional programming, but also want libraries and the language to not be useless
>>
>>52241563
>useless
There's that word again.
>>
File: consider:.jpg (31KB, 500x375px) Image search: [Google]
consider:.jpg
31KB, 500x375px
I've made a compression algorithm that, while computationally expensive, wipes the floor with every other algorithm that I can find. It can compress files to 15% of their original size. How do I proceed?

[spoiler]Also I'm broke, so I wouldn't mind not being poor.[/spoiler]
>>
>>52241364
>https://github.com/SpaceDustTeapot/piper
Interesting. I was thinking of how something like this would be possible to create since Safari doesn't support webm. I've since switched back to Firefox but interesting project none the less. Will check the source code.
>>
>>52240500
What is needed to code on windows 8?
>>
>>52241572
Forgot to add: only the encode step is really slow. Decode should be comparable to DEFLATE/ gzip/ whatever.
>>
>>52241572
Do the same thing Linux does. Give it to plebs for free, charge out the ass for commercial use. Get nerd boipussy and rake in the shekels.
>>
>>52241594
A Linux VM.
>>
>>52241594
Notepad and a black dildo.
>>
>>52240894
Guardian actually prints that shit.
>>
>>52241572
>be broke
>make compression software
>is already covered by patent
>get sued
>get broker
>>
>>52241572
patent it
>>
>>52241665
You can't patent what's already been patented by a man
>>
>>52241591
The source code isn't the cleanest if I'm being honest. If Safari supports addons then it should be a piece of cake to port this addon over.

>>52241557
Can't find it.
>>
>>52241594
What language do you want to write with?
>>
>>52241699
Python. I want to learn and ive heard python is good to start with. Too poor to afford a new pc just for linux though.
>>
>>52241541
OCaml.
>>
>>52241594
Masochism.
>>
>>52241726
Use Notepad++, get the Python Indent and PyNPP plugins for it.
>>
File: uh.jpg (49KB, 1280x720px) Image search: [Google]
uh.jpg
49KB, 1280x720px
>>52241624
Yeah, they're just as autistic as stormfront when it comes to the colour of people's skin.

The sad thing is their point of view is socially acceptable and people are getting preferential treatment at university, job interviews, film roles, etc. just because they aren't white and history is getting rewrote to make it less white.
>>
>>52241541
they're both very, very shit but scala is slightly less bad

>>52241568
it's funny because it's true
>>
>>52241572
>It can compress files to 15% of their original size
Confirmed for bullshit. Compression varies wildly from file to file.
>>
>>52241726
not sure what you mean by this, you can install linux on any machine. When I bought my first W8 laptop I just formatted the drive and dual booted xubuntu / pirated windows 7. Also you gain 30+ GB by deleting the default W8 partition table.
>>
>>52241788
It does vary, but those are typical compression values for my test files. It works by extracting high-level symbols from the source data string.
>>
>>52241788
This, text for instance, always compresses well because it has a very small amount of possible characters.
>>
>>52241780
If you think Haskell is useless because of the video of Simon Peyton Jones titled "Haskell is useless", you need to watch the video, because it's obviously tongue-in-cheek unless you're literally autistic. He's saying that Haskell started off "useless but safe" and is moving towards the useful but safe "nirvana" by adding more and more side effects, while most languages have started off "useful but unsafe" and are also moving there, just along a different axis.

Haskell is just as capable of producing a program that "does something" as any imperative language is.
>>
>>52240894
any proof? or is it as retarded as those facebook trolls

>Well, Euclid is 'Euclid of Alexandria' which is in Egypt of course and Eratosthenes was born in Cyrene (modern Libya). So I don't think its erroneous to say they were black mathematicians.
solid fucking reasoning. because geography dictates what race you are
>Various arguments were made later in the comments about whether North African counted as black.
also this
>>
>>52241572
release it for free to became famous
charge for commercial use
>>
>>52241572
don't put it on github
- your lawyer
>>
>>52241849
i think it's useless because i looked at it and it looked like shit
>>
How to link a boost library in windows using cygwin g++? boost library is under C:/boost-dir

In linux I would do:

$ g++ -c chkfile.cpp -I/opt/boost/include -std=c++11

or

$ g++ chkfile.o -o chkfile -L/opt/boost/lib -lboost_filesystem-mt
-lboost_system-mt -std=c++11


 #include <iostream>
#include <boost/filesystem.hpp>
// define a short alias for the namespace
namespace boostfs = boost::filesystem;

int main(int argc, char *argv[])
{
if (argc <= 1)
{
std::cerr << "Usage: " << argv[0] << " <filesystem>"
<< std::end

return 1;
}

boostfs::path p(argv[1]);

if (boostfs::exists(p))
{
std::cout << "File " << p << " exists." << std::endl;
}
else
{
std::cout << "File " << p << " does not exist." << '\n';
}

return 0;
}
>>
>>52241879
That's an even worse reason, Mr. lowercase language shitposter man.
>>
>>52240894
WE WUZ
>>
>>52241826
>It does vary, but those are typical compression values for my test files. It works by extracting high-level symbols from the source data string.
Can you post a binary here or are you going to keep trying to bullshit us?
>>
File: haskell.png (12KB, 225x321px) Image search: [Google]
haskell.png
12KB, 225x321px
>>52241901
it's useful for academic wankery and for pretending you're a real woman
>>
I'm learning win32 C++ programming from Petzold's book, am on page 86 right now and decided to start on a piece of what would later be a calculator.

case WM_PAINT:
{
PAINTSTRUCT ps;
RECT rect;
HDC hdc = BeginPaint(hWnd, &ps);
mathFunctions calc;
int length;
double sum = 0;
WCHAR buffer[40];
WCHAR msg[] = L"Your answer is: %f\n";

GetClientRect(hWnd, &rect);
sum = calc.add(1, 2); // later use buttons for input
length = swprintf(buffer, sizeof(msg), msg, sum);

TextOut(hdc, 0, 0, buffer, length),

EndPaint(hWnd, &ps);
}
break;



Am I on the right track?
>>
>>52241861
https://en.wikipedia.org/wiki/Euclid

In the wiki image he is black so it must be true.
>>
>>52240730
>>52240752
that answer is fucking stupid.

it's because in a while(1) you have to check the status of the condition inside the while each time it completes a cycle, whereas for(;;) it's an empty loop, and doesn't check for shit, which makes it slightly faster in some ( very old ) compilers, in most compilers nowadays the difference would be unnoticiable.

source: C a moddern approach
>>
>>52241918
The prototype is written in a scripting language, and it's also not done yet. Soon.
>>
>>52241935
looks more like a sandnigger/southern european

no fucking way a pitch black african wrote euclid's elements
>>
>>52241927
Haskell is completely useless, unless ocaml - which powers the most popular unikernel, mirage-os, as well as state of the art financial software around the world.
>>
>>52241951
>The prototype is written in a scripting language, and it's also not done yet. Soon.
Always the same old excuse. Can you post a webm of it running then? You have 10 minutes.
>>
>>52241931
I didn't know you could do that with code tags to be honest senpai.
t
e
s
t
i
n
g

t
b
h

f
a
m

s
m
h

t
e
s
t
i
n
g

t
b
h

f
a
m
>>
>>52241964
What makes Haskell useless?
>>
>>52241982
I don't owe you shit. :^)

I'll post back later this week, though. I can even email it to you when it's ready if you'd like.
>>
File: varg.jpg (159KB, 1000x666px) Image search: [Google]
varg.jpg
159KB, 1000x666px
>>52241994
Yeah the last time I tried code tags it fucked up and went after my text so I just threw some returns in just to be safe
>>
>>52241771
Thanks senpai
>>
>>52241958
also the painting is from around 1474 AD and euclid lived around 300 BC so the artist didn't know what euclid looked like or at least he didn't see him with his own eyes
>>
>>52242016
>I'll post back later this week, though. I can even email it to you when it's ready if you'd like.
[email protected]
>>
>>52241958
Euclid was black, anon. It says so right there in the Guardian article.
>>
Next you're gonna tell me Euler was a nig too.
>>
>>52242012
The complete lack of quality control in both changes to the glasgow compiler and interpreter and in the libraries people write for it. Additionally, the significant whitespace, default laziness and insistence on purity.
Finally, its obtuse behavior, like not being able to express correctly a typeclass composed of floats from 0 to 10 by 2 from int, which is extremely relevant because of list expressions.
>>
>>52242099
>Next you're gonna tell me Euler was a nig too.
I feel bad for the goyim who fall for this kind of crap.
>>
>>52241958
Euclid was greek.
>>
>>52241726
>I've heard python is good to start with
If you're only going to use python ever, sure, but python is by no means a good language to help you learn programming in general, you'll find it harder having to relearn everything than you would if you'd just started with a C language from the start.

The features of python that make it attractive for new programmers are the very things that make it bad for new programmers
>>
>>52240894
AYYO
HOL UP
SO U IZ BE SAYIN
WE WUZ MAFMUHJISHUNZ N SHIT?
>>
>>52242154
>C language
top down > bottom up

that being said python is a load of shit
>>
>>52241236
>I have to admit, that is some damn sexy and efficient assembly.
rep movsw would've been better
>>
>>52242154
Whats a good C language to start with? Any plug ins needed for notepad++?
>>
>>52240894
>No black mathematicians have ever won the Fields Medal
Makes me proud
>>
>>52242207
C# is the easiest if you're on Windows, but you'll learn more from C
>>
>>52240894
>fields
>cotton fields
racist ass medal
>>
HOL UP
>>
>>52242221
Any websites i can learn from?
>>
CONDUCTOR WE HAVE A PROBLEM
>>
>>52242254
http://www.cprogramming.com/ isn't completely terrible
>>
>>52242254
Read K&R C
>>
>>52241945
If you are using gcc is the same assembly code that generates at the end
>>
>>52242207
I'd almost advice starting with just Notepad++ and no plugins. Syntax Highlighting is good enough. Try plugins out when you have the basics down.
>>
>>52242121
>insistence on purity
while it might not be as immensely beneficial in Haskell as in other languages, forcing functional purity can aid the compiler's type checker in deciding what kinds of type checks can be skipped at runtime (which is a huge performance gain for dependently typed languages)
the default laziness is a pretty big problem for a lot of kinds of code and a pretty good solution for a lot of other kinds. it's a different paradigm, and while it's not optimal for a lot of tasks, it's not without its uses
>like not being able to express correctly a typeclass composed of floats from 0 to 10 by 2 from int
turn down the yoda a bit
>>52241541
Haskell code is more concise and more fun to write, Scala code is more "enterprise" and makes more sense if you're working with the JVM, but as a language it's got more than enough problems
>>
>>52242306
>Notepad++

No one uses this anymore. Use Sublime Text.
>>
Does anyone know where I can learn some advanced c++ techniques? I can do a lot but I feel like I haven't cracked the surface of what you can do.
>>
File: angry_pepe.jpg (39KB, 900x900px) Image search: [Google]
angry_pepe.jpg
39KB, 900x900px
>>52240946

[TRIGGERED]
>>
>>52240946
Can you compile asm to PDF? If not then PDF really is a meme.
>>
File: spaghetti.jpg (374KB, 1000x1000px) Image search: [Google]
spaghetti.jpg
374KB, 1000x1000px
Am I autistic for doing everything in gnu nano?
>>
>>52242685
I only use nano too, but I'm still learning C.
>>
>>52240752
>I saved 1 byte of hard drive space!
Nigger your source file is aligned to your hard drive block size (usually 4kb) anyway you retard.
You're literally saving no bytes at all.
>>
How do I think like this
https://gist.github.com/Wunkolo/249646f7a922ee045c70
>>
>>52240787
Don't forget wizard.
>>
>>52242843

Learn lots of math.
>>
>>52241945
I'm really tempted to go run Turbo C in virtual box to see what assembly it outputs for each of those loops.
>>
>>52242685
>>52242722
You are literally gimping yourself by using nano
>>
Mostly new to programming. Working on small project to write to a text document and add some variables. Simple stuff. Can't test if it works though as I designed it in a text editor and every time I save the code it saves as the wrong type of file because my pc does not recognize I have Python installed correctly. Every time I just get an error saying python27.dll was missing, even though I have it in the correct directory.
>>
>>52242944
Is it that bad?
>>
>>52242903
>Wunkolo
>the same nigga that made an ascii ray-marcher, eldorito, etc
>made this just today
https://www.youtube.com/watch?v=3_BPdSXID-g
>>
>>52242944
what if I make use of all it's features?
>customizable syntax highlighting using regex
>multiple file buffers
>cutbuffer
>search/replace, also using regex
it's not devoid of features
>>
>>52242911
its a really easy optimization to do. It will probably have to be REALLY old, like 70s old, to not do such a trivial optimization.
>>
>>52241236
>usize
What shit language is this?
>>
>>52241898
fuck this. just going back to dual booting arch and windows.
windows a nightmare to develop on.
>>
>>52243057
looks like rust desu
>>
>>52240710
Same but I shit post on /v/ or /mlp/
>>
>>52243061
Windows is a pain to develop on unless you are using an IDE.
>>
>>52242952
1: Download a text editor that ISN'T notepad, or at least work out how to change the fucking file extension. If you have windows set to hide known file extensions, disable dat shit.

1.5: Download Python 3, it isn't 2008 anymore.

2: Is python in you PATH? Path is a system environment variable, that determines the locations that the operating will look when you try and run an application on the command line, without explicitly specifying it's location. If it isn't, reinstall and tick the box in the installer to put it there. (Or manually edit it yourself, but if you didn't know to do this, you'll probably fuck it up somehow)

3: Open cmd.exe/Command Prompt, type: python C:\Path\To\Your\File.py
>>
Imma learn memacs, wish me luck
>>
I implemented paging in my VM.
>>
>>52243029
Doubt it, compilers were shit back in the day Turbo C days.
>>
>>52243151
VM > OS?
>>
>>52242335
They're already using Notepad++. Also Sublime isn't free(TM).
>>
>>52243163
Even then, the performance introduced by the check would be absolutely negligible.
>>
Where do you guys get the motivation? I'm traditionally a "read as you go" kind of guy, who will google a solution or read the docs as I write, but I bought The Art of Programming over the holidays and want to read it, but can't get myself to sit through to read any of it.

any advice?
>>
>>52243190
hm?
I wrote a PC-like VM in C, and will write a kernel for said VM, if that's what you're asking.
>>
Let's say I have to create a very complex piece of software, which is difficult to plan out mentally.

What's the standard way of designing software in this case? What's the equivalent of blueprint, but for software?
>>
>>52243268
just write it out on paper
if you're unable to scribble together what you want on paper, you won't be able to write a program of that complexity anyway.
>>
>>52243268
Software Design Document with stuff like UML diagrams.
>>
>>52243249
>any advice?

Don't waste your time. How many people tdo you really think read shit like that?
>>
>>52243268
just start writing out code and make shit up as you go.
Or just ponder on it for ages until you got it.
>>
>tfw professor forces you to use GNU/Linux and emacs for this class
>unironically asks you what emacs commands you used to do something
>unironically is teaching us elisp
>>
>>52243249
Those books are a complete waste of time

How much did you waste on that shit?
>>
>>52243286
It's not for others to read idiot.
It's for the programmer so he understands what he's building.
>>
>>52243291
>implying bad things
>>
>>52243307
You might legit have aspergers
>>
>>52243315
He unironically randomly comes into the room and checks to make sure we're doing the lab assignments in emacs and using some distro (and not just on a VM)
>>
>>52243307
Correction, how many programmers do you think actually read that shit? If you are already in a high level comp sci course or something at the level where they are relevant books, you shouldn't need motivation.
>>
I'm watching luminaries, and hearing what they have to say.

https://youtu.be/6QsTfL-uXd8?t=1h8m28s
>>
>>52243249
The Art of Programming is pretty tough to get through desu.
>>
>>52243268
It's like writing an essay. Make an outline on paper. Then draw out the skeleton in your text editor of choice. By skeleton I mean your basic functions. Like if you were gonna make a CLI based calculator your skeleton would look something like.
//Gets the calculator input
func getLine()

//parses the input into RPN
func parseLine()

//parses the RPN and returns the mathematical result
func parseRPN()

//does what a main usually does
funct main()


Then you'd write your actual functions.
>>
File: viper9.jpg (136KB, 500x500px) Image search: [Google]
viper9.jpg
136KB, 500x500px
>>52243378
>modularizing and commenting your code so normies can understand it
>>
>>52243396
I hope for your sake this is bait.
>>
>>52243396
>I only write code like an entry for the IOCCC
>No one should be able to read it later. Fuck future me
>>
File: viper2.jpg (37KB, 400x400px) Image search: [Google]
viper2.jpg
37KB, 400x400px
>>52243426
>forgetting what your code means
>being literally THIS retarded
>not being able to figure out what EVERYTHING does
>not being autistic
>>
>>52243268
TLA+
>>
>>52243378
no, that's a terrible way to to it because you aren't seeing the flaws in your design (which is the goal of a spec)

you write specs in TLA+ because you have to mathematically prove that your design works.
>>
>>52243097
Using Sublime text editor
Yes it is in my PATH I set it up correctly
Still have to do the cmd prompt in the morning I'm tired
>>
>>52243435
A literal autist.

Not even, a meta-autist. I bet you have a whole personality, built around being an autist. You are autistic about your fake autism.
>>
Functions with descriptive names like "getLine()" "parseLine()" "parseRPN()" should be obvious what they do. Especially if they have type signatures.
However, comments should be used very often to explain data structures, explain the links between components, explain more complicated algorithms etc.
>>
>>52243456
now i know, i know, "mathematically", upon hearing that word most of your brains shut down, and your eyes glaze over.

well fear not, because you just have to brush up on your mathematical logic (which is much simpler than the arithmetic you're used to hating) and you're golden.
>>
File: viper10.jpg (155KB, 1440x1440px) Image search: [Google]
viper10.jpg
155KB, 1440x1440px
I'd just like to interject for a moment. What you’re referring to as "the only real Dev language" is in fact, the Node.JS runtime environment or as I’ve recently taken to calling it, Node+JS. Node is not a language unto itself, but rather another free component of a fully functioning JavaScript runtime made useful by the JavaScript core syntax, parser utilities and vital language components comprising a full Dev language as defined by Alan Turing and his great descendant Steve Jobs.

Many computer users run a modified version of the Node runtime in their browsers every day, without realizing it. Through a peculiar turn of events, the version of JavaScript which is widely used on servers today is often simply called "Node.JS" and many of its users are not aware that it is basically the JavaScript language, developed by Netscape. There really is a Node, and these people are using it, but it is just a part of the Dev language they use.

Node is the runtime, the program in the system that allocates the machine’s resources to the JavaScript commands that you run. The runtime is an essential part of a Dev language, but useless by itself; it can only function in the context of a complete Dev language. Node is used in combination with the JavaScript programming language: the whole system is basically JavaScript with Node added, or Node.JS. This so-called "only real Dev language" is really just a distribution of JavaScript.
>>
>>52243457
I'm not familiar with how Sublime Text runs code, I'm sure there is some automatic way that you are doing wrong then.
>>
>>52243484
uh, it's a text editor?
>>
Write self-documenting code with at least moderately descriptive variables and function names, and the only comments you should be writing are when you're doing ugly unintuitive hacks or writing what looks like a black box function.
>>
>>52243497
Yeah, but there must be an inbulit method to compile/run code you write. If it doesn't work for you, you must have not set it up correctly. You probably have to point it to your python dir or something.
>>
>>52243514
There is
I still use the terminal anyway
>>
>>52243482
https://www.youtube.com/watch?v=ame2PH67gnk

Fuck you, you reminded me of this.
Ruined my day.
>>
>>52243510
no code is self-documenting. you're only pretending.

"if you aren't writing your thoughts down, you're only pretending to think"

"if anyone tells you that you don't need to write your thoughts down, what they are really telling you is that you don't need to think"

-Les Lamport
>>
>>52243522
So you mean, you get a python dll error when you try and run python itself?
>>
>>52243534
>"if you aren't writing your thoughts down, you're only pretending to think"

I write my thoughts down when I write code.
You're implying that I need to write my exact reasoning for writing that function at length, so as to bloat up my source files with more comments than actual code like is the case with gnu glibc.
>>
>>52243538
Naw m8, I don't do my programming on Windows, I do it all in Linux, where it would be a simple as typing
python program.py

to run my python programs
>>
>>52243534
>Quotes from a nobody

Thanks
>>
>>52243435
Autist here.
I modularize and comment my code as much as i can, i hate complex and messy code with a passion, i seriously hope you don't intentionally obfuscate your code like a fucking retard.
>>
>>52243563
It's that simple on Widnows too, if you have things correctly installed. It litterally works exactly the same.
>>
>>52243555
when you argue with da boss, you lose.

who's right, /g/? some anonymous NEET on /g/, or recepient of

Dijkstra Prize, twice (2000 and 2005)
IEEE Emanuel R. Piore Award (2004)
IEEE John von Neumann Medal (2008)
ACM Turing Award (2013)
ACM Fellow (2014)

https://en.wikipedia.org/wiki/Leslie_Lamport
>>
if ((type&030)==020) {        /* a function */
printf(".text\n%p:\nmov r5,-(sp); mov sp,r5\n", cs);
declist(0);
strflg = 0;
c = 0;
if ((peeksym=symbol())!=2) { /* { */
blkhed();
c++;
}
statement(1);
retseq();
if (c)
blkend();
return;
}
>>
>>52243569
uh, ok bud.

>>52243608

>Leslie B. Lamport (born February 7, 1941) is an American computer scientist. Lamport is best known for his seminal work in distributed systems and as the initial developer of the document preparation system LaTeX.[2] Leslie Lamport was the winner of the 2013 Turing Award[3] for imposing clear, well-defined coherence on the seemingly chaotic behavior of distributed computing systems, in which several autonomous computers communicate with each other by passing messages. He devised important algorithms and developed formal modeling and verification protocols that improve the quality of real distributed systems. These contributions have resulted in improved correctness, performance, and reliability of computer systems.[4][5][6][7][8]
>>
>>52241295
Well the exponent number is a factor if it is positive or negative. Like -4^4. This is basically 4x4x4x4. You are multiplying it an even number of times, so it stays a positive. This is how negative exponents work.
>>
>>52243534
>"if you aren't writing your thoughts down, you're only pretending to think"

Does this dipshit realise we are thinking tens of things per second? How the fuck do I write that down?
>>
>>52243651
>My brain operates at a speed vastly higher than any other human on the planet. I am a confirmed autist.
>>
is there a way to make the gcc compiler to work with Visual Studio?
>>
>>52243663
>i am le dumb
>>
>>52243666
yes, install GNU/Linux
then use visual studio code to edit your code and then execute your makefile from the commandline
>>
>>52243668
Confirmed autist, using le
>>
>>52243651
Your computer thinks billions of things a second but still finds time to write hello world.
>>
>>52243688
Sheeeeeeeeeeeeeeit
>>
>>52243683
Never fucking reply to me again unless you're contributing to the thread
>>
>>52243666
Nope. You can use GCC on windows, using Mingw/Mingw-w64 or Cygwin, but you can't run them neatly from vs afaik. Easier to use a different IDE on windows if you don't want to use MSVC.
>>
>>52243709
I'm just having fun m9.
>>
>>52243688
Try and stop me babyboy
>>
File: io.jpg (131KB, 678x350px) Image search: [Google]
io.jpg
131KB, 678x350px
Why do people blindly follow what the majority in their (online) community are saying, /dpt/?

I see it on reddit all the time, you will be triggered by me saying reddit because the majority of 4chan has told you to hate reddit.
>>
>>52243735
that's the way autists play, by parroting.

also
>"There are all of these idiots who are proud of how complex something they made is, rather than how simple they can make something"
-Leslie Lamport
>>
>>52243688
'Cause we fuckin' tell it to, and not because it needs to.
>>
>>52243765
I hate reddit because I've been on reddit and read their discussions.
I know what their general discussions are like and it's sickening.
>>
>>52243651
you have to stop. and think. a stream of consciousness is not thinking. and it often (p=.99) leads to mistakes.
>>
>>52243482
>This so-called "only real Dev language" is really just a distribution of JavaScript.

Did you really just go full fucking retard?
>>
>>52243765
Happens here too.
>>
>>52243766
I'm actually a different person, we got confused about who we were arguing with, and meanwhile the actual person we were arguing with has left.
>>
>>52243765
I have no opinion of Reddit though, other than it having a shitty layout
>>
>>52243651
your emotion based argument may affect yoru mommy when she tells you you need to stop pony posting and get a job, but it has no power in this realm.
>>
>>52243534
>"if you aren't writing your thoughts down, you're only pretending to think"
That makes zero sense.
You don't even think in words, so what are you even supposed to write down?
Just plot out a graph of how the neurons are connected at every snapshot?
>>
>>52243828
This is how you type when you've learned English from anime.
>>
File: Edsger_Wybe_Dijkstra.jpg (297KB, 1024x1365px) Image search: [Google]
Edsger_Wybe_Dijkstra.jpg
297KB, 1024x1365px
Who /TIA+/ here
>>
>>52243836
i think in words most of the time
speak for yourself
>>
File: grw.jpg (215KB, 1920x1080px) Image search: [Google]
grw.jpg
215KB, 1920x1080px
>>52243794
Reddit and 4chan both are insufferable circlejerks, there isn't an individual thought between them.

I bet you all went out and bought mechanical keyboards and audio technicas because /g/ told you so.
>>
>>52243839
lmao it worked. i intentionally left that misspelling in there to irk you.

i postulated that if my assumptions about you being a pony posting NEET who lives with your mom, who tries to persuade you get a job, would certainly become irritated by a misspelling, and use the opportunity of a logical fallacy to try to regain some of your false sense of pride in a vain attempt to discredit my theory.
>>
>>52243850
>i think in words most of the time
No you don't.
By the time your 'inner monologue' is going on the brain has already finished processing, that's just reflecting over what you already did.
(There are experiments which show this, decision making can be predicted a few seconds before the subjects became 'aware' of making them using neuroimaging )
>>
>>52243874
i fell for the SSD, clip+, thinkpad, gnu/linux, C, lisp, seiko 5 and and sony mdr-7506 memes, but not mechanical keyboards, thank god
>>
>>52243891
righto.

check dis shit out
>>
>>52243891
I too listen to podcasts on the internet.
>>
>>52243908
All I'm seeing from this is that you're incapable of thinking for yourself and have to borrow words from some faggot no one's ever heard of.
>>
>>52243850
"Thinking does not guarantees that we won't make mistakes, but not thinking guarantees that we will."

- Leslie Lamport
>>
File: wq.jpg (479KB, 1280x720px) Image search: [Google]
wq.jpg
479KB, 1280x720px
>>52243906
>He doesn't own a cherry blue mechanical keyboard
>>
>There are more atoms in our brain that there are brains in our body

- Leslie Lamport
>>
>>52243928
please see
>>52243626
>>52243608

>Not recognising one of the most eminent computer scientists and mathematicians of our day
stay pleb
>>
>>52243947
all my computers are thinkpads
i'm not autistic enough to use a separate keyboard on my laptop
>>
File: efw.jpg (114KB, 640x960px) Image search: [Google]
efw.jpg
114KB, 640x960px
>>52243935
Not thinking is meme, unless you're dead.

I'm so sick of people talking out their arse.
>>
Hey /dpt/ need some programming advice.

I'm porting my anime manager to Emacs. The thing is, Emacs doesn't seem to have any good SQLite bindings. The main problem with this means no prepared statements, meaning I need to do string sanitizing by hand. I'm trying to figure out the right approach to this.

1. Pipe input directly to SQLite subprocess. Need to sanitize strings by hand.
2. Use a foreign function interface to call SQLite's C bindings. Adds two extra dependencies and potentially unstable and unfun FFI play.
3. Outsource everything outright to a Python server process. The Emacs part basically becomes a super thin client that proxies input and output to/from the server process. Needs the server program as an extra dependency.
Ideas?
>>
Comments and whitespace slow down compilation and add bloat.
>>
>>52240752
#ifdef __GNU__
#define AUTISM TRUE
#endif
>>
>>52243967
"if you aren't writing down your thoughts, you're only pretending to think"

Leslie Lamport

mfw plebs think code is the same as "writing down"

i guess the old adage about leading a horse to water is true in this case
>>
>>52243983
too bad you can't link boolean logic with predicates or you'd be on your way to being an upgraded retard
>>
Is multithreading a meme?
>>
>>52243906
I fell for TP, Linux, C (technically fell for this before /g/), and mechanical keyboard. I got some Senn HD 448 which sound loads better than the similarly priced ATHs and HD 280 Pro. Zowie is complete shit, I fell for that. They actually stole my fucking mouse and won't return my emails.
>>
>>52244024
is concurrency a maymay?
>>
>>52243908
"Writing is nature's way..."

Is this guy a retard?
Languages are a human construct (and often a very crude one). What you can think, model and conceptualize span a vastly large space than what can be accurately and coherently transcribed in various linguistically constructs - it's because of the weakness of the language (either objectively, as in certain concepts simply can't be coherently defined, or because you lack the linguistic capacity), not because of 'nature' or your ability to think.

"Thinking is the ability to manipulate language..."
No, that's called communicating or being a writer.
You can think just fine without even knowing any language at all since humans start out without knowing any language, it's something you have to learn.
>>
>>52244024
>not realizing that /g/ is a meme
Technology is literally a meme.
>>
>>52243666

Yes. It's a pain, but you can do it. Make an empty/Makefile project, tell it to run make or mingw32-make (if you're using MinGW, the executable name will be mingw32-make, but I have renamed the executable to make.exe because a couple of build scripts will bitch anyways if you use an alias), and set up the Makefile the way you would normally do so. Now if you hit build, it'll run make, run gcc, and you'll be all set. This won't play well with intellisense though, so at this point, it's more worth it to just not use Visual Studio.
>>
Had an idea for a language for powerful lazy list processing

# example: prints
# *
# **
# ***
# ****
# *****

main = putLn(stars)
stars =
1 to(5)
map(n ->
1 to(n)
map('*'))
join("\n")
stars


Just got the semantics realized so I'm gonna work on formalizing the syntax and beginning the parser soon.
It would have a type system similar to whats seen in functional languages (the whole thing is really just sugar for function composition if you break it down far enough) but slightly different. Still uses unification from Hindley-Milner
>>
>>52244039
if you watched even one seminar by Lamport, you would know that he is quoting a cartoonist in that first one.

is your mind really so unsophisticated that you fail to grasp the essence of an idea when it is presented to you on a metaphorical silver platter? because you're damn sure acting like it.


http://research.microsoft.com/en-us/um/people/lamport/pubs/pubs.html
>>
>>52244036
Yes. Everything should be able to work on a single thread. Node and all of glorious webdev proves this.
>>
>>52244069
nice retort
i tip my fedora to you, enlightened sir
>>
>>52243906
>i fell for the SSD
Do you mean "SSDs are a meme" is a meme?
Because SSDs are without a doubt the single best upgrade you can do for the overall responsiveness of the system.
>>
>>52244069
>expecting people to covet some guy and become engrossed with their shitty quotes instead of doing literally anything else which would be a better use of their time
>>
On all levels except physical, I am a faggot
[Defends python]
>>
>>52244090
my system was already plenty fast with a hard drive, SSD only cut down boot times to 8 seconds instead of 30 seconds

literally no noticeable improvements aside from being able to fill up my hard drive in seconds and apt-get installing packages faster
>>
>>52244094
ok, no problem brah. btw, you have a crusty semen stain on your shirt. it's starting to smell like old cheese.
>>
>>52244103
that is the performance difference, you fuckwit.

you clearly don't use your computer for much, so why did you even spend money on it
>>
new thread when ? :3
>>
File: hitagi-san.png (132KB, 624x694px) Image search: [Google]
hitagi-san.png
132KB, 624x694px
We're going to think for ourselves from now on, /dpt/.

No more parroting each other, ok?

No more blindly following another anon's advice without thinking about it, ok?

If someone says a language is shit without explain why, you ask him why, ok?
>>
Java a shit
>>
>>52244116
yeah, i need to get away from all this useless math stuff that that other guy was posting about some faggot named leslie
>>
>>52244116
When we get to 300 at least, you autistic shitposter.
>>
>>52244069
I'm attacking the metaphor because it's an incredibly poor one, it conveys completely the wrong idea of hat 'thinking' is.
He seems to be talking about communication, i.e conveys ideas to other people. But that's a completely separate thing and actually requires a different set of skills (good grasp of the language, culture and social customs).
>>
>>52244118
Senjougahara's sarcasm is always so entertaining
>>
>>52244122
>Something that is hugely successful is shit
It must be doing something right.
>>
>>52244115
all I do on this machine is program and shitpost on /g/

sorry I don't use my hardware to "it's fullest extent" by playing fucking vidya
>>
>>52244094
oh, well aren't you the supreme gentleman? you know everything, and even if you didn't wouldnt want to waste the "brain space" on something so useless as mathematical logic
>>
File: 1439171931514.jpg (51KB, 487x404px) Image search: [Google]
1439171931514.jpg
51KB, 487x404px
>I'm going to continue learning C today
>spend 30 minutes scratching my head at an answer to one of the exercises
>ugh, I'll just clear my head for a bit
>a week passes
>I'm going to continue learning C today
>repeat
>>
>>52244139
>Hugely successful means it's good
>>
>>52241436
Be annoying. Ask for updates from the people you emailed.
>>
>>52244163
try learning a better language like java or php
>>
>>52244163
Post the exercise so that I can do it and rub it in your face
>>
>>52244163
what exercise is it?
I'll help you in the next thread, but you gotta tell me what part you're having trouble with
>>
>>52244171
Well, at least it's measurable.

How do you propose we measure goodness?
>>
>>52244202
Sqrt Length x Girth
>>
>>52244191
>posts homework
>anon gets tricked into doing homework
>>
>>52244127
why not now ?
>>
>>52244231
I was gonna help him if he's having trouble with basic programming concepts or idiomatic C usage, but i won't do it for him
>>
>>52244231
>implying I would show the source code and not just the end result
You underestimate me anon
>>
>>52244216
New thread

Abandon trap thread
>>
old thread too slow
NEW THREAD!

>>52244247
>>52244247
>>
>>52244251
Dumbass
>>
>>52244130
you misinterpreted what he's talking about. he's talking NOT about communication, but forming clear ideas in your own mind, and proving them before yourself using math. Intuition is wrong most of the time (just look at traditional religious logic for an easy example), that's why mathematical logic is the only way to prove things.

In 10 years, if you can't do what I'm recommending you do now, that's okay. There will be droves of prepared students ready to take your job.
>>
>>52244254
Dumbass
>>
>>52244202
Languages being "good" is pretty tough.
Most times you add a positive feature, you introduce a negative one somewhere along the way. Even the safest, most amazing and modern features have downsides (they're fucking complicated!).
Therefore, you have to look at if a language is "the right tool for the job", which is pretty much impossible to measure. A good way to do so is to see, through past projects, how well a language accomplishes its goal.
Usually language goals include performance, ease of use, safety and modularity, but not all languages try to follow these principles (which isn't to say that they are objectively inferior).
Another tricky thing is that the mere lifetime and use of a language can make it "superior" simply due to community support, libraries, compatibility and maturity. Thus languages like C++ and PHP that, while they have their strongpoints, are not necessarily the best languages that could have been made for how they're used; however, their widespread community adoption makes it hard to find a good enough reason to use another language. And this certainly has merit.
>>
File: xacg7fO.png (4KB, 518x156px) Image search: [Google]
xacg7fO.png
4KB, 518x156px
Anyone here know WPF? Is there a less retarded way to achieve this than what I've got here http://pastebin.com/GBvgkKQs
>>
>>52244103
>SSD only cut down boot times to 8 seconds instead of 30 seconds
>literally no noticeable improvements aside from being able to fill up my hard drive in seconds and apt-get installing packages faster
And starting every program fucking instantly.
I just put in an ssd in an old (5-6 years) x58/nehalem machine, which only has sata 2 ports so can't even fully saturate ssd top speeds.
But the difference as still night and day - upgrading cpu, ram or gpu are most of the time not even noticeable except when taxed in games or demanding programs - but the faster disk is just amazing. Used to take 2-3 mins from boot to starting and loading a project in VS2013, now it's less than 20 seconds.
Wanting to quickly open up some image in Paint.NET or Gimp was always a slow ass 3-4 second delay, now instant.
Basically opening up any program, settings manager, configuration, etc is instant and just makes everything feel like a 100 times faster computer.
And booting up virtual machines is crazy fast now, used to be pretty fast (5-10 seconds) but now basically instant.

You can have a totally different workflow when things start up this fast, it's like having a fast compiler and build for a language, it enables a new way of working, bind compile/run to a key and be back to coding instantly if things work (or didn't work)
>>
>>52244298
this guy gets it
>>
File: 1448661798060.jpg (54KB, 640x640px) Image search: [Google]
1448661798060.jpg
54KB, 640x640px
>>52244266
>>
>>52244266
>but forming clear ideas in your own mind, and proving them before yourself using math.
Does not require language, and definitely not a human written or spoken one.
>Intuition is wrong most of the time (just look at traditional religious logic for an easy example), that's why mathematical logic is the only way to prove things.
It's still the same 'intuition' only transcribed to yet another abstraction, inevitably losing something in the process.
Direct brain to brain interfacing with a true shared consciousness would be far superior to trying to write things down in terribly inadequate lingistic models (including mathematics btw).
>>
>>52244291

It looks alright.
>>
>>52244398
Are we basically the only people who use WPF? I know we're two of the few who use C#.
>>
>>52244406
C# is deprecated by C
>>
>>52244406

Probably.
>>
Uh, I've got a problem.

> /home/tyria/atelier/personal/animanager/src/animanager/watchlib.py(63)match()
-> if match:
(Pdb) ll
54 def match(self, filename):
55 """Attempt to add a file.
56
57 Return True if successful, else False.
58
59 """
60 match = self._pattern.match(os.path.basename(filename), re.I)
61 if 'Mahoro' in self.name and 'mahoro' in filename:
62 import pdb; pdb.set_trace()
63 -> if match:
64 episode = int(match.group('ep'))
65 self._files[episode].append(filename)
66 return True
67 else:
68 return False
(Pdb) filename
'/home/tyria/genesis/deluge/Mahoromatic_Motto_Utsukushii_Mono_[zx]/mahoromatic.s2.01.mkv'
(Pdb) match
(Pdb) self.name
'Mahoromatic 2'
(Pdb) self._pattern
re.compile('.*mahoromatic.*s2.*?(?P<ep>[0-9]+)')
(Pdb) os.path.basename(filename)
'mahoromatic.s2.01.mkv'
(Pdb) self._pattern.match(os.path.basename(filename))
<_sre.SRE_Match object; span=(0, 17), match='mahoromatic.s2.01'>
(Pdb) self._pattern.match(os.path.basename(filename), re.I)
(Pdb)

How in the fuck is this matching when case sensitive and not when case insensitive?
>>
>>52244685
Wait fuck me I'm retarded.
>>
>>52244712
Yeah you are
>>
>>52244382
you are under a huge misinterpretation if you think that any of this has anything to do with the tools used to form your thoughts.

reality describes itself, but mathematics is a way to describe reality.

you're the one who deserves a well earned fedora tipping, my supreme gentleman.
>>
File: 170.jpg (26KB, 300x100px) Image search: [Google]
170.jpg
26KB, 300x100px
>>52243651
oh hey i found a picture of you
>>
>>52244685

>mahoromatic
You have good taste, sir.
Thread posts: 318
Thread images: 35


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