[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: 321
Thread images: 51

File: 146738840786.jpg (95KB, 720x720px) Image search: [Google]
146738840786.jpg
95KB, 720x720px
What are you working on, /g/?

Old thread: >>59214040
>>
first for sepples17
>>
File: fact.png (14KB, 672x579px) Image search: [Google]
fact.png
14KB, 672x579px
>>
>>59222375
Replace C and Haskell with Lisp and it's accurate.
>>
>>59222421
Lisp-1 or Lisp-2?
>>
>>59222421
"C and Haskell" doesn't occur, so it'd be exactly the same
>>
File: 1483404333221.png (118KB, 327x333px) Image search: [Google]
1483404333221.png
118KB, 327x333px
>two threads
>>
>>59222438
Lisp-1 for the top, Lisp-2 for the bottom.
>>
>>59222449
This one was slightly sooner.

You know the rules.
>>
File: anal beads.png (19KB, 657x575px) Image search: [Google]
anal beads.png
19KB, 657x575px
>>59222375
>>
>>59222520

how do we save programming
>>
>>59222520
Ah yes, the "everything is shit" guy is finally here. Welcome, my friend.
>>
Daily reminder OCaml, Scala and F# are the only non-meme functional programming languages and the Haskell cult shows how little /g/ knows about programming and the industry in general.
>>
>>59222536
Somethings are less shit than others, though.

>>59222535
Languages that use all paradigms in ways that make sense for productivity.
>>
A flash card game to help me train my weeb skills. I have to cover the edge cases though.
http://pastebin.com/Mzy1Vjwk
>>
File: 1488482524823.png (9KB, 786x590px) Image search: [Google]
1488482524823.png
9KB, 786x590px
>>59222520
>>
>>59222547
>F#
I would absolutely use this as my main lang if it had more toolset support.
>>
>>59222560
rewrite it in haskell and use a better dragon for the pic
>>
>>59222549
>Languages that use all paradigms in ways that make sense for productivity.
guess we're stuck with c++ then
>>
>>59222560
>memesnek
Rewrite it in literally anything else.

Great dragon choice, though.
>>
col is a int
but strlen is size_t

what should the argument be: %d or %zu?
void pprint(char *err)
{
printf("vir %d, tur %zu: %s: %s\n",line,(col-strlen(text)),err,text);
}
>>
>>59222605
Modern C++ is bretty good.
>>
>>59222605
Intreseting, I've never seen anyone spell C# this way, which country are you from?
>>
>>59222587
>rewrite it in haskell
kys
>and use a better dragon for the pic
kys
>>59222609
Why? Python is the best tool for trivial programs.
>>
>>59222605
C++ move semantics force you to use null object if you want RAII. No thanks.
>>
>>59222621
Yeah but there are some very bad things, like the way templates don't allow for good auto completion or no way to do interfaces without abstract classes/vtable.
>>
>>59222621
it is, but 90% of /dpt/ always seems to disagree

>>59222656
yeah that's stupid, but still it's better than having no move semantics at all.
>>
>>59222661
It's not a silver bullet, true.

C++ when necessary.
C# when C++ isn't necessary.

There. Your life is easy and you have access to mega high level and comfy sugar plus low-enough level and performance when needed.
>>
>>59222632
You are not weeb enough, if you use Python.
>>
>>59222677
So much for zero overhead.
>>
%zu
warning: ISO C90 does not support the ā€˜zā€™ gnu_printf length modifier [-Wformat]
>>
>>59222230
>What are you working on, /g/?
a function to determine if a number is negative x_x
>>
>>59222786
if number is less than 0
>>
File: 148774354305.jpg (60KB, 410x500px) Image search: [Google]
148774354305.jpg
60KB, 410x500px
>>59222786
Language?
>>
>>59222797
amateur.

static int isNegative(float arg)
{
char *p = (char*) malloc(20);
sprintf(p, "%f", arg);
return p[0] === '-';
}
>>
>>59222838
>===
you can't even copy paste, huh?
>>
>>59222835
every
>>
>>59222230
>What are you working on, /g/?
this lab for class in C and I don't know how to do it because I'm a fucking retard
It's the first fucking programming class how can I be this stupid
>>
>>59222776
%z identifiers were added in C99.
>>
>>59222692
Are there any grorious Nippon programming languages desuka?
>>
Efficiency of execution > efficiency of code
>>
File: 1484177458718.png (514KB, 810x698px) Image search: [Google]
1484177458718.png
514KB, 810x698px
>>59222910
Ruby desu yo!
>>
>>59222910
Matz is japanese as >>59222936 mentions.
>>
>>59222936
why do you need to embody/personify languages
languages aren't people

i like literature and symbolism, but it has no place outside of literature and just pure enjoyment

what i'm trying to say is, things (other than humans i guess) have no special spirit or soul
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
Does anyone here have experience with grammars in compilers?

if the grammar doesn't have errors shift/reduce or conflicts, does it mean its correct?
>>
>>59222699
It's not all about zero overhead. Try doing low-level hardware interfacing. Without move semantics, it's easy to make accidental copies, and end up with multiple objects trying to control the same hardware resource. It never ends well.
>>
>>59223034
What do you mean "correct"? If it doesn't have shift/reduce conflicts it means it can be parser without backtracking, but that doesn't prove it corresponds to the idea you have of your syntax. This is another issue, so I'd say no.
>>
I NEVER CALLED THE FUNCTION!!!
>>
>>59223034
>grammars in compilers?
i am writing a compiler rn, i have 0 experience with it, 0 real knowledge
currently working on a bug, but my grammar looks like this and its preliminary, i will figure out a real syntax of a language later, so now my "language" looks like python lists
function_name = "factorial"
function_args = ["n"]
init_function(["if", ["==", "n", "1"], "n", ["*", "n", ["factorial", ["-", "n", "1"]]]])
>>
File: 1479321954293.png (7KB, 377x330px) Image search: [Google]
1479321954293.png
7KB, 377x330px
>>59222988
>and just pure enjoyment
And why we can't have pure enjoyment, you soulless bag of bones?
>>
>>59223098
reab my bost again spurbo :BBBBB
>>
File: Matz.jpg (810KB, 1893x2430px) Image search: [Google]
Matz.jpg
810KB, 1893x2430px
Can't get more /dpt/ than that
>>
File: 1488575563922.png (3KB, 377x330px) Image search: [Google]
1488575563922.png
3KB, 377x330px
>>59223098
your png is now optimized
>>
>>59222910
There are Japanese programmers that work with Common Lisp. https://github.com/roswell/roswell
>>
>>59223125
that 4Kb that you removed was the image's soul
>>
Is "Learn You a Haskell for Great Good" a reference to something or did the author come up with it to showcase his wacky sense of humour?
>>
>>59223125
>>59223098
those two pictures are not the same
look at the colors
>>
File: 1488491369317.jpg (98KB, 719x720px) Image search: [Google]
1488491369317.jpg
98KB, 719x720px
>>59222230
>2016
>not using javascript outside of the browser

Daily reminder that the best IDE in the world (visual studio) is built on javascript
>>
>>59223248
god bless ken silverman, destroyer of souls
>>
>>59223263
yeah i know its better
>>
>>59223264
>>>/wdg/
>>
>>59223254
I think it's supposed to make it a Haskell tutorial that seems down to earth because of the silliness of the title

the haskell wikibook is probably better
>>
File: vstudio.png (32KB, 303x174px) Image search: [Google]
vstudio.png
32KB, 303x174px
>>59223264
>>
>>59223254
it's a meta-reference to the language itself
>it's a meme
>>
>>59223357
>webdeves
>>
What's the best nonmeme c++ dev setup on linux? I am tired of tinkering with vim. Netbeans is kinda meh
>>
>>59223403
Rust
>>
>>59223403
Emacs
>>
rate my int-splitting code, /g/
template<std::size_t size>
union [[gnu::packed]] split_uint
{
struct [[gnu::packed]]
{
split_uint<size / 2> lo;
split_uint<size / 2> hi;
};
std::uint64_t value : size;
constexpr split_uint() noexcept : value(0) { }
constexpr split_uint(auto v) noexcept : value(v) { };
constexpr operator auto() const noexcept { return value; }
};

template<>
union [[gnu::packed]] split_uint<8>
{
std::uint8_t value;
constexpr split_uint() noexcept : value(0) { }
constexpr split_uint(auto v) noexcept : value(v) { }
constexpr operator auto() const noexcept { return value; }
};

using split_uint16_t = split_uint<16>;
using split_uint32_t = split_uint<32>;
using split_uint64_t = split_uint<64>;
>>
>>59223486
>C++
Absolute garbage.
>>
>>59223486
>so what did you do today, bruh?
>int-splitting code
>you what bro?
>>
>wake up
>it's 2017
>go, swift, rust
>webapps as desktop apps
>puke in mouth
>alexandrescu and walter bright made D
>swallow puke and start deving
>based romanian saved the world
>>
>>59223548
Romanians are slavs though.
>>
>>59223499
can you do the same thing in your meme language?
>>
i didnt know the pajeet meme was real
>taking programming course
>all the indians just cheat and try to bullshit their way through
>they 5x regular tuition just to be useless

at least they can sort of speak english. they can work at a call centre when they go back
>>
>>59222910
APL looks strangely like moonrunes.

lifeā†{ā†‘1 āµāˆØ.āˆ§3 4=+/,ĀÆ1 0 1āˆ˜.āŠ–ĀÆ1 0 1āˆ˜.āŒ½āŠ‚āµ}
>>
File: doyoueventemplate.png (203KB, 474x307px) Image search: [Google]
doyoueventemplate.png
203KB, 474x307px
>>59223562
Andrei is honorary American
>>
#include <stdio.h>
#include <stdlib.h>

#define lambda(ret, args, body) \
({ \
ret __fn__ args body \
__fn__; \
})

#define map(tp, v, len, fn) \
({ \
tp *tmp = malloc(sizeof(tp) * len); \
for(int n = 0; n < len; n++) { \
tmp[n] = fn(v[n]); \
} \
tmp; \
})


int main(void)
{
int (*dbl)(int) = lambda(int, (int x), {
return x * x;
});

int vec[10];

for(int n = 0; n < 10; n++)
vec[n] = n;

int *v2 = map(int, vec, 10, dbl);

for(int n = 0; n < 10; n++)
printf("%d\n", v2[n]);
free(v2);
return 0;
}


>>
>>59222563
fucking how holy shit that language makes me feel like I'm trying to shove a 40lb dildo up my ass
>>
File: 17f0af7355de2675d176d3f2ea61ff94.png (835KB, 724x1024px) Image search: [Google]
17f0af7355de2675d176d3f2ea61ff94.png
835KB, 724x1024px
Added some error handling and useless statistics. Any other suggestions?
http://pastebin.com/weVSZiD7
>>
>>59223641
try using a better dragon for your pic
>>
>>59223604
I don't get it. why not use c++?
>>
File: d4504e3e1dcf0cf6439a7e1c62339a58.jpg (112KB, 1000x1500px) Image search: [Google]
d4504e3e1dcf0cf6439a7e1c62339a58.jpg
112KB, 1000x1500px
>>59223856
k
now what
>>
>>59223604
>muh fp
this is why people say C is a meme language
>>
>>59223875
>why not use c++?
Are you serious? Why on earth would you use that garbage?
I would take anon's compiler-dependant macro shit over C++ any day.
>>
File: 1470871743021.jpg (130KB, 704x400px) Image search: [Google]
1470871743021.jpg
130KB, 704x400px
Hey /dpt/ can you tell me what does ~ mean in assembly?
As in
and edi,~(RWIDTH -1)


Google says nothing because its a single character.
>>
>>59223930
What assembly do you use?
It looks like some metaassembler extension.
>>
>>59223930
flip all bits
>>
>>59223604
>C
eww
>>
File: 1488563165996.png (133KB, 423x275px) Image search: [Google]
1488563165996.png
133KB, 423x275px
>>59223955
NASM

>>59223965
It seems thats what it does, thanks anon.
>>
>>59223604
why are there slashes everywhere

is this normal for programing
>>
File: 1488573618017.png (13KB, 786x590px) Image search: [Google]
1488573618017.png
13KB, 786x590px
>>
>>59224075
it's C, where you need to use the preprocessor to get anything done
>>
>>59224078
>all languages are shit
Wait to say something original anon.
>>
File: member_illus.png (462KB, 310x380px) Image search: [Google]
member_illus.png
462KB, 310x380px
So yesterday I enrolled in a programming program that lasts a year so now they sent me an "interview" online.

One of the questions is what would I rather learn

-WebUi and it specifies it's web design working with HTML5 CSS3 and web programming with JavaScript and JQuery

-.Net and it specifies it's about C# .NET , databases, web services and basic web programming


I chose .NET because I thought it would be the best but I figured that I should ask here for opinions before sending it.
>>
>>59224122
You can do alot with c# it's very pleasant tho i dont quite understand why itgot rolled into the webdev meme
>>
>>59224122

C# is like java without a lot of the succ, and the skills in one translate pretty much near 1:1 to the other with very little adapting time.
Jquery on the other hand is a framework so its not as useful to learn "in-depth" since frameworks come and go all the time.
html/css is simple af so you could learn it in less than a month.
>>
#include <stdio.h>

int * sortArray(int *p, long l) {
int tmp;
for(int i = 1; i < l; i++) {
tmp = *(p+i);
for(int j = i-1; j < l; j++) {
if(*(p+j) > *(p+i)) {
*(p+i) = *(p+j);
*(p+j) = tmp;
break;
}
}
}
}

int main(void) {
int arr[5] = {3,1,2,4,5};
int *p = &arr[0];
sortArray(p, sizeof(arr)/4);
for (int i = 0; i < 5; ++i)
{
printf("%d\n", arr[i]);
}
return 0;
}


all this code to sort some array
c a shit lmao
>>
problem:
struct rs232_stream : public std::iostream
{
rs232_stream(rs232_config c)
: std::iostream(streambuf.get())
, streambuf(std::make_unique<detail::rs232_streambuf>(c)) { }

private:
std::unique_ptr<detail::rs232_streambuf> streambuf;
};

The std::iostream constructor needs a pointer to a streambuf, which is not yet initialized at that point. wat do?
>>
>>59224275
C standard has qsort you dump nigger.
>>
>>59224275
You're an idiot, and your code is shit.
#include <stdio.h>
#include <stdlib.h>

int cmp(const void *arg1, const void *arg2)
{
const int *a = arg1, *b = arg2;

if (*a < *b)
return -1;
else if (*a > *b)
return 1;
return 0;
}

int main()
{
int arr[5] = { 3, 1, 2, 4, 5 };

qsort(arr, 5, sizeof arr[0], cmp);

for (int i = 0; i < 5; ++i)
printf("%d\n", arr[i]);
}
>>
>>59224160
>>59224198
So as I thought .NET is my best choice

thanks
>>
Can someone explain why the below doesn't work? I'm going through SICP. This exercise wants you to make a function that counts the pairs of a structure.

(define (count-pairs x)

(define (count-pair-wrap x traversed-pairs)
(if (or (not (pair? x)) (memq x traversed-pairs))
0
(begin (set! traversed-pairs (cons x traversed-pairs))
(+ (count-pair-wrap (car x) traversed-pairs)
(count-pair-wrap (cdr x) traversed-pairs)
1))))

(count-pair-wrap x (list)))

The correct solution is shown below. What could be going wrong?

(define (count-pairs x)
(let ((encountered '()))
(define (helper x)
(if (or (not (pair? x)) (memq x encountered))
0
(begin
(set! encountered (cons x encountered))
(+ (helper (car x))
(helper (cdr x))
1))))
(helper x)))
>>
>>59224370
>>59224361
>use the lib function
fucking c babies i swear
>>
>>59224381
(define (pairs lis)
(filter pair? lis))
>>
>>59224396
What the fuck are you complaining about then?
>>
>>59224381
dude parentheses lmao
>>
Is there cross platform game engine in C or which engine would be easiest to make wrapper for C?
>>
>>59224370
Can calls to pointers be unrolled/inlined?
>>
>>59224618
Write your own engine with SDL and OpenGL.
>>
>>59224618
Quake engines (idTech 1 to 3 are open source I think).
>>
>>59224618
>>59224770
https://github.com/ioquake/ioq3
>>
>>59224629
For function pointers, that is a complicated question. I don't know if a modern compiler with appropriate optimisations will inline that or not.
>>
>>59224732
>>59224770
>>59224795
i was just asking because i'm the idea guy in my team and i'm supposed to come up with good ideas since i get paid a lot more than the developers/programmers in my team.

thanks guys
>>
>>59224832
Well if you're in an actual team that's not a good idea if you plan to ship something some day.
>>
>>59224832
Stop pretending being me you fucktard.
>>
I have to do a project for a graphic interface course but I can't come up with an idea.
I am free to use any language,the end result must be an usable application with the main focus being graphics.
I've heard of other students remaking old 2d games,comic editors and stuff like that.
Any suggestions on cool stuff to do?
>>
>>59224880
ray trace an object of your choice under water.
>>
File: dunecat.jpg (30KB, 439x392px) Image search: [Google]
dunecat.jpg
30KB, 439x392px
Employed Haskell programmer reporting in
>>
>>59224940
What's your favourite language extension?
>>
>tfw it is way too hard to make a business web applications that are good to make a lot of money
>>
>>59224940
What do you work on?
>>
>>59224940
where do I land remote freelance gigs in haskell or similar? i know there's occasionally on-site full-time employ to be found out there, but that's not on (for now)
>>
File: hmhm.jpg (10KB, 480x360px) Image search: [Google]
hmhm.jpg
10KB, 480x360px
>>59222520
>>59222562
accurate
>>59222605
not the reason why C++ is shit
>>
is it worth learning rust after C/C++?
>>
>>59225212
>C/C++
Why are you grouping two completely different languages together?
>>
>spend a week writing shitty HTML5 game engine
>get good testing framerate without rendering anything
>framerate drops below 15fps when rendering a homemade textbox
>scrap everything
>>
Post your best fizzbuzz programs.
Here's mine:
#include <stdio.h>
#include <stdint.h>
int main() {
int i = 0,e,f,h,j;
uint64_t a = 5270498306774157604;
uint64_t b = 595056260442243600;
uint64_t c = 19634136210;
uint64_t d = 35468117025;
uint64_t g = 5073721120729168506;
while(++i<101) {
if(i<65){e=a&1;a>>=1;f=b&1;b>>=1;}else{e=c&1;c>>=1;f=d&1;d>>=1;}
if(e){j=4;for(;j;){printf("%c",(g>>(32+(((j--)-1)*8)))&0xff);}}
if(f){j=4;for(;j;){printf("%c",(g>>(((j--)-1)*8))&0xff);}}
h=e||f;
printf(h?"\n":"%d\n",h?(g+h):i);
}
}
>>
>>59225272
Javascript was a mistake.
>>
>>59225273
#include <stdio.h>
#define LEFT_BRACE {
#define RIGHT_BRACE }
#define LEFT_BRACKET [
#define RIGHT_BRACKET ]
#define LEFT_PARENTHESIS (
#define RIGHT_PARENTHESIS )
#define SEMICOLON ;
#define COMMA ,
#define EQUALS =
#define IS_EQUAL_TO ==
#define IS_NOT_EQUAL_TO !=
#define IS_LESS_THAN <
#define IS_GREATER_THAN >
#define IS_LESS_THAN_OR_EQUAL_TO <=
#define IS_GREATER_THAN_OR_EQUAL_T >=
#define MODULUS %
#define INCREMENT ++
#define DECREMENT --
#define AND &&
#define OR ||

int main LEFT_PARENTHESIS RIGHT_PARENTHESIS
LEFT_BRACE
int i SEMICOLON
for LEFT_PARENTHESIS i EQUALS 0 SEMICOLON i IS_LESS_THAN_OR_EQUAL_TO 100 SEMICOLON i INCREMENT RIGHT_PARENTHESIS
LEFT_BRACE
if LEFT_PARENTHESIS i MODULUS 3 IS_NOT_EQUAL_TO 0 AND i MODULUS 5 IS_NOT_EQUAL_TO 0 RIGHT_PARENTHESIS
printf LEFT_PARENTHESIS "%d" COMMA i RIGHT_PARENTHESIS SEMICOLON
if LEFT_PARENTHESIS i MODULUS 3 IS_EQUAL_TO 0 RIGHT_PARENTHESIS
printf LEFT_PARENTHESIS "Fizz" RIGHT_PARENTHESIS SEMICOLON
if LEFT_PARENTHESIS i MODULUS 5 IS_EQUAL_TO 0 RIGHT_PARENTHESIS
printf LEFT_PARENTHESIS "Buzz" RIGHT_PARENTHESIS SEMICOLON

printf LEFT_PARENTHESIS " " RIGHT_PARENTHESIS SEMICOLON
RIGHT_BRACE

printf LEFT_PARENTHESIS "\n" RIGHT_PARENTHESIS SEMICOLON
return 0 SEMICOLON
RIGHT_BRACE
>>
>>59225291
>>59225273
new thread please, stop polluting /dpt/ with this
>>
File: languages3.png (17KB, 522x384px) Image search: [Google]
languages3.png
17KB, 522x384px
Idiots will be upset by this.
>>
>>59225348
I mostly agree with this image
>>
>>59222230
https://github.com/Arefu/Wolf

Working on this
>>
>>59225272
This>>59225281

What kind of game are you making? If it's a platformer or something involving physics I recommend box2d, it runs fast enough depending on how in depth your game is
>>
A Telegram bot about books, a sort of index.
>>
What's the best way to learn python?
>>
>>59225413
Read "How to thinks in Python", and write something.
>>
>>59225266
doesn't answer my question anon
>>
I'm new to this stuff and I'm stuck on this problem
I have to make a program in C that lets the user enter a phrase, then will censor a certain word, but if it appears in the middle of a word the program shouldn't censor it. We're only supposed to use basic arrays, if/else statements and while loops. Sorta get how to do it but the program still censors the word if it shows up in the middle of another.
pls help this is a big chunk of my grade
>>
>>59225212
because if you learn one (c++) you know the entirety of the other?
>>
>>59225491
post code
>>
>>59225436
What program for macs should I use to develop in
>>
>>59225273
>>59225312
#include <stdio.h>
#include <stdlib.h>

#define declaration(type, name) type name;
#define statement(...) (__VA_ARGS__);
#define block_statement(...) {__VA_ARGS__}
#define xstring(s) #s
#define string(...) xstring(__VA_ARGS__)
#define conditional(cond, iftrue, iffalse) if (cond) block_statement(iftrue) else block_statement(iffalse)
#define iteration(name, start, finish) for (int name = start; name <= finish; ++name)
#define equal(a, b) ((a) == (b))
#define mod(a, b) ((a) % (b))

int main()
block_statement(
iteration(i, 1, 100)
block_statement(
conditional(
equal(
mod(
i,
15),
0),
statement(
puts(
string(
FizzBuzz))),
conditional(
equal(
mod(
i,
3),
0),
statement(
puts(
string(
Fizz))),
conditional(
equal(
mod(
i,
5),
0),
statement(
puts(
string(
Buzz))),
statement(
printf(
string(
%d\n),
i)))))))
>>
What the fuck do I do about libraries for compiling I don't have? They're never called the same thing in the package manager as the library that is missing.

Example: I wanted to compile gparted on Ubuntu 16.04 and it required gnome-doc-utils but that isn't in the package manager. Wtf do I do?
>>
>>59225491
>the program still censors the word if it shows up in the middle of another.
Change the word you're searching for to SPACE WORD SPACE.
>>
>>59225491

You're generally always well advised separating (A) thinking logically (independent of C technicalities) about the steps your program must take, ie. the algo and (B) how you'll implement it in C.

The algo: You're going to have to write a function that separate the user-specified sentence into an array of individual words (first split by space, then when that works split by all applicable separators such as comma, semicolon, punctuation marks etc), then you can simply iterate through your "words" and replace all occurrences of the forbidden word with the censorship, then reconstruct the user sentence from that so-updated array.

The C implementation: this is yours to work out to earn your grade :P
>>
File: 1452471092796.png (372KB, 1280x720px) Image search: [Google]
1452471092796.png
372KB, 1280x720px
>>59225697
>Namefagging
>:P
>>
>>59225674
At first this works, but to get top grade he'll need to do this for all permutations of SEPARATOR WORD SEPARATOR (where sep is space punctuation-mark comma etc)
>>
>>59225717
quit posting selfies in /dpt/ :P ;) =) ^_^ *lols-out-loudly*
>>
Trying to reverse-engineer and/or decompile something without knowing what the fuck is going on since the two people that did this back in 2011 didn't post how they did it. I hate my life.
>>
File: shitpost.jpg (52KB, 1280x720px) Image search: [Google]
shitpost.jpg
52KB, 1280x720px
>>59222230
>dude's name is literally "blow"
LMAO BTFO HOW WILL WE EVER RECOVER
>>
>>59222230
I'm making a VC# program that inputs an Amazon ASIN and a website URL. It parses each's product name and checks if they are equivalent. If not, it rewrites ASIN.
>>
>>59225312
stop polluting /dpt/ with anime
>>
File: 148775665688.jpg (77KB, 500x572px) Image search: [Google]
148775665688.jpg
77KB, 500x572px
>>59225605
>>
File: smbx.png (317KB, 3200x4123px) Image search: [Google]
smbx.png
317KB, 3200x4123px
>>
Should I learn CL or Scheme?
>>
>>59226204
Both are very similar at the core. CL is more complete, more powerful out of the box but is also more bloated.
>>
>>59223054
You can do move semantics with zero overhead is what I mean, just not in C++ with RAII.
>>
>>59225638
>that isn't in the package manager
tried downloading directly?
>>
>friend went to college to study mechanical engineering
>has a programming class (first semester)
>"So what do you do in there? What language are you using to learn?"
>"Delphi"
wat
>>
File: how do I make it better.png (44KB, 1012x690px) Image search: [Google]
how do I make it better.png
44KB, 1012x690px
I just whipped this up and am looking for suggestions for GUI design. What should I add? What kind of input errors should I be catching?

Pls give me suggestions to improve my code, as you can see I am a beginner aka baby pajeeter.
>>
>>59226626
Does your friend live in an ex-USSR country?
>>
>>59222230
Let's say I want to write a Haskell program that accepts a time string like "23:42" and converts it to an ascii representation of a digital watch display. In C I would implement this by having an array of 3 strings that represent all segments of the display and a bitmask. I could do this in Haskell as well, but it seems like there has to be a better way. Can anybody give me a suggestion? I just started messing around with Haskell 3 days ago and have no experience with functional languages.
>>
>>59226676
close enough
>>
>>59226626
Delphi is just Pascal, a slightly more verbose Basic. Back ~20y ago, instead of Python or Ruby the "beginner-friendly, just start coding" languages for most folks were Basic and Pascal. They probably never updated their curriculum. And probably have some "mech-eng" libs or such ready for Delphi already
>>
>>59226679
I don't think it would be too different, what sort of display are you looking for?
>>
>>59226698
Pascal is not related to Basic. It's an improved ALGOL.
>>
>>59226679
at some point you would probably want to map a function which converts any number to the appropriate ascii representation over a list of numbers
>>
>>59226698
I'd also like to believe there's a sound reason behind it (I doubt it's the "libraries"), like some healthy engineering conservatism (not everything should change as fast as in CS) but teaching delphi to freshmen in 2017 is a bit of a stretch.
>>
>>59226736
>I don't think it would be too different
Using functions with names like "complement" instead of '~' will make the code look hideous.
Something like this:
  _  _      _
_| _|.|_| _|
|_ _|. ||_
>>
>>59226772
That's the goal, the problem is I am not sure how to define those representations neatly.
>>
>>59226659
Maybe state what the fuck you're calculating
>>
>>59226838
the area of a polygon given the number of sides and length of sides.

I am mainly seeking GUI improvement recommendations, since the math is already on point.
>>
>>59226803
>Using functions with names like "complement" instead of '~' will make the code look hideous.
You can make your own infix functions.
>>
>>59226803
If you use -XPostfixOperators (in a source file, {-# LANGUAGE PostfixOperators #-} at the top) then you're allowed to create single argument operators
(~.) = complement
(3 ~.)

I would use a 10 element list of representations, whether or not you go with bits for each individual one is up to you, but you wouldn't be using complement.
>>
>>59226873
>>59226897
> {-# LANGUAGE PostfixOperators #-}
Did not know about that, thanks.

>I would use a 10 element list of representations
I'm not sure I understand, you mean you would have 10 String arrays representing each individual digit?
>>
>>59226958
I mean I would have a list of 10 elements, where each element is the representation
The representation doesn't have to mean the actual string (in fact that's more awkward because you'll have to break it apart to concatenate it)
If you think of your example, you have 7 toggle-able lines.
You could store that in a Word8 using bits.
So it could simply be

[Word8]
-- nb there's another extension called BinaryLiterals in GHC 7.10 and up
e.g. [0b01011010, 0b01011101, ...]

Then when you come to draw it, you could break that up into lines - for the first output line, you only care about the top bar. For the second, you care about the top left, middle and top right bars
etc
>>
>>59226766
Yeah sure, true, historically speaking. In practice in the big picture they felt quite near-on identical to me in terms of expressiveness and power and flow of coding, starting out --- comparing them to asm, C, lisp back then.
>>
I'm just leaving this here.

$ date +%H%M | sed 'h;s/[14]/    /g;s/[0-9]/ _  /g;G;s/0/| | /g;y/24569/38228/;G;s/[068]/|_| /g;s/[147]/  | /g;s/2/|_  /g;s/[359]/ _| /g' 
_ _ _
| | _| | |_
|_| _| | _|
>>
>>59227059
Please don't litter.
Put that garbage in a bin.
>>
>>59227017
That sounds pretty reasonable, thanks.
>>
Baby Pajeet needs java help.

How do I make more than 1 return method work when I trigger an event?

btnCalculate.setOnAction(e-> lblArea.setText(Double.toString(polycalc(txtSides, txtSize))));
btnCalculate.setOnAction(e->lblPerim.setText(Double.toString(polyPerimeter(txtSides,txtSize))));


Doesn't work and neither does separating them by commas in the same event parameters.
>>
>>59227059
G3:
>You will not post any of the following outside of /b/: [...] indecipherable text (example: "lol u tk him 2da bar|?") [...]
Reported.
>>
>>59227059
will this delete system32?
>>
>>59223264
2017
>>
How do you make a .exe file out of something thats python3.0+
>>
File: 1457218554001.jpg (195KB, 1280x720px) Image search: [Google]
1457218554001.jpg
195KB, 1280x720px
>mfw posting intentionally wring answers on stackexchange and people upvote me
>>
File: 1448035134967.jpg (9KB, 300x222px) Image search: [Google]
1448035134967.jpg
9KB, 300x222px
>>59227273
Just stay the fuck off overflow.
>>
>>59227098
>Android """"Development""""
>>
>>59227366
no its just this: >>59226659

But I am adding perimeter to it.
>>
What's the best anime to watch while programming in Haskell, Lisp and assembly at the same time?
>>
>>59227237
Anyone? I'm going fuckin nuts
>>
>>59227424
Lain.
>>
>>59227435
That's only 1 of the languages.
>>
>>59227429
py2exe
>>
>>59227453
Its for python2 only apparently.
>>
>>59227453
>python3
>>
>>59227424
In order of programs listed: Steins Gate, GITS, Lain
>>
>>59227476
>>59227479
It works for python 3 you faggots.
>>
>>59227494
Why would Steins Gate be related to Haskell? Why is Lisp somehow not related to Lain?
>>
File: 1484287634452.gif (1MB, 320x213px) Image search: [Google]
1484287634452.gif
1MB, 320x213px
>taking Java 1
>first assignment was syntax, for loops, while loops, basic data structures
>second assignment I have no fucken clue m8

Use file I/O to read an image into memory and transcribe to a 2D array of RGB values. Images will be scans of handwritten notes. Determine where characters appear in the page similar to below:

I like to pet dogs
I don't like cats

becomes

1,4,2,3,4,-1,1,5,4,4

Where a number represents the number of consecutive letters, a -1 represents a newline, and a comma between numbers a space.

Should I know this?
>>
>>59227536
>taking Java 1
Stopped reading right there.
>>
>>59227536
U wut m8? Are the images really handwritten or are the characters all the same size?
>>
>>59227591

Handwritten.
>>
>my modified version if that op picture where she reads SCIP isn't used
Lame.
>>
>>59227601
Well good luck then, unless you can use a library you're fucked
>>
>>59227273
Good. People need to realise its crap sooner because it's wrong far too often.
>>59227352
How about you don't get yourself in this situation in the first place? People wouldn't upvote if they weren't stupid and were writing stupid answers.
>>
>>59227536
Here's the sad reality about the IT world.
Practicality > concepts

Whereas in any other field, concepts are usually more important than being practical. Thus, why universities focus on teaching concepts and not being "hands on".

If you can't program, but you understand all of this bullshit CS stuff then you're fucked out of any job.

On the other hand, if you can program but are rusty with concept. but you know enough to copy and paste from stack overflow, you will be fucking rich.

Why not both?

Because universities teach either concepts or practicality depending on where you go.

Conceptualizing is harder than practicality, you can tell any buffoon how to do something, but you have to teach them why something does what it does.

To put it simply: Should you know this? Yes, if you want to get a good grade and make the most out of your education by learning concepts. No, if you just want to be another code monkey, but a rich one. (focus on writing programs instead)
>>
>>59227591
That seems like a big jump from simple looping and basic data structures. SOMETHING SMELLS FISHY
>>
File: dpt.png (742KB, 1920x1080px) Image search: [Google]
dpt.png
742KB, 1920x1080px
>>
>>59227662
I'm not sure I've seen a university teach practical skills. At least not where it's accidental, like when they give you an open ended assignment and the 'figuring out' process leads you down the more practical side of things. I wouldn't give the university credit for teaching what's being learned in that situation though.
>>
>>59227688
The wizard garb is associated with Lisp, not Haskell.
>>
>>59227700
Polytechnic schools is what you're looking for. i.e. Cal Poly Pomona/SLO if you live in California.

Those uni's are all hands on and the people graduating from there go into the business world and become fucking rich.
>>
>>59227710
Yes, meaning that his image depicts both Lisp and Haskell.
>>
>>59227688
Skin and eat this rodent.
>>
>>59227733
I suppose so. Carry on.
>>
>>59227505
Bullshit, it says I needed python 2.7 or lower..
>>
>>59227778
Wrong.
>>
>>59227237
Since you don't like py2exe try cx_Freeze instead?
>>
>>59227747
With what?
>>
>>59222230
CS50 trying to get the FUCKING pyramid code to work

:((((
>>
Baby Pajeet here.

I figured it out , but god damn it looks like shit!!!!

    Button btnCalculate = new Button("Calculate");
btnCalculate.setOnAction(e->
{
lblArea.setText(Double.toString(polycalc(txtSides, txtSize)));
lblPerim.setText(Double.toString(polyPerimeter(txtSides,txtSize)));
});

>>
>>59227815
Shitposting about your favorite languages and arguing about typing systems.
>>
File: angry mayushii.jpg (30KB, 172x195px) Image search: [Google]
angry mayushii.jpg
30KB, 172x195px
>>59227787
LOOK

https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/
>>
>>59227833
Version 0.9.2.2 dummy!
>>
File: bash.png (287B, 69x14px) Image search: [Google]
bash.png
287B, 69x14px
I kind of feel like shit. Any ideas on something to do?
>>
>>59227872
install gentoo
>>
>>59227806
When compiling a python script to an exe, does it automatically fetch the imported modules and include them all in the exe?
>>
>>59227831
My favorite language doesn't really exist yet. Though it is going to be an anime Lisp with an HM type system.
>>
>>59227872
On my sparc t5120, integrity rx2620, or dual ppro machine?
>>
>>59226626
At least it's not Borland C.
>>
>>59227850
Does not support anything above python 3.3
>>
>>59227901
>>59227886
replied to wrong post
>>
File: just changing the html.png (7KB, 476x161px) Image search: [Google]
just changing the html.png
7KB, 476x161px
tl;dr- is there any encoding I can use that I can edit the plain text in a Java .class file? How can I do that?

I have a .war file (enterprise Java) without access to the sources, they're not inside for some reason. I want to edit the HTML without affecting the bytecode, and then zip it back up to a .war. I'm changing about 6 characters on a single line (don't have permissions to write to the old directory, and I don't want to rewrite this damn program).

Then glassfish gives me a 500 error on any page requests: "Illegal UTF8 string in constant pool in class file"

Can this work?
>>
>>59227903
"Python 3.3 and later are supported."
https://pypi.python.org/pypi/py2exe/
>>
>>59227901
All of them.
>>
Is there any reason not to use GPLv3 if you don't want people to be able to package up and sell your code willy-nilly e.g. on an app store?
>>
https://youtu.be/3TYT1QfdfsM
Is this really the kind of thing that's being considered at CS degrees? Huge pointless waste of time.
>>
>>59227931
How do I make it WERK?

build_exe myscript.py

Just gives me errors half way through
>>
>>59227961

it's like the logo of a project

every dipshit can have an opinion so it gets the attention
>>
>>59227994
>it gives me errors
Wow well done anon. That's an excellent description and we will be sure to help you with your problem. None of us had any desire to help you before but now with this very good description of what's going wrong were 100% with you and will go through this together.
Just give me a sec to do just about anything else first.
>>
Btw, guys, we have a new /dpt/ discord

https://discord.gg/Ze39U
>>
>>59228049
>discord
Why are we using a non-free meme technology?
>>
File: fufu.png (6KB, 226x360px) Image search: [Google]
fufu.png
6KB, 226x360px
http://www.strawpoll.me/12458748
http://www.strawpoll.me/12458748
>>
File: Aloha Tiddies.gif (2MB, 292x351px) Image search: [Google]
Aloha Tiddies.gif
2MB, 292x351px
>>59228054
because this girl uses discord
>>
>>59228023

build_exe -p cryptography helloworld.py


Gives spam on my windows shell with some bullshit recursion limit reached WTF?
>>
The only languages you need are C and a Lisp
>>
File: testout.png (1MB, 978x1040px) Image search: [Google]
testout.png
1MB, 978x1040px
So I've been working on some semi-automatic photo restoration stuff. The results are getting better as I continue to tinker with it. The only inputs are a source, mask, and radius.
>>
>>59228078
Not enough information given. Does the memory layout of foo reasonably correspond to any other memory layout? (say a vec3i in this case) Then keep it a member function.
If not then either is fine.
>>
>>59228110
It'd be way better if you gave it some sense of significant elements. Say background, face, sweater.
>>
>>59226600
Yeah I did eventually. But then I needed a few libraries to compile gnome-doc-utils. I couldn't find those so I just stopped
>>
File: restoration.png (1011KB, 752x800px) Image search: [Google]
restoration.png
1011KB, 752x800px
>>59228130

Yes, that's been a constant point of consternation. Earlier tests were worse in that they neglected 'texture' to a higher degree. I'm still having trouble trouble preserving edges, because it's difficult when the information is actually missing.
>>
File: hyperspace.gif (2MB, 768x432px) Image search: [Google]
hyperspace.gif
2MB, 768x432px
I have a small question,

would it be possible to have a sort of graphics library made fully with a functional programming language? I ask because I noticed that a lot of low-level graphics stuff passes things by reference and uses side-effects to do stuff, and was wondering how you could do it with functional languages
>>
>>59228167
I don't see why not.
>>
>>59228103
You running that in your python interpreter and importing py2exe?
>>
>>59228192
Yes. I also have tried another setup which looks likes it werks easier but I dont know how to include the modules:

from distutils.core import setup
import py2exe
setup(console=['Pman.py'])


gives pics related. I dont know what the heck this packaging module is or why readline() is being mentioned that should all be in the standard lib by default
>>
>>59228167
Of course you can do it. That's what the IO Monad is for. So that you can hide all this nasty side effect shit under the hood.
>>
>>59228215
>-i modname, --include modname
> module to include

https://pypi.python.org/pypi/py2exe/0.9.2.0#using-the-builder
>>
https://youtu.be/rX0ItVEVjHc?t=582

CSHARTS BTFO

real software developers don't need multiple inheritance or operator overloading
>>
>>59228277

I don't get it.
>>
>>59228078
If you think the the difference between the two is non-negligible, you are a bad programmer.
>>
>>59228078
Structs should almost never have methods contained within themselves, it's too easy to fall into bad OOP practices where there shouldnt be
>>
>>59228284
Didn't argue in favor of either. Just a minor tidbit
>>
File: tumblr_mzv3u7mQUz1qckp4qo1_500.png (59KB, 500x382px) Image search: [Google]
tumblr_mzv3u7mQUz1qckp4qo1_500.png
59KB, 500x382px
How could I make this funnier?
>>
>>59228292

In C++ the only difference between class/struct is the default access modifier.
>>
>>59228292
>bad OOP practices
you mean all of it?
>>
>>59228257
>https://pypi.python.org/pypi/py2exe/0.9.2.0#using-the-builder

Ive already tried it
build_exe -i cryptography.fernet --include Fernet Pman.py


gives:

ImportError: Fernet
[/code

the includes in my python script:

import os
import sys
import getpass
import hashlib
import platform
import base64
from cryptography.fernet import Fernet
>>
>>59228281
you think C# is better than java because it has an abundance of shitty useless features like multiple inheritance and operator overloading when the whole point of java is to make it simpler, safer and more maintainable
>>
>>59228299
Clearly the c++ one is less verbose, but it ties you down to noun->verb pattern which is not always applicable to datatypes. It also hides some of the memory layout and pointer indirection, and doesn't allow you to pass the structure by value. For the most part though, it is syntax sugar, which is not very impactful to programming. There are many more important pros/cons of C vs C++
>>
>>59228330
No, because I'm not an idiot and recognize usefulness where it exists.
>>
>>59228078
B but make it a class

A in a namespace if you only have one struct instance and don't need to pass a pointer
>>
>>59228349

I very rarely use multiple inheritance or operator overloading.
>>
File: validcsharp.png (2KB, 388x93px) Image search: [Google]
validcsharp.png
2KB, 388x93px
That said, operator overloading is incredibly useful.
>>
>>59227605
yuck
thumbnails are too similar to differ
>>
>>59228379
post black women please
>>
>>59228363
>I'm not an idiot
this is only possible if you agree with the statement you replied to. which you don't, meaning that you most likely are indeed an idiot.
>>
>>59228418
t. An Idiot
>>
>>59228417

I would, but I'd rather not get banned.
>>
http://stackoverflow.com/questions/24320979/does-py2exe-include-imported-modules

I shouldn't even need to fucking try include or import any modules py2exe is a fucking piece of poo.

Can someone PLEASE tell me how to convert a .py script that includes all downloaded/standard modules and fucking turn it into an EXE, for god sake its 2017 how does PYTHON not have a standard lib to do this FOR US
>>
>>59228421
i agree with that statement which already makes me less of an idiot than anyone who would disagree with it.
>>
>>59228433
t. The Same Idiot
>>
>>59228432
>those plebbit spaces
>pajeetoverflow
back to your subreddit
>>
File: LG_002.webm (2MB, 654x720px) Image search: [Google]
LG_002.webm
2MB, 654x720px
>>59228417
>not based white women
>>
>>59228438
are you high on your painkillers, kid?
>>
>>59228462
t. Still An Idiot
>>
File: LG_001.webm (2MB, 404x720px) Image search: [Google]
LG_001.webm
2MB, 404x720px
>>59228461
>>
>>59228443
How about FUCK YOU?
I fucking asked nicely and everyone kept telling me
>MUH CX_FREEZE
>MUH PY2.EXE
and I TOLD THEM that THEY DONT FUCKIGN WORK

how to convert A FUCKING simple PY script to EXE FOR FUCK SAKES?

Do I have to FUCKING re do everything in X86_64????

fucking WASTE of my time, PYTHON is a piece of SHIT
>>
>>59228443
>let me insult this person instead of being helpful! That'll show him! Take that, reddit!

>>59228432
I'm not too terribly familiar with using standalone python executables, but have you tried the cython compiler?

http://cython.org/
>>
>>59228478
Or maybe python wasn't made for .exe's?
>>
squarerootniggers can't into cosine
>>
>>59228461
>>59228477
thanks

OSGTP is known for blackposting, so that's why I asked him
>>
>>59228478
You know that your kind isn't welcome here, right?
>>59228488
>reddit spacing
deport yourself from this thread.
>>
>>59228478
you should probably try using a compiled programming language rather than an interpreted one
>>
>>59228507
hownu.ru
>>
>>59228508
>compiled or interpreted programming language
there is no such thing, plebbitor.
>>
>>59228488
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH NO NO MORE FUCKING MODULES AND PIP INSTALLS FUUUUUUUUUUCK WHAT THE FUCK IS THIS LANGUAGE IS IT FUCKING DUCT TAPED TOGETHER WITH LIBRARIES?????

>>59228496
WHAT DO YOU MEAN??? EVERY FUCKING PROGRAM (As long as its running on an intel cpu) WILL BE EVENTUALLY CONVERTED INTO ASM INSTRUCTIONS HOW THE FUCK CAN PYTHON NOT BE MADE FOR .EXE WHEN THEY RUN?????????????????????

>>59228507
Im angry

>>59228508
The deed is already done, I just want my fucking .exe for god sake, spent 4 hours trying to figure out this shit
>>
>>59228478
import exe
>>
>>59228522
the official python implementation is interpreted okay :)
>>
File: 1488598018390.jpg (34KB, 432x552px) Image search: [Google]
1488598018390.jpg
34KB, 432x552px
>>59228500

If you're going to love white women, they ought to at least be thicc.
>>
>>59228562
it seems like you have aids
>>
File: babyrage.png (55KB, 320x240px) Image search: [Google]
babyrage.png
55KB, 320x240px
please for the love of god somebody https://www.youtube.com/watch?v=YSN6et9eze8

Its fucking unreal how its harder making an exe file out of a .py script than making the actual logic of the program
>>
>>59228615
learn a real language
>>
>>59228615
where the fuck did you get that picture from?
>>
>>59228615
Everything in your posts reeks of reddit.
Seriously: piss off. Your kind is not welcome here.
>>
Working on an image segmenter. Splits documents into individual characters.

https://youtu.be/-4SoT77acZM
>>
>>59223562
no they arent
>>
>>59228626
I've installed the D compiler thanks to that unpaid D shill guy.

Language seriously looks real neat so I'm interested, but might not be able to use it for University because its not famous enough (auto markers etc.)

>>59228632
I'll tell you if you make my .py script into an exe

>>59228634
Dude fuck off you fucking moron, no one gives a shit if you browse reddit or not, and fyi I haven't even been on the website in my entire fucking life, is all you care about in your life spamming on a fucking noodle forum "WEH U R SOUNDZ LEIK REDDIT GO WAY PLZ"

fuckign retard
>>
Pajeet here

Ask Me Anything
>>
>>59228673
java or C#
>>
>>59228699
Well I am here in Usa and I prefer Java because it pays a ton more than C#
>>
>>59228654
ill give you $10 if you tell me where you got that picture from
>>
New thread:

>>59228724
>>59228724
>>59228724
>>
>>59228722
>BabyRage
>>
>>59228722
from your mom
>>
>>59228721
what is the shitting procedure? do you pour water from a bottle onto your hand and wipe your ass with your hand? do you wash your hands afterwards?
>>
>>59228583
I've been learning Rust
>>
>>59228523

>NO NO MORE FUCKING MODULES AND PIP INSTALLS FUUUUUUUUUUCK WHAT THE FUCK IS THIS LANGUAGE IS IT FUCKING DUCT TAPED TOGETHER WITH LIBRARIES?????
Every language is duct taped together with libraries. Let us consider C or C++

>want to do database shit
Have to install libsqlite3 or some sql connector

>want to do HTTP shit
Have to install libcurl

>want to do graphics shit
Have to install libsdl2 or a similar library

Oh what do you know, Python isn't so alone. No language has everything you need in its standard library. Java doesn't come with CSV parsing functionality out of the box, and Ruby doesn't come with a GUI toolkit out of the box. Nothing comes with everything you need. You no longer can use this as a complaint about your language. Use a fucking package manager and eat shit.

>WHAT DO YOU MEAN??? EVERY FUCKING PROGRAM (As long as its running on an intel cpu) WILL BE EVENTUALLY CONVERTED INTO ASM INSTRUCTIONS HOW THE FUCK CAN PYTHON NOT BE MADE FOR .EXE WHEN THEY RUN?????????????????????

Python is a dynamic language that intrinsically requires a runtime environment capable of understanding Python code. Aside from the fact that the language is duck typed, it has eval(). When you wrap a Python program in an .exe, all you are doing is embedding the Python interpreter and all of the Python code into a standalone program that loads the Python code (or compiled Python bytecode as it may be) into memory and executes it in the Python environment.

On that note, you might as well just ship a C program that loads your Python program from source and executes it.
>>
>>59228523
>EVERY FUCKING PROGRAM (As long as its running on an intel cpu) WILL BE EVENTUALLY CONVERTED INTO ASM INSTRUCTIONS
No, this is not correct, where did you learn this?
>>
>>59228642
Does it save spaces and newlines?
>>
i just thought of something fun, using my old laptop to monitor whether my neighbors (i have 3 apartments near me) are around by measuring their wifi activity and plotting their activity over time. is there something like this around?
Thread posts: 321
Thread images: 51


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