[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Yearly programming thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 45
File: slides_to.jpg (35 KB, 561x365) Image search: [Google]
slides_to.jpg
35 KB, 561x365
Old thread: >>52169298

What are you planning on this year, dpt?
>>
first for trapfag tears
>>
File: 1451551029327.png (402 KB, 1024x768) Image search: [Google]
1451551029327.png
402 KB, 1024x768
>>52172915
Something worthy of the christ
>>
File: 1315907201.92635185.jpg (105 KB, 1280x720) Image search: [Google]
1315907201.92635185.jpg
105 KB, 1280x720
Why is GPL like communism, /dpt/?

I don't understand.
>>
If you program in any of the following languages, you are a KEK!:

- Java
- C#
- Hasklel
- Lisps (any)
- F#
- Elixir
- Javascript
- Racket
- Ruby
- Perl
- Lua
- Ada
- Fortran
- D
- Rust
- Go
- R
- Python
>>
>>52172957
GPL isn't like communism. GPL is more like anarchism.
>>
>>52172957
Because the community at large cant be trusted to protect its rights so they much be forced upon them.
>>
File: jj.png (169 KB, 363x270) Image search: [Google]
jj.png
169 KB, 363x270
Why is static typing a meme, /dpt/?

I don't understand.
>>
>>52172957
it's written in a anti-corporate spirit, it's "copyleft"

if you use any GPL code for even 1% of your program, you have to share your source code for 100% of your program. communists will tell you that it's "fair" for everyone to share and they think that everyone can be rich and prosperous but in reality, everyone will just be equally as poor in a communistic society.
>>
>>52172970
>mfw i use C#, JS, Python, Go, and Lua(sometimes)
>never touch c/c++

guess i'm a major kek.
it's just i have no need for such low level languages.
>>
>>52172978
Because turbo autists can't understand their types on their own, so they need their language to force them to type it
>>
>>52172978
it's not a meme

dynamic typing is fucking retarded

https://www.youtube.com/watch?v=20BySC_6HyY
>>
>>52172992
>he doesn't even program in APL
>>
Daily reminder that if your language of choice is not on this list you should probably give up and kill yourself:
- C++
- C#
- Lua
- Python
- Elixir
- Haskell
- Bash
- Clojure
- D
>>
>>52172995
you're too stupid to think straight so your script (not that you'd actually write any useful program) has to "just werk"
>>
>>52173009
>- C++
Most ugly language.
>- C#
Decent but windows only (no mono is shit).
>- Lua
Useful only for embedding.
>- Python
Ok, but it's for lazy devs.
>- Elixir
WTF
>- Haskell
The master language.
>- Bash
Like PHP or toothbrush, it's useful and does the job. But it's shit.
>- Clojure
WTF
>- D
Go away.
>>
>>52173009
where is C, reddit?
>>
>>52172995
>can't determine what type the variable is at a glance sometimes

its just annoying
>>
>>52172971
Anarchism would allow developers to code in their proprietary software, surely.

GPL doesn't, therefore GPL is more like communism since it's all about "the greater good."
>>
>>52173036
*to use code
>>
>>52173001
No, why would I?

What the hell software even uses APL?
I'm not trying to be some cutting edge programmer here.
>>
QUICK, WRITE A PROGRAM TO SWAP THE CASES OF A GIVEN STRING IN A LANGUAGE OF YOUR CHOICE

"aBc" > "AbC"
>>
>>52173058
shit = aBc
shit2 = shit.swapcase()

hahahaha
>>
>>52173035
git gud

>>52173027
>doing unnecessary work and not just focusing on projects bigger than small autistic type issues
>>
>>52173074
it has nothing to do with being good.

it's more of a preference, and I prefer to explicitly state what my fucking variables are.
>>
>>52173058
just use swapcase lmao

t.superior python programmer
>>
>>52173087
>I prefer to explicitly state what my fucking variables are.
alright, if you find extra needless work fun, that's not up for me to judge
>>
>>52173000
javascript is special
>>
>>52173036
Whith GPL, you can fork when you want. That's not the kind of things that communism allow.
>>
>>52173058
string = 'abc'
string.map! { |char| char.upcase == char ? char.downcase : char.upcase }


warning untested and hungover
>>
File: asteroids.jpg (165 KB, 537x552) Image search: [Google]
asteroids.jpg
165 KB, 537x552
/g/ recommend me a book on xcode development? I feel the sweet call of the void.
>>
public class Myfirstprogram {
public static void main (String[] args){
System.out.println ("Hello World!");
}
}

I've learned to program. How do I join anonymous and become a hacker?
>>
>>52173058
for(size_t i = 0; i < strlen(s); ++i) {
if(isalpha(s[i])) {
if(isupper(s[i])) {
s[i] = tolower(s[i]);
} else {
s[i] = toupper(s[i]);
}
}
}
>>
>>52173109
The javascript fuckery in that video is attributed to being "Weakly Typed" rather than dynamically typed too.
>>
>>52173116
Pajeet pls go and stay go
>>
>>52173073
abc isn't in quotes, surely it won't work?

I'll do it without swapcase because it's cheating

userinput = input(">>> ")
output = ""
for char in userinput:
if char.lower():
output += char.upper()
elif char.upper():
output += char.lower()
else:
output += char
print(output)
>>
>>52173089
>>52173073
next time i'll put without using builtin methods baka
>>
Write a program that generates words that are English sounding and usually pronounceable.

Resources:
English n-gram occurrence in words
http://norvig.com/mayzner.html
http://practicalcryptography.com/cryptanalysis/letter-frequencies-various-languages/english-letter-frequencies/

Possible methods:
Mashing english words together
Generating from n-grams
Markov Chains
Machine Learning
?????
>>
>>52173131
"Weakly typed" doesn't have a very good definition.

But Javascript is loose butthole weak typing imo, it's fucking obnoxious when you are first starting out and are making mistakes.
>This should error out so I will be able to tell
Yeah right.
>I used == to compare two variables
woops
>>
>>52173138
>swapcase is cheating
Nah, it makes a boringly easy algorithm faster to use
>>
>>52173133
I am surrounded by poo and hindoo. I am 2cool4Jalandahar, one day I will be famos international hacker and bring pride to Jatt hindu people, but first i must become expert programmer.
>>
>>52173138
>I'll do it without swapcase because it's cheating
It's not, there's no reason to reinvent the wheel, programming languages should be convenient.
>>
>>52173138
> because it's cheating
Seriously?

If you were at work, you'd just make a function/method for swapping cases. Pythons imply already has one done for you. There's probably already a string library for your language ttoo if you searched.

It's called saving time.
>>
>>52173058
void changecase (char *s) {
for(; *s != 0; s++) {
*s ^= ' ';
}
}
>>
>>52173180
thats not the point of a challenge, even if its a small one
>>
>>52173073
>>52173089
>there is unironically a built in method in python dedicated to this useless fizzbuzz meme
fucking babies
no wonder your language is slow as shit
>>
>>52173202
>built-in functions slow a language down
>>
>>52173196
Post a challenge that can't be googled, doesn't have a built-in method, or hasn't been done already by thousands of people then.
>>
File: uui9.png (481 KB, 626x988) Image search: [Google]
uui9.png
481 KB, 626x988
>>52173058
 
String.prototype.swapcase = function() {
"use strict";
let val = "";

for(let c of this) {
if( c === c.toUpperCase() ) {
val += c.toLowerCase();
} else {
val += c.toUpperCase();
}
}
return val;
}
>>
>>52173196
I'd say the point of these challenges are still to produce the most concise and efficient code.
>>
>>52173209
it's bloat and adds clutter

and it's so simple that you can just write it yourself if the need for it ever arises
>>
>>52173218
>toUpperCase()
>toLowerCase()

literally no better than using .swapcase()
>>
>>52173218

>>>/g/wdg
>>>/vg/agdg
>>
>>52173219
>>52173216
ok sheesh i'm literally hitler for not using swapcase
>>
>>52173058
import Data.Char

swapcase :: String -> String
swapcase = map f
where f x | isUpper x = toLower x
| otherwise = toUpper x
>>
File: this triggers the assburger.png (66 KB, 998x1132) Image search: [Google]
this triggers the assburger.png
66 KB, 998x1132
>>52173216
flower of life
>>
>>52173188
You need to check if it is a letter first
>>
>>52173150
so that means not lower or upper then?

inPut=raw_input()
output=""

toUpper={
"a":"A",
"b":"B",
"c":"C",
"d":"D",
"e":"E",
"f":"F",
"g":"G",
"h":"H",
"i":"I",
"j":"J",
"k":"K",
"l":"L",
"m":"M",
"n":"N",
"o":"O",
"p":"P",
"q":"Q",
"r":"R",
"s":"S",
"t":"T",
"u":"U",
"v":"V",
"w":"W",
"x":"X",
"y":"Y",
"z":"Z"
}

toLower={
"A":"a",
"B":"b",
"C":"c",
"D":"d",
"E":"e",
"F":"f",
"G":"g",
"H":"h",
"I":"i",
"J":"j",
"K":"k",
"L":"l",
"M":"m",
"N":"n",
"O":"o",
"P":"p",
"Q":"q",
"R":"r",
"S":"s",
"T":"t",
"U":"u",
"V":"v",
"W":"w",
"X":"x",
"Y":"y",
"Z":"z"
}

for i in inPut:
if "a"<=i<="z":output+=toUpper[i]
elif "A"<=i<="Z":output+=toLower[i]
else: output+=i

print output
>>
>>52173058
[char.swapcase() for char in "input" if char not " "].join()
>>
>>52173058
not unicode-aware but idgaf
local function swapchar(c)
local u, l = string.toupper(c), string.tolower(c)
return u == c and l or u
end

function string.swapcase(s)
return s:gsub("%a", swapchar)
end
>>
File: indexing.gif (28 KB, 489x471) Image search: [Google]
indexing.gif
28 KB, 489x471
indexer
>>
>>52173256
>flower

you mean, draw a bunch of overlapping circles?

i've already solved it in my head.
no need.

next
>>
>>52173300
>you mean, draw a bunch of overlapping circles?
That's called the flower of life you dumb shit

>i've already solved it in my head.
Nice try
>>
File: 37.png (92 KB, 969x1145) Image search: [Google]
37.png
92 KB, 969x1145
>>52173300
tell me how you solved it

it has to be extendable to 19, 37, 61 circles etc
>>
>>52173058
(defun swapcase (list) (list))


there's only one true case in comon lisp
>>
>>52173268
What for?
>>
>>52173256
code pls?
>>
>>52173300
Never fucking reply to me again unless you're contributing to the thread.
>>
>>52173309
code pls?
>>
>>52173318
warning, it's pajeet code
>>
>>52173318
i'll post it ITT in about an hour

just in case someone wants to give it a try without seeing the solution first
>>
>>52173320
but you just did and did not contribute to the thread in any way
>>
>>52173330
it can easily be converted to C/C++ or pretty much any sane language
>>
File: 1451512544389.jpg (36 KB, 480x360) Image search: [Google]
1451512544389.jpg
36 KB, 480x360
haskell is a fucking meme
>>
>>52173333
I really don't see the challenge here
just take a circle and draw circles at equidistant points around it
>>
File: 1420290158115.jpg (132 KB, 967x816) Image search: [Google]
1420290158115.jpg
132 KB, 967x816
>>52173333
>>
>>52173351
it has a kind of hexagonal shape, like a 3d cube of spheres projected to a 2d plane

if you just drew equidistant circles past 7 circles you'd end up with a circular shape instead
>>
>>52173351
Then I'm sure you can whip it up quite quickly instead then
>>
File: lino_tadros[1].jpg (1 MB, 1632x1224) Image search: [Google]
lino_tadros[1].jpg
1 MB, 1632x1224
I plan on going into game/app development. my dream is to be able to make a living out of it. I have zero programming knowledge, but I will spend the next 6 months solely on programming in C++ I have already bought 2 books I plan to read

I wanna know what you guys think about it. Crush my dream /g/
>>
>>52173389
if you suck at math you're gonna make shitty games
>>
daily reminder if your prog language isnt on this list youre a basement dwelling neckbeard virgin who makes no money:
java
javascript
>>
>>52173389
>Crush my dream /g/
>I have zero programming knowledge
Your dream is already crushed because it takes long to get to a point where you can actually develop games, let alone apps, and you will quit for sure since your last sentence has already set your mind up for failure
>>
>>52173389
games don't make money
paid apps need to have a niche audience (or be written for macs) to support a lifestyle business
you can do it, just don't expect it to be more likely or profitable then just going to work for a company and doing the same thing
>>
>>52173389
As a guy who already has an indie game on Steam and is a self taught programmer, i say learn basic physics besides programming language
>>
I'm trying to write a method in C# for detecting when a file was last moved, touched, interracted with, something that would show up immediately after copying it from one place to another.

The 3 I can see right in front of me don't seem to fit the bill at all, which isn't too good.

Are there any other ways I can detect files that are new in a given directory without just iterating through them all and checking between what I currently have and what my application thinks I have?
>>
>>52173433
post your game
I've got 2bux of sweet trading card cash
>>
>>52173403
he will get better at math the more he programs

atleast thats how it was for me.
>>
>>52173000
nothing to do with dynamic typing.
>>
Raw pointers or smart pointers?
>>
>>52173433
>indie game
>on steam
Please don't post. I'm tired of indie platformers
>>
>>52173442
You'll need 6

http://store.steampowered.com/app/405960
>>
>>52173414
javascript is good but java is trash m8
>>
>>52173415
> it takes long
It doesn't take that long.

If he's a NEET and spends 12 hours a day studying, he can be making decent stuff within 4 months max.

Of course, since he's using c++, it'll probably take 4 years to get a game going.
>>
Does common lisp have a mascot? If not, I propose a cute 8/10 (or more) guy who's really friendly to everyone but not very popular because everyone else is jealous of him.
>>
>>52173443
he has a shot if he sticks to C++ and raw opengl

unironically using shit like libgdx, love2d, unity numbs the brain
>>
>>52173457
>>52173464

Not a platformer.

The whole game was made by 2 self taught guys with ~$0 funds
>>
>>52173457
As opposed to being tired of indie rougelikes, rpgs and generic puzzlers?

Anon, any genre is easy.
>>
>>52173449
Smart pointers when you can, raw pointers when you really have to.
>>
>>52173435
everything can be faked.
>>
File: outsourcing.jpg (41 KB, 349x466) Image search: [Google]
outsourcing.jpg
41 KB, 349x466
>>52173414
angry because pic related?
>>
>>52173464
looks shitty
doesn't worth 6 bucks
>>
>>52173449
Smart pointers. If you dont use them, you are not smart
>>
>>52173491
Alright, i'm not trying to convince you to buy it
>>
>>52173464
pretty good but the speed your character moves + the slow animation is painful to look at
>>
>>52173433
i know you probably wont share these with us, but
how much do you get from the price, and how many copies have you sold already?
>>
>>52173487
This is in no way helpful. All my "fake" solutions involve me creating another data object from scratch and comparing, which is what I'm trying to avoid because it takes a long ass time.

I just need to compare my current list of objects against my files to see if there are files it's missing, and have it know exactly which ones are missing so it can do things with them.

I'm clean the fuck out of ideas, because there's no useful data stored in the files that would be helpful in this situation.
>>
>>52173521
steam goes 70/30 pre-tax iirc and you can get ownership data from steamspy
>>
>>52173522
https://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher(v=vs.110).aspx
?????
>>
>>52173490
You lucky benchoot,
>>
>>52173509
That was fixed in the patch. Now the main mode is slightly faster and we have another mode where everything is pretty much 2x the speed

We weren't trying to make another PoE or Diablo, we can't even compare with them, we are more roguelike with permadeath so if you die you lose everything. That's why you have slower speed than most ARPGs

>>52173521
Steam takes 30%. If you are not in USA you also have to pay US taxes which vary from country to country and it goes up to 30%. if you manage to find someone from the USA to run the whole operation over him than it's only that Steam 30%
>>
>>52173490
trap???
>>
>>52173546
>Being this dense

It's for checking for changes between sessions mate, Unless there's some way to store the watcher locally that I can use every time the application runs.
>>
>>52173435
There isn't a "list all files which were added since X" function. Any solution is going to require enumerating the directory's contents, and unless you're doing something seriously wrong, that will take at least 10x as long as anything that's done within the application.
>>
File: giphy (2).gif (476 KB, 360x226) Image search: [Google]
giphy (2).gif
476 KB, 360x226
>>52172915
I'm trying to call Procs from within other Procs and I know that's not working. How can I accomplish what I'm trying to do? I started yesterday.

http://pastebin.com/z0GsaQeM
>>
>>52173584
you can compare files it selves, sizes and modified/created/accessed???????
>>
>>52173590
The way my method generates a library right now is time intensive as fuck, with smaller music collections it's a non-issue, but if you're over 100 albums then it's just a huge timesink.

If I was lazy I'd just have it run the library generation method from scratch each time the thing booted up, but that'd make the thing hideously unusable.

I need a much faster way to detect a miss-match between my objects (which have a full path as a property) and the local files.
>>
File: 1407011879811.jpg (51 KB, 500x500) Image search: [Google]
1407011879811.jpg
51 KB, 500x500
>>52173389
>>52173433
>not foss
>>
>>52173624
>making your video games FOSS
enjoy bankruptcy
>>
>>52173188
void changecase (char *s) {
for(; *s; s++)
*s ^= ' ';
}
>>
>>52172915
I hadn't seen the slides before. That is awesome.
>>
>>52173639
If you live by selling your software, you are a confirmed code monkey
You are also unethical.
>>
>>52172970
That's every popular programming language
>>
>>52173659
I'm sure your ethics will mean something when you can't produce more fun games because you are too busy being bankrupt
>>
Threadly reminder that you should not refer to the act of programming as coding. It is improper and makes you look like a 15 year old

You are a programmer, not a coder

Happy Gnu/Year (or Gnu+Year as I've taken to calling it) everyone
>>
File: jenga.webm (394 KB, 204x360) Image search: [Google]
jenga.webm
394 KB, 204x360
Ask your favorite programming literate anything.
>>
>>52173623
Record time stamps on directories. If a directory's time stamp hasn't changed, assume that nothing in the directory has changed.

If you're reading metadata from files (which would be the biggest performance cost), you don't need to re-read it if the file's last-modified time hasn't changed.
>>
>>52173677
fuck off you assburger piece of shit, nobody here is saying coder
>>
File: csgrad.png (245 KB, 2088x2080) Image search: [Google]
csgrad.png
245 KB, 2088x2080
>>52173276
>>
>>52173704
this
>>
>>52173058
void
cswapcase (char c)
{
return isupper (c) ? toupper (c) : islower (c) ? toupper (c) : c;
}

void
swapcase (char *s)
{
do
{
*s = cswapcase (*s);
}
while (*++s);
}


>>52173188
>>52173641
Unportable
>>
File: ew.png (272 KB, 470x624) Image search: [Google]
ew.png
272 KB, 470x624
>>52173230
Am I supposed to write every single function from scratch?
>>
>>52173316
punctuation n numbers n shit gon mess up
>>
>>52173727
only if you're autistic
>>
>>52173714
actually while (*s++);
I changed this my mistake
>>
>>52173714
>
void
cswapcase
>>
File: tumblr_ns4jdtTEaw1uc9zo8o1_1280.png (473 KB, 998x1002) Image search: [Google]
tumblr_ns4jdtTEaw1uc9zo8o1_1280.png
473 KB, 998x1002
>>52172984
A) patently false: With GPL 1, you need to share the source with anyone you give the binary to.
B) The LGPL was designed to allow GPLed libraries to be used in non-GPL code. It also allows you to use GPL software as part of the whole, without applying the rest of the software to the GPL. Also known as GPL 2, which is what the bulk of GPL software is.
C) you don't understand economics, or sociology apparently. Did you get your degree from /pol?
>>
>>52173727
you should know how to if you want to call yourself a programmer

else you're just a coder
>>
How do you call a process from within another process?

# RooSend
# Get a user's input and send it to a server

directory_name = "RooSend_files"
Dir.mkdir(directory_name) unless File.exists?(directory_name)
# Still need to make the created files generate in side this directory

send = Proc.new {
puts "Who are you sending your message to?"
target = gets.chomp
puts "Message:"
message = gets.chomp

# Generate a random six-digit number for message ID
rand_num = rand(100000..999999)

fname = "#{username}_#{target}_#{rand_num}.txt"
aFile = File.new(fname, "w")
if aFile
aFile.syswrite(message)
else
puts "Unable to open file."
end

transcript = "\nTranscript:\n Sender: #{username}\n Receiver: #{target}\n Message: #{message}\n Filename: #{fname}\n END"
puts transcript

main_view.call
}

view = Proc.new {
# This is where we'll receive the message from the server
puts "This feature is under construction."
main_view.call
}

main_view = Proc.new {
puts "Enter s to send a message, enter v to view messages received."
choice = gets.chomp
if choice == "s"
send.call
elsif choice == "v"
puts "This function is under construction."
else
puts "You did not enter a valid command."
end
}

puts "\nWelcome to RooSend!\n"
puts "What is your username?"
username = gets.chomp
main_view.call
>>
File: 1450132567226.gif (328 KB, 500x281) Image search: [Google]
1450132567226.gif
328 KB, 500x281
>>52173752
char, sorry oniichan
>>
I'm ok with dynamic typing, but the fact that you can't choose when to pass-by-value or pass-by-reference in python is my only gripe, but it's quite a huge gripe imho (in my honest opinion)
>>
>>52173256
They're not even accurate circles, baka.
>>
>>52173756
>C) you don't understand economics, or sociology apparently. Did you get your degree from /pol?
yeah why don't you house a bunch of somalians and isis "refugees" and you're the one paying for it
>>
>>52173782
I know my code has errors. It won't fucking run. What am I fucking up?
>>
>>52173687
Recording a timestamp on a directory is of no real use, I'd be better off getting a count of the files inside the directory and if that number changes then have the method run.

But I'd still be stuck generating my library the way that I do because of how it works, I'd rather have a method that spits out all the new files in that directory.

I might try using the paths stored in my object and comparing it to a list of paths that currently exist on the disk, only problem is I've no idea how to check for existence within an entire collection (obviously I could use Lambdas, but I'm not intelligent enough to even know how they work)
>>
>>52173785
>
char

cswapcase


also fuk off weaboo
>>
>>52173792
yeah he's anti-bresenham unfortunately
>>
>>52173792
>this triggers the assburger.png
https://en.wikipedia.org/wiki/Aliasing

if you use for example bresenham's circle drawing algorithm the circles won't line up at the intersections properly because of the geometry of the flower of life.
>>
>>52173782
>This function is under construction

KEK
>>
>>52173756
>B) The LGPL was designed to allow GPLed libraries to be used in non-GPL code. It also allows you to use GPL software as part of the whole, without applying the rest of the software to the GPL. Also known as GPL 2, which is what the bulk of GPL software is.
WHAT THE FUCK, THIS IS TOTALLY WRONG

>>52172984
>implying non-free programs allow you to use even 1% of the source
GPL wants to kill non-free programs, nothign wrong with that as they are a total cancer.
kill yourself.

also, half of your post is offtopic
>>
>>52173810
how about you make a flower of life with bresenham's and then we'll see how good it looks
>>
File: coder_projects.jpg (51 KB, 640x250) Image search: [Google]
coder_projects.jpg
51 KB, 640x250
>>52173256
ur shit, go back to coding... coder dude!
>>
File: tinypatchouli1.png (547 KB, 500x481) Image search: [Google]
tinypatchouli1.png
547 KB, 500x481
>>52173805
Nothing wrong with that :3
>>
Thread.currentThread().interrupt()


what now motherfuckers, you can't post until you handle this interrupt
>>
File: 1451615324386.png (193 KB, 809x315) Image search: [Google]
1451615324386.png
193 KB, 809x315
>>52173834
Just pulling your leg m8
>>
>>52173830
Go back to /pol where ignoring verifiable facts is appreciated, or back to /b to learn to troll.
>>
>>52173845
_Bool handle(void){ return 0; /* cancel the interrupt */ }
>>
>>52173863
What does this have anything to do with my post? I am not the one talking about politics faggot.
If "muh trolling!" is your only argument, then sure you won m8

Please feel free to show me where I ignored any verifiable fact.
>>
>>52173889
twiddle my diddle
>>
>>52173001
⎕A[,⊃7 7{⍵⊤⍨⍺⍴26}¨2343744363 4891808746]
>>
>>52173844
you have 30 seconds to explain why this girl is not holding SICP.
>>
>>52173934
working on it
>>
File: lisp12.jpg (109 KB, 800x534) Image search: [Google]
lisp12.jpg
109 KB, 800x534
>>52173934
Because nobody made her hold SICP.
>>
>>52173934
Not that anon, but maybe because gimp has a long learning curve?
>>
>>52173820
thanks for the help, dick.
>>
>>52173977
Help yourself buddy

Here are some great resources:

https://www.google.com/
>>
>>52173714
Family, the changecase he had works in ASCII and UTF-8, what more do you want? EBCDIC?
>>
>>52173999
>the changecase he had works in ASCII and UTF-8
Sure, but it is not portable C
>>
>>52173782
>How do you call a process from within another process?
You mean like execv()? Or perhaps system()?
>>
>>52173756
GPL and LGPL are entirely separate licenses.

LGPL is mostly used for libraries (although some libraries use the GPL).
>>
Recommend me a good, sad anime, /dpt/.
>>
>>52174018
Change case in Unicode is hard. Lots of things in Unicode are hard.

>>52174022
Or %x{}, or fork()

Maybe it's Process.fork() can't recall
>>
File: sicpm.jpg (52 KB, 528x640) Image search: [Google]
sicpm.jpg
52 KB, 528x640
>>52173934
He's probably a newfag.
>>
>>52174075
>Change case in Unicode is hard. Lots of things in Unicode are hard.
This is not what I am talking about.
>>
>>52174073
Boku no Pico or Euphoria.
>>
>>52174073
Anime is not programming related, anon
Traps are.
>>
>>52173561
>If you are not in USA you also have to pay US taxes which vary from country to country and it goes up to 30%. if you manage to find someone from the USA to run the whole operation over him than it's only that Steam 30%

What? Is this accurate? What about if people buy your game using Euros? Or CAD or AUD etc. It makes sense to pay US taxes on USD but I thought the reason Valve started offering other currency was to cut down on this kind of thing.
>>
>>52174099
Never fucking reply to me again unless you're contributing to the thread.
>>
>>52174093
>newfag
Only /b/ newfriends use that term.

>>>/b/
>>
>>52174106
>>52173561
>>>/pol/
>>>/v/
>>>/vg/
>>>/b/
>>
>>52174075
>Or %x{}, or fork()
>Maybe it's Process.fork() can't recall
But what, exactly, are you trying to do? What do you mean by "call a process from within another process"? Have them share memory space? Have them send messages to each other? Have one launch the other? Have both of them keep the other alive?
>>
File: blind niggas.png (368 KB, 643x1351) Image search: [Google]
blind niggas.png
368 KB, 643x1351
>>52173318
>>52173333
http://pastebin.com/GkiZ8rp5

the window size stuff is broken (the window can be too small if you set it to draw too many circles)

just hacked some shit together fairly quickly
>>
>>52174106
I am that guy who wrote that

Currencies that people pay in are different thing. We have many currencies for our game but all money goes to Steam which is US based company.
>>
>>52174111
Okay, ma'am.
>>
File: Capture.png (12 KB, 478x479) Image search: [Google]
Capture.png
12 KB, 478x479
>>52173256
>>52173333
Is using the turtle cheating?

import turtle
from math import pi

def moveto(x, y):
turtle.penup() # Ensure the turtle doesn't leave pen to where he's going
turtle.setx(x)
turtle.sety(y)
turtle.pendown()

radius = int(input("Radius: "))
circles = int(input("Circles: "))

moveto(0, -1 * radius)
turtle.hideturtle()
turtle.speed(0)
turtle.circle(radius)


# Now we calculate where the turtle has to go to draw additional circles
deg = 360 / circles

# Draw them without leaving shit behind
for i in range(circles):
moveto(0, 0)
turtle.circle(radius)
turtle.right(deg)
>>
>>52174099
I thought this was the "/d[pcsa]t/ - Daily Programming/Coding/Scripting/Anime" thread?
>>
I want to create an email client. where do i start?
What language / libraries do I need to know, or rather whats the best for things like that?

I have basic-medium C++ knowledge
>>
>>52174171
Well you haven't actually made the flower of life yet anyway
>>
>>52174073
battle programmer shirase
it's sad because best girl had to go back to america halfway through the show
>>
>>52174171
>Is using the turtle cheating?

Not really, unless you planned to implement Bresenham's circle algo or something.
>>
File: Capture.png (10 KB, 519x523) Image search: [Google]
Capture.png
10 KB, 519x523
>>52174191
working on finishing it off
>>
>>52174184
>/dog petting thread/
>>
>>52174171
lad

https://en.wikipedia.org/wiki/Overlapping_circles_grid

(looks like they fucked up the wikipedia article pretty damn bad since the last time)
but look at
>The pattern can be extended outwards in concentric hexagonal rings of circles, as shown.
>>
>>52174093
>he didn't bothered to read the rest of the posts
I am offended.
>>
>>52174131
>But what, exactly, are you trying to do?
I didn't ask, was just offering more ways of launching subprocesses :)

There are many, many options to Process, that allow for blocking and not, and communication..... I don't know if you can disassociate a child process though that though.
>>
>>52174216
Which is what I'm working on now. I think.
>>
File: mems.jpg (282 KB, 1366x768) Image search: [Google]
mems.jpg
282 KB, 1366x768
In the process of downloading /s/ lads since I've got nothing to do. Gonna have a cheeky wank in a bit hehe
>>
File: ass.png (43 KB, 840x955) Image search: [Google]
ass.png
43 KB, 840x955
>>52174210
your circles look like shit they don't even look like circles
>>
>>52174267
you the lad doing it with java with your straight edges around the circles? kek
>>
>>52174262
Consuming the json in python, and then pulling the images with mechanize?

Also, blue background board==SFW, so maybe not that image?
>>
>>52174280
kill yourself retard

a char array is very low resolution

you're going to get straight edges and aliasing

even with actual pixels the turtle has a similar effect just on a smaller scale
>>
>>52174262
Are you seriously downloading complete boards?
>>
>>52174287
uwotm8?

>>52174303
I did it with /wg/ lad. Python makes it very simple
>>
>>52174303
>>52174287
It's not hard. I've written scripts to do that before, using mechanize. Which is why I asked.
>>
>>52174267
btw this is a joke in reference to
https://warosu.org/g/thread/S52103864#p52103978
>>
>>52174188
> I want to create an email client. where do i start?
An email client typically consists of:
- User interface: allowing the user to type in a message as either plain or rich text, adding attachments.
- Encoding: converting rich test to HTML, converting plain text, HTML and attachments to MIME (quoted-printable or base-64, multi-part).
- Sending (SMTP).

In the other direction:
- Retrieval (POP3 and/or IMAP)
- Decoding
- Display

You probably also want a bunch of optional stuff like an address book, spam filtering, search, organising into folders, etc.

No.52174188

> What language / libraries do I need to know, or rather whats the best for things like that?
Any language will work, libraries depend upon how much you want done for you (e.g. you'll probably want an HTML viewer and editor as self-contained widgets).

The networking protocols are simple enough to implement yourself if you can't find a decent library (i.e. don't choose a language based upon whether it has POP3/IMAP/SMTP libraries built in). Message storage and address book can be DIY, or some key-value store, or consider SQLite if you want more advanced search and organising features.
>>
>>52174332
I'm sure you're the life of the party
>>
>>52174267
Kek, anon. I really triggered you, did I?
>>
>>52174349
>HTML
>rich text
>for mails
faggot
>>
File: mems.jpg (125 KB, 511x507) Image search: [Google]
mems.jpg
125 KB, 511x507
Where's the niggerloving tripfag?
>>
Am I correct in thinking that pi is an abstract concept because there's no such thing as a perfect circle IRL?
>>
>>52174387
I dunno lol. What does wiki say?
>>
>>52174262
>doesn't download negress threads

racist.
>>
>>52174379
>>52174404

Evidently I can't read. Good work.
>>
>>52174387
Yeah, pi is a meme, you should just approximate your circles.

3.14 wil do senpai.
>>
>>52174387
well it's just there because of how the world works, we didn't really invent it, we just discovered it and described it. but it's intangible, we can not have "pi" as a physical item, so it's abstract in that sense.

http://www.iflscience.com/physics/new-physics-formula-links-quantum-mechanics-and-pure-math
>>
>>52174413
Sorry to tell you lad, but I just looked into it, and it's all pajeets. Not even good pajeets, and one pic has all her period blood on her chest
>>
>>52174400
It says your mum has beef curtains.
>>
>>52174375
I don't use HTML when originating email, but a mail client which doesn't support it will instantly eliminate 99.99% of potential users.

Even if you don't send it, you'll almost certainly receive it (and spam doesn't account for *all* of that), and replies to HTML email often need to use HTML (you don't want your clients wondering about whether your email system can "handle" the messages they send you).
>>
>>52174387
>pi is an abstract concept
No. It's not abstract. It's irrational and transcendental.

It's half the ratio of the radius to the circumference. That's not abstract.

It's irrational: can not be represented as a ratio of two whole numbers.

It's transcendental....fsck. I forget the easy way of describing that.
>>
>>52174463
> It's transcendental....fsck. I forget the easy way of describing that.
"Not algebraic". I don't know any *other* way of describing it.
>>
File: 50oDkh2.gif (965 KB, 300x297) Image search: [Google]
50oDkh2.gif
965 KB, 300x297
>>52174447
EBIN POST :DDDDDDDDDDDDDDD
Subscribe if you like!!!!!!
>>
anyone lua in here? Trying to follow a tutorial to create weapons in gmod, but I'm getting an error on this line and another one similar to it. Could someone please point out what is wrong with this code?

    local ent = ents.Create("prop_physics")

if (!IsValid(ent)) then
return
end


The compiler error is saying "unexpected symbol near !"
>>
>>52174463
>It's transcendental....fsck. I forget the easy way of describing that.
transcendental means it is outside our reality, beyond what we can imagine as 3sd+1td beings
>>
>>52174459
>you'll almost certainly receive it
you reply to them asking to resend it
>>
>>52174463
Something that goes on for infinity is abstract, I don't care what your memes say.

You can't represent pi IRL, only approximations of pi.
>>
>>52174446

I like Indian women, too. As long as the woman is brown, I'm into it.
>>
>>52174349
alright. and where should i start? looks like i need to learn alot about the implementation of these protocols
>>
>>52174521
Disgusting.
>>
>>52174494
>time
>dimension
nice meme

>>52174521
noice, this is a sfw board though, but if you can run my script, you can use the threadDl function rather than the boardDl one
>>
>>52173032

c# not ported to linux like 1 year ago?

Operating systems: Windows, OS X, Linux
>>
>>52174519
π

I just did
>>
File: 1451616096639.jpg (87 KB, 480x640) Image search: [Google]
1451616096639.jpg
87 KB, 480x640
>>52174521
>Indians and blacks
Plz mang, I just had dinner.
>>
File: 1451347282582.gif (4 MB, 158x223) Image search: [Google]
1451347282582.gif
4 MB, 158x223
>>52174548

I was born this way.
>>
>>52174558
absolute madman
>>
>>52174562

Indians, blacks, arabs, jungle asians, latinas, the whole lot.

>>52174550
>but if you can run my script, you can use the threadDl function rather than the boardDl one

If I wanted to do something like this, I'd probably knock together a C# program.

I'm good, though.
>>
~
i remember 2015 like it was yesterday.
>>
>>52174558
The symbol 'π' is abstract, it can't represent something IRL.

Show me something that weighs exactly π grams.
>>
File: 1421968277230.jpg (34 KB, 960x640) Image search: [Google]
1421968277230.jpg
34 KB, 960x640
>>52172970
>tfw it doesn't mention swift
Glad I'm on a kek
>>
>>52174481
Not the root of a non zero polynomial function. Which makes sense to me, but isn't a great way to explain it without a bunch of math classes.
>>
File: Capture.png (9 KB, 517x486) Image search: [Google]
Capture.png
9 KB, 517x486
at least they're the right shape now
>>
>>52174578
Literally worst of all. Shame on you burgerboy.
>>
>>52174597
not*
>>
>>52174608
>Literally worst of all.

Whiteness is boring, family.
>>
>>52174558
>Rekt
>>
File: Chongqing2.jpg (33 KB, 272x452) Image search: [Google]
Chongqing2.jpg
33 KB, 272x452
>>52174613
That's why I change my routine between white and yellow.
>>
>>52172970
>js
Do you not use the Internet?
>>
>>52174650
no. why would i?
>>
>>52174650
>If you program
you cuck
>>
>>52174578
dvdasa?
>>
File: merryXmas.jpg (128 KB, 1067x535) Image search: [Google]
merryXmas.jpg
128 KB, 1067x535
show your cheeky one-liners
>>
>>52174593
>The symbol 'π' is abstract, it can't represent something IRL.
Sure it can, π represents the ratio between the circumference and the diameter of a circle.
>>
What's the point of abstract math? It just confuses people and it isn't used for anything.

The concept of infinity shouldn't even exist, the maximum allowed integer in math should equal the the number of subatomic particles in the universe because we're not going to above that for anything, are we?
>>
>>52172970
so Swift is godmode ?
I fuckin knew it !
>swift faggots on suicedewatch
>>
>>52174705
What's the point of math? It just confuses people.
>>
>>52174699
>π represents the ratio between the circumference and the diameter of a PERFECT circle
PERFECT CIRCLES DON'T EXIST IRL

REEEEEEEEEEEEEE
>>
>>52174650
I transpile my C code to javascript using webassembly. I never have to write a line of JS.
Thread replies: 255
Thread images: 45

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.