[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/ - Daily 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: 20
File: timetocode.webm (2 MB, 1152x648) Image search: [Google]
timetocode.webm
2 MB, 1152x648
This is /dpt/, the best subreddit of /g/

Umaru-chan edition, the best of all editions.

In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment

code of conduct:
no racism
no insult
no sexual harassment
no gender discrimination

wat r u working on, anon-chan ?
>>
File: download.jpg (7 KB, 240x200) Image search: [Google]
download.jpg
7 KB, 240x200
>>54006217
Kill yourself you dumb broad, nigger faggot.
>>
>>54006217
How do I find examples of the most well made Java programs on GitHub? Don't know how to filter by how well written they are. I'm trying to become a better programmer for both myself and those who will have to read my code. I know Java is hated here but it's the language I use in my job.
>>
File: 1440636464956.png (28 KB, 191x240) Image search: [Google]
1440636464956.png
28 KB, 191x240
>>54006322
>>
Mutable state is evil
>>
>>54006322
https://github.com/google/guava
>>
>>54006322
Well-written is not an objective thing, in some cases.

For example, some may consider the most performant code to be the best written.

However, if that code has 10% less performance in a not performance-critical class, and is 100% easier to read, some would consider the easier to read code to be better.
>>
File: pathtracer1.png (775 KB, 799x512) Image search: [Google]
pathtracer1.png
775 KB, 799x512
Getting somewhere with my path tracer. Very noisy though, gotta improve this shit a lot still.
>>
Looking for small compilers with easy interface to c, plus points if it can call c++.
Example from terra.
C = terralib.includec("stdio.h")
C.printf("Hello, Terra!\n")

Terra is around 10kloc. There is Luck language and it's compiler is around 7kloc but it's written in ocaml.
>>
>>54006411
>However, if that code has 10% less performance in a not performance-critical class, and is 100% easier to read, some would consider the easier to read code to be better.

And those people would be wrong
>>
Just figured out an algo for a computer go program im making that can determine if a group of stones has been surrounded
>>
>>54006485
No, they wouldn't.

Potential hours of human time is not worth an extra 20ms on a 10-second function.
>>
>>54006503
I'm impressed.
>>
hello can anyone help write this regular expression

i need it to go from the first character to space. right now im just doing ^\S which works but i obviously need a range of some sort. how do i prevent it from getting rid of the first character?

thanks.
>>
>>54006503
Who cares AlphaGo already solved Go
>>
>>54006217
You know, I'm really fucking glad I avoided /a/ during that season.
>>
Is Glade included by default in GTK+3?
>>
>>54006509
But what if it's ran by 100 million people, like Windows?
20ms x 100 million = 555 wasted hours of execution time. And that's just from each person running it once. How much electric is wasted?
>>
>>54006217
Who Raspi4ChanXCaptchaSolveBotnet here?
>>
what are some good companies to work at
i need a new job
>>
>>54006525
You want to match from the first character to the first space, including or not including the space?
>>
>>54006473
Nim has everything you're talking about.
>>
>>54006554
but when your performance critical functions are wasting many more thousands of hours, it's a waste of time to look at relatively small things like hundreds of hours
>>
Why do people hate namefags/tripfags so much?
>>
>>54006554
Do you actually think this is a point?

Do you realize how insignificant that is?
>>
>>54006565
from the second character, technically. for example

ABC hello
should reutrn Ahello

right now its just hello
>>
>>54006554
>implying modern devs give a fuck about lost time
>that fucking Win10 tablet mode
>the auto update system that's been killing work time since XP
>the obnoxious Settings app
>putting Bing search into search, causing it to lag
>>
>>54006591
Goes against the culture and point of these boards.

Anonymous posting ensures that everyone has an equal say, and that unpopular opinions are not hidden or squelched.

You're welcome to use a trip if your particular identity is crucial to the conversation (Like Floens, the dev of Clover), but if you're a faggot, then you're likely to just get filtered by many people.
>>
>>54006411
I'm looking for code that's easy to read and maintain above performance.
>>
>>54006559
what is that?
>>
File: wiamwo_20160412.png (65 KB, 1099x297) Image search: [Google]
wiamwo_20160412.png
65 KB, 1099x297
Writing a program that takes a .ped file as input then brute-force estimates relatedness coefficients. We have found that some algorithms that search for loops throw errors with pedigrees that have multiple intersecting loops. The point is to use this for checking against whole-genome data as a sanity-check for the pedigree structures we have.
>>
>>54006398
Thanks I'll check it out
>>
>>54006591
because they add nothing and can ditch their identity whenever they need to make an unpopular statement or say something that won't grow their e-peen

it's pathetic
>>
>>54006648
What language is that?
>>
>>54006592
>insignificant
Is it really so insignificant when you consider all the inefficient code that gets executed on a daily basis around the world?

It may very well pay off to put more human-work-hours into making better code.
>>
File: putin.jpg (203 KB, 1000x1000) Image search: [Google]
putin.jpg
203 KB, 1000x1000
/daily dumb goy thread/

Toy C program general

Python "import neural-net" Look I made a neural net!

No mention of Lisp or Haskell anywhere
>>
>>54006666
it has wannabe c syntax, so it's probably shit
>>
>>54006593
([a-zA-Z])[a-zA-Z]*\s+([a-zA-Z]+)

Then you'll go through and concat every two results.
>>
>>54006659
Sounds pretty cool. I'm going to become a tripfag or a namefag.
>>
>>54006580
cloc shows that nim has little less than 4 millions of lines. Not sure if that's accurate or if cloc is bugging out but that's still way too much for studying purposes.
>>
>>54006633
Then you're probably a faggot.
>>
>>54006682
In some implementations there might be \l for [a-zA-Z]
>>
>>54006677
What's up with the Haskell meme, anyway?
Can I make games or program my Arduino with Haskell?
Does it even have performance?
>>
>>54006648
Dijkstra's algorithm?
>>
>>54006691
I work on a team and they will have to read my code at some stage. Also I'll be embarrassed if I have badly written unmaintainable code.
>>
>>54006666
R
>>
File: collective-brain.jpg (105 KB, 400x300) Image search: [Google]
collective-brain.jpg
105 KB, 400x300
>>54006591
I don't, but i think it's weird you want to identify yourself for no good reason. Also, i like to fade into an anonymous crowd and use their arguments as mine, as we where a collective brain.
>>
can you call yourself a software developer if you create simple apps and sell them on google play?
>>
>>54006691
Shouldn't you be browsing the code golf section of stack exchange?
>>
>>54006712
Make well-written performant code. Make comments where you make trade-offs.

(Unless you use JS - put the comment outside the function body or V8 will not inline it (not bullshitting))
>>
http://pastebin.com/idbKGzmt
What's wrong with this? Prints only 1 valid random value when it is run and nothing else.

If I try to access other elements like [50] or something it's just garbage.
>>
>>54006473
Most compilers you'll find are in the 10k-30k LoC range. Lua's is pretty small. Then entire languages is around 25k for the compiler and runtime, so I'd estimate the compiler at around 10k.
>>
>>54006677
This desu
>>
>>54006733
Absolutely.

You're literally developing software at that point.
>>
>>54006703
It's similar but since it's a defined family structure, all correct paths must be constructed.
>>
>>54006690
Sorry, missed the "small". However, I think most of that is the stdlib. The actual Nim compiler can't be that big. If it is, my apologies, but I still think it's a great way to learn about compilers.
>>
What's a good language for writing quick scripts or extensive desktop stuff?

I do most of my work in C because muh hardware, but for scripts and GUI desktop shit, C can get pretty annoying.
>>
>>54006699
>Can I make games or program my Arduino with Haskell?

Who cares?

>Does it even have performance?

Performance is about the algorithms you write, not the language. Haskell enforces no runtime, so it can be faster than C.
>>
>>54006755
sarcasm is still hard to detect over the network in 2016
>>
>>54006807
>Performance is about the algorithms you write, not the language.
My favorite meme!
>>
>>54006743
Actually it's more like 16.5k for the entire language. The compiler is located in lparser, llex, ldo, and ldump.
>>
>>54006793
>What's a good language for writing quick scripts or extensive desktop stuff?

Common Lisp
>>
Need some help with JS syntax
memory_map_write8[addr >> MMAP_BLOCK_BITS](addr, value);

What is the (addr, value) at the end doing?
I.e., what does this do?
array[index](shithere,wtf)
>>
>>54006793
look up at lua and the IUP GUI framwork
>>
>>54006818
You can teach an idiot assembly, but it won't make the code he writes any better. Most codemonkeys and ALL /g/ users are these idiots and it shows in these threads.
>>
What the fuck. I've just started with Python and literally the first thing I write turns out wrong.

# This program says hello and asks for my name.

print('Hello world!')
print('What is your name?') # ask for their name
myName = input()
print('It is good to meet you, ' + myName)
print('The length of your name is:')
print(len(myName))
print('What is your age?') # ask for their age
myAge = input()
print('You will be ' + str(int(myAge) + 1) + ' in a year.')

I literally copied and pasted this from automatetheboringstuff, but I keep getting a syntax error (unexpected indent).
>>
>>54006737
How do I learn what is well-written and performant though? I'm an Android developer by the way.
>>
>>54006807
>enforces no runtime
What do you mean by this?
>>
>>54006860
significant whitespace
>>
>>54006807
>Who cares?
What are you using Haskell for?
>>
>>54006860
Check your whitespaces
>>
>>54006891
I don't. I use Lisp.
>>
>>54006866
how long did it take you to memorize the functions and shit for android studio?

currently i reversed engineered an apk so i can build something similar to it and im reading through the website and learning as i go.
hopefully i can sell it by the end of the month.
>>
>>54006852
And yet, even carmack couldn't make a fast python program. Now fuck off with your ebin maymay.
>>
>>54006906
>carmack
>>>/v/
>>
>>54006902
:^))))))))))
>>
>>54006832
select element of array (you can put a bunch of functions in an array) and call it with arguments
>>
>>54006866
also is it possible to create apps from the smartphone?

what apps do you recommend to do so or websites? Id like to sit at a bar and code away and get something done.
>>
>>54006884
>>54006898
Thanks, it works now. I thought those the author put those spaces there on purpose kek.
>>
>>54006921
What function is being called? As far as I can tell, the array contains number type objects.
>>
>>54006902
What are you using that for?
>>
>>54006743
> 10kloc compiler, 15kloc additionally for runtime

forth gets away with a compiler, interpreter and runtime in just a few kB
>>
>>54006970
The name of that array looks like it would be a list of functions, check again?
>>
>>54006931
This is not me by the way.
>>
>>54006904
What do you mean memorise the functions? What functions? I just look up tutorials for everything I do and get paid my shit salary. I'd like to improve and become a good programmer instead of a shitty one and advance my career.
>>
>>54006217
>Umaru-chan
HELLO WHERE ARE THE BURGER
>>
>>54007011
im using the android studio website for reference of code.
>>
>>54006994
The variable is defined this way:
    /** @const */ memory_map_read8 = [];


And is used in this context:
void Memory::mmap_read8(size_t addr)
{
//dbg_assert(typeof addr == "number");
return memory_map_read8[addr >> MMAP_BLOCK_BITS](addr);
}


Note, I'm porting this to C++, so some of this is in C++.
>>
>>54007031
whoops, meant this guy:
void Memory::mmap_write8(size_t addr, int value)
{
//dbg_assert(typeof addr == "number");
memory_map_write8[addr >> MMAP_BLOCK_BITS](addr, value);
}
>>
>>54006217
I just noticed she has one of those ass shaped mouse pads
>>
Almost finished a working version of my MOO. One of these days I'll put up a demo and let you fags connect to it, if anyone's even into that kind of shit
>>
>>54006984
>>54006823
Forth is also a lot simpler. It doesn't have coroutines, first class functions, and garbage collection (I guess it doesn't need that). Lua is still only 200kB once stripped. Bash is 1MB and Python 3MB. While being similarly performant to Python.

The JIT is all of 60k LoC and is faster than pretty much anything but AoT compiled statically typed languages because of the language's simplicity.
>>
How do you become a good programmer (not "code monkey") if you didn't do higher math in school and didn't do a CS degree or anything like that? I know C and some C based languages like PHP and Java but it's self-taught. I don't understand how computers work.
>>
>>54007165
learn those things
>>
>>54007165
practice
>>
>>54007165
Program shit and instead of Googling around if you're stuck, step back and think it through.
>>
>>54007178
Learn what things?
>>
>>54007186
the things you said you didn't do in school
>>
>>54006217
fuck off nigger
>>
>>54007181
>>54007183
Problem is I feel like I am just getting into bad coding habits by writing bad code.

>>54007195
How long should it take? I have limited Algebra knowledge, never went as far as Calculus or anything like that. Wouldn't that take a year to learn and then years to learn things learned in a CS degree (goes way beyond my head)? I'm in my late twenties and I feel like I have limited time.
>>
>>54007226
calculus is useless for CS, it's basically just algebra practice

the thing about CS is that it's a very wide but shallow field for the most part, so you can kind of just study whatever tickles your fancy at the time

>I'm in my late twenties and I feel like I have limited time.
you don't
>>
>>54007183
>I refuse to accept that I need advice from people who know more than me
>>
>>54007263
He has unlimited time? I'm not so sure...
>>
>>54007263
Yeah but the problem is a lot of CS in fact almost all of it has prerequisites and they go back to Calculus. It's so fucking intimidating. I don't understand half the shit on these threads.
>>
>>54007273
well, everybody has limited time, but a decade or so doesn't make a lot of difference

>>54007287
nothing in this thread has anything to do with calculus
>>
>>54007287
Not once have I used calculus while programming. The most you'll need is linear algebra, and that's for graphics and ML.
>>
>>54007299
I was talking about CS modules. The complex shit I see in these DPT threads look like they are made by CS graduates.

Take for example the Introduction to Algorithms module in the MIT Computer Science course. It's prerequisite is Mathematics for Computer Science, and that has a prerequisite of Single Variable Calculus.
>>
>>54007165
That's where everyone starts. I was where you are a couple years ago, started teaching myself outside of class. Never got a CS degree. What exactly do you want to be doing?
>>
>>54007349
Its*

Sorry
>>
What is the programming language for getting things done?
>>
>>54007273
u wot
What's wrong with thinking for yourself?
Of course you should look up documentation on something, but relying on Stackoverflow to tell you how to program isn't good.
>>
>>54007356
I'd like to be a good and capable programmer who makes good money.
>>
>>54007380
ocaml
>>
>>54007349
>The complex shit I see in these DPT threads look like they are made by CS graduates.
almost nothing posted in here is advanced, you'll realize this shortly

>It's prerequisite is Mathematics for Computer Science, and that has a prerequisite of Single Variable Calculus.
i would suggest doing the maths for CS course but don't bother with calculus - you'll probably not run into any trouble
>>
>>54006322
nothing on shithub is particularly good
>>
>>54007397
>don't bother with calculus
murritard detected
>>
>>54007397
>almost nothing posted in here is advanced, you'll realize this shortly
Well look at shit like this: >>54006648
That goes over my head.
>i would suggest doing the maths for CS course but don't bother with calculus - you'll probably not run into any trouble
Okay, thanks man.

What other places do you guys recommend other than /g/ and DPT for chatting to others about programming in a pressure-free environment?
>>
>>54007385
What's wrong with looking up example implementations of algorithms?
>>
>>54007226
I learn the most from looking at how coworkers write something very similar to what I have in functionality. You can see what they did differently. Especially when you see excellent programmer's work, you get a taste of the mindset and philosophy behind it
>>
>>54007380
java/C++
>>
>>54007440
integral calculus is not useful except for certain domains like simulation

>>54007441
a lot of that looks like domain-specific jargon, i.e. not a CS issue
>>
>>54006677
Dumb Putin poster
>>
>>54007466
kill yourself, there is no excuse for not learning calculus except for severe mental retardation, and you don't know what he'll be programming
>>
>>54007483
what's up your ass today javaposter?
>>
>>54007393
The money comes immediately, the skill will be made up partly of your natural ability and partly of how bad you want to be great at it.
I see many people who think that their paycheck determines what their abilities are and they stop growing. And that's easy to get away with because for the most part, as long as your code isn't doing anything wrong, no one's looking at it. The motivation is entirely intrinsic
>>
What is the best JS framework on the market, and why is it Angular?
>>
calculus is easy af, murritards are just weak pussies that are afraid to apply themselves to learn something new

https://www.youtube.com/watch?v=rjLJIVoQxz4
>>
>>54007531
>/wdg/
>>
>>54007531
kill yourself and fuck off to >>>/g/wdg
>>
>>54007564
I don't think anyone thinks calculus is hard.
>>
>>54007602
then what's with the meme on /sci/ and /g/ that calculus is hard and should be avoided or trying to come up with fox and the grapes excuses for why it's not necessary to learn it

>>>54007397
>i would suggest doing the maths for CS course but don't bother with calculus - you'll probably not run into any trouble
>>
>>54007451
What if I have no coworkers like that?

>>54007602
I find Calculus very hard to understand.
>>
>>54007634
i'm recommending against calculus because it's almost completely unrelated and thus a waste of time

if it were necessary that would be a very different story
>>
>>54007634
Because /sci/ and /g/ are full of college freshmen who need someone to do their homework for them.

The truth is most people won't need to worry about calculus when programming. Why bother learning something when you won't use it?
>>
>>54007104
> It doesn't have coroutines, first class functions, and garbage collection (I guess it doesn't need that)

Forth has first class functions (though you'd probably call them words in forth terminology). Forth also has coroutines, it's just return stack shuffling after all. And GC can be added to forth, but it's usually not done.
>>
>>54007676
>>54007668
sure most code monkeys won't need it but if you're genuinely interested in programming you should have decent understanding of math, calculus is just one of those basic things that everyone should know, and you never know when you'll need it, if you don't know it then you might think you don't need it when really you should use it
>>
>>54007602
complex numbers tho, I don't think anyone understands those
>>
>>54007710
they're like 2d numbers, if you understand vectors you should be able to understand them
>>
>>54007708
>calculus is just one of those basic things that everyone should know
why?

mandatory calculus should be replaced by mandatory discrete maths IMO, the latter is much more applicable to everyday life
>>
>>54007708
>>54007731
and ESPECIALLY to CS
>>
>>54007731
discrete math shouldn't be called math. calculus and linear math OK, I use both at work and I am glad they teach it. Differential math is another story though.
>>54007749
If you remove 'not applicable to everyday life' courses from CS, you would be left with like 2 year worth of courses. just because you don't find them useful, it does not mean they are not useful
>>
>>54007784
>discrete math shouldn't be called math.
why? there's lots of algebra and it ties into many other fields of maths like geometry and combinatorics

you still haven't answered why you think everyone should learn calculus, either
>>
if I wanted to make games in the browser, would I make it in javascript or HTML5?
>>
>>54007813
>you still haven't answered why you think everyone should learn <babby tier math concept that fucked my mom>, either
>>
>>54007841
they're complementary technologies
>>
>>54007862
I hear about HTML5 games. If I were to make a game to be played in the browser, would I make it in HTML5 or Javascript?
>>
>>54007841
javascript for shitty text based games

HTML5 for anything else

or some other language/engine and "compile" to HTML5
>>
>>54007859
because formal logic will enable people to realize when an argument is incomplete, fallacious, etc.
this is a huge problem, because too many people believe everything they are told

>>54007871
they're complementary technologies (you use both)

>>54007879
retard
>>
>>54007871
you can't make a web game without javascript.
>>
>>54007727
but 2(pi)*i = 0, they're more than 2d
>>
>>54007871
You need both.
Html is easy to understand. If you are asking what to learn the answer is javascript.
>>
>>54007919
you what

2pi*i = 0 + 2pi*i

by multiplying by i you're rotating it 90 degrees in the 2d coordinate system
>>
>>54007958
e^(2*pi*i) = cos(2pi) + i * sin(2 pi)
e^(2*pi*i) = 1 + 0
2*pi*i = ln(1)
2*pi*i = 0
>>
>>54007958
I think he's confused with euler's identity.
>>
>>54007165
For algorihtms & data structures:
https://en.wikipedia.org/wiki/Introduction_to_Algorithms

For math:
https://en.wikipedia.org/wiki/Concrete_Mathematics

For C:
https://en.wikipedia.org/wiki/The_C_Programming_Language

For C++:
http://web.stanford.edu/class/cs106l/course-reader/
and then
https://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language

This is it. There are literally only 5 books that you need to read to be a good C/C++ programmer. Just read those 5 books and you will get hired by almost anyone, it is that easy. You can find all of them for free if you search good enough.
So, what's the trick? It takes a lot of time and commitment.
>>
>>54007890
>>54007903
>>54007950
ah, I need both to make the web game, thank you. I'll learn Javascript since HTML5 is very simple. Thank you.
>>
I'm sure you get this shit all the time, so sorry in advance.

I want to try and make a shitty calculator or something, just to play around with since I'm bored, don't really want to fully learn a programming language or anything like that, should I get Python for that or would there be another language that would fit for that type of purpose better?
>>
What programming jobs besides Embedded Software Engineer will be safe in 5-10 years?
>>
>>54007992
http://math.stackexchange.com/a/772025
>>
What language is the most homosex?
>>
>>54008068
javascript
>>
>>54008068
I guess Swift by default
>>
>>54008068
javascript
>>
>>54008063
Ok I can accept its many valued. But that still throws a hole in your "its just vectors, brah" theory. There's implicit periodicity to complex numbers.
>>
>>54008115
there's also implicit periodicity to vectors. rotate it 360 degrees and you're back to where you started.
>>
>>54008115
Ignore him, complex numbers are matricies, not vectors

1 =[[10][01]], i=[[01][-10]

Quaturnions are similar but 3x3 matricies
>>
I think... I think I've got code generation working in this stupid compiler. I'm going to need to put my compiler through a gauntlet of tests, however.
>>
>>54008153
I lol'd.
>>
What would be the best way to let a user guess a 4 digit number and have the program tell the user how many numbers they guessed correctly in python.

I could see if it contains each individual number, but that wouldn't work if the random number was had multiple of the same number like 2221, or 1031
>>
>>54008168
Its not a joke, the matrix equivalce explains complex multiplication while vector equivalce doesn't
>>
>>54008153
ok I like this answer. I'm not sure how it helps me understand complex numbers, but I really haven't done much studying.

also it looks like i is actually [[0,-1][1, 0]]
>>
>>54008153
>>54008210
https://en.wikipedia.org/wiki/Complex_number#Complex_plane
https://en.wikipedia.org/wiki/Complex_number#Matrix_representation_of_complex_numbers

fucking retard, and i was just giving an analogy to help him understand
>>
On a side note: is anyone else with me on rating the average wikipedia math page 2/10? I find them needlessly confusing, far too reliant on formulaic notation and lacking in necessary proofs (or at least clear links to said proofs).
>>
>it has 2 components therefore it is a vector
fuck off
>>
>>54008350
>https://en.wikipedia.org/wiki/Complex_number#Complex_plane
fuck off

and i never said it IS a vector, i just said if you understand vectors you should be able to understand complex numbers
>>
>reading more about complex numbers
>thinking back on all the courses I've taken and how little I know
I have a stats degree with a math minor, you think I would've had to have learned some of this shit. Why did my professors all fail me?

Wasted too much time doing rigorous exercises of problems that I no longer have any memories of.
>>
>>54008434
murrican edumacation is a meme
>>
>>54008434
It's okay senpai. I ended up taking a couple abstract algebra courses and I've used none of it and forgotten all of it.
>>
>>54008434
How the fuck does the education system where you live fail at providing you the basic notions of what a complex number is? I studied them in my second semester at college and I still think it was unnecessary, because high school had already taught me a lot about them.

What the fuck
>>
>>54008461
the older I get the more I feel test taking is a meme and the root of the problem. I know I sound like an SJW saying that, but it really does detract from actual learning. Find out how much people know through interview questions and inquiring of past projects/creations, not loldegrees
>>
>>54008541
It's a massive waste of time to give everyone a chance. College fixes that by eliminating 90% of potential applicants.
>>
>>54008447

The United States has more top universities than the rest of the world combined.
>>
Why do people still waste their time with C?
>>
>>54008541
This is fine if your a startup. But for big companies, it saves a lot of time filtering people out by degree.

Sure, you might be a great programmer and not have a degree. But if you really are good, then you probably could have gotten a degree pretty easy.
>>
>>54008635
top universities according to murrica
>>
>>54008642
college is a scam ran by kikes trying to make as much shekels off you as possible and leave you with a big bill to pay later.
>>
>>54008639
because people are idiotic spergs that are simply unable to learn and appreciate higher-level languages
>>
>>54008664

We're #1. God bless Samuel Colt & Anheuser Busch.

Fuck yoU!
>>
>>54008639
Hardware.
>>
>>54008677
not denying that. But for big companies, it saves some time.
>>
>>54006468
Very cool, Anon. Keep us posted.
>>
>>54008563
>>54008642
yeah... no... you guys are right. It just seems like there's a better way...

since we got some smart people on /dpt/ today, can someone tell me why we don't use balanced ternary computers?
https://en.wikipedia.org/wiki/Ternary_computer

I was doing some research on different base systems (mainly trying to see if base e had any value, but it doesn't really appear so as you end with crazy decimals for simple integers) and it really looks like base 3 is the way to go with computers. are we all just the children of IBM cuckery and blind anti-Russian sentiment?
>>
let's make a program that fucks your mom and cucks your dad
>>
>>54006677
>No mention of Lisp or Haskell anywhere
meme languages

if you are interested in languages instead of algorithms you are an autist plebbo.
>>
>>54008691
anheuser busch is two separate names ya dummy.
>>
>>54008714
easier to make transistors and memory that are just on/off with two states rather than three
>>
>>54006699
haskill makes you look smawt anon))))
you don't even need to write demanding applications like, say, 3d engines because even simple things are complex enough to write in haskell to signal your smartness))
>>
>>54008714
The better way would be if college was reformed. Instead of exams that last a few hours, exams should be complex assignments that resemble real-world tasks, and students should be given a week to complete them. They should be crafted so that copying is obvious and penalized appropriately and cover the entirety of the topic in a realistic setting.
>>
>>54006793
Python+PyQt
Python+Tk
>>
File: not_taking_the_bait.png (24 KB, 625x626) Image search: [Google]
not_taking_the_bait.png
24 KB, 625x626
>>54006807
>Performance is about the algorithms you write, not the language. Haskell enforces no runtime, so it can be faster than C.
kek
>>
/dpt/, I need to know more future-proof job titles besides Embedded Software Engineer
>>
>>54008798
game engine/tooling dev

big data memer
>>
>>54007380
Python or Node.JS
Other answers are meme-tier
>>
>>54008816
>big data memer
scratch that it's a complete meme and will not require all that many programmers
>>
>>54008731

I was talking about Adolphus & Eberhard's oddly named love child.
>>
File: file.png (46 KB, 688x386) Image search: [Google]
file.png
46 KB, 688x386
I'm trying to create a recursive descent parser. So far I have all the foundation set, I just need to properly implement a few functions to enforce the grammar. I thought everything was right, it looks it, but I guess my Aop, Expr, or Term function is doing something wrong. Sometimes the input stream gets cut off and things aren't recognized. I don't see how though.

Is there any site or source that explains this more in depth, with code examples? Everything I've seen is very generic, which is fine, but I'm stuck on implementation.

I've searched the web near and far, and have not found any examples that helped me understand this; pls halp.

Here's the Expr Function [:::](http://pastebin.com/fzjcugme)

This is the grammar : [Grammar](http://imgur.com/OrBnpEk)

Here's the main program with all functions. [Program](http://pastebin.com/qMB8h8vE)
>>
>>54008837
It requires researchers, not programmers.
>>
>>54008820
kindly fuck off to >>>/g/wdg fag
>>
File: collision01.webm (451 KB, 608x624) Image search: [Google]
collision01.webm
451 KB, 608x624
>>54007531
I have the best framework for building squishy physical objects in the browser (^:
>>
>>54008840
>using any language beside ocaml to write parsers
MEME
>>
>>54007841
Javascript is totally ok to make games in: http://www.playfuljs.com/a-first-person-engine-in-265-lines/
>>
>>54008858
Javascript is a programming language you nigger
>>
File: javascript_logo1.png (6 KB, 200x200) Image search: [Google]
javascript_logo1.png
6 KB, 200x200
>>54008040
Web dev and mobile app dev, seriously.

>>54008068
Javascript in a good way though :3
>>
>>54008866
I'd rather write it in Java than that.
>>
>>54008879
What parts of the game would be written in HTML5?
>>
>>54008864

What'd you use for drawing the objects?
>>
>>54008909
That is because you are bum
>>
>>54008115
Complex numbers are just 2d vectors with an algebraic srtructure (order) added to them. That's it.
>>
What do people mean when they describe something as "Naïve" in terms of programming? What makes something naïve?
>>
>>54008866
technically you're (probably) thinking of OCamlyacc
but I will say that OCaml's features are not well suited for some types of parsers. limitations on recursion (even mutual recursion) make it impossible to write some parsers using parser combinators without a lot of indirection and/or obfuscation
>>
>>54008917
I take offense to this. Java is where its at.
>>
>>54008934
It is where a bum is at yes.
>>
>>54008798
If you want to apply low level skills, go to gamedev. Even unity games require C++ and gpu asm coding. If you are ready to learn then just look at http://stackoverflow.com/research/developer-survey-2015 and see what's most profitable. webdev isn't going anywhere desu, that's wahy I'm doing it. I do some gamedev and embedded as a hobby though.
>>
>>54008924
stupid
>>
>>54008951
>Even unity games require C++ and gpu asm coding
wut. You can make unity games with only JavaScript ya bong.
>>
So I've got a server with two network interfaces/IP addresses and an application that runs on the second interface. Now I write a program that needs to request some data from the application but I can't use the external IP because I need to get around the iptables timeout/rate limit, however trying to connect to 127.0.0.1 results in a refused connection as if it couldn't figure out which interface to look for the application, anyone with networked programming knowledge ever faced such issue?
>>
>>54008913
The only output interface I use is HTML5 canvas in 2d mode. Everything is drawn with 2d lines and circles. My own code implements a quaternion camera (cam quaternion is converted to 3x3 matrix) and applies the transform to all objects in the scene. Then I simply draw them.


In fact physics part of this engine is much more interesting than graphics. See http://b.1339.cf/ohpfzzt.webm

I have implemented a simple bucket spatial hashing to accelerate collision checking, it sped up my simulation 50-100x.

The true goal of this project was to assemble a moving creature in the simulator, but it has been proven to be quite hard so far (due to stiffness issues) so I put it for later. I have some new ideas though, so the creature will be possible.
>>
>>54008888
it's used for webshit you massive fucking retard and it's no good for serious applications
>>
>>54008924
A straightforward, usually slow, solution of some problem.
>>
>>54008926
Haven't laughed this hard in a long time. Based tripfag!
>>
>>54008902
kill yourself FAG
>>
>>54008978
And nobody has used GPU ASM for the past decade and a half.
>>
>>54009008

Sounds pretty fancy, m8.
>>
Anyone know the easiest way I can get a large amount of images from 4chan? Like a script someone has written or a premade archive somewhere? I'm thinking of making a neural net to detect anime images (so you can block them and stuff).
>>
>>54008978
Read http://www.slideshare.net/AlexanderDolbilov/google-i-o-2014 to make games run fast they use Unity with C++ modules sometimes with code written in inline ASM. Unity is not as simple and limited as meme /g/ thinks.
>>
>>54009038
I'm sorry that I'm not willing to spend the extra time switching contexts to lex and yacc to write a tiny parser every time I need to read some different text format. good for you if you prefer lex/yacc to combinators, but a large part of the OCaml community seemingly disagrees (considering that there are a shit ton of parser combinator libraries and parser combinators are included in Batteries)
>>
>>54009114
I think you should kill yourself.
>>
>>54009116
>you can use C++ in Unity
>you have to use C++ in Unity
If you can't understand the difference between these sentences, there is no hope for you.
>>
>>54009121
>virtually every single parser in the world is written in ocaml
>that means ocaml is completely unsuited for writing parsers believe me I have a trip that means I'm right
>>
>>54009134
nah
>>
>>54009137
To his defense, you have to use C++ in unity because unity is absolute garbage.
>>
File: cosynega.png (89 KB, 832x552) Image search: [Google]
cosynega.png
89 KB, 832x552
>>54009058
This was/is one of preliminary experiments, but the final goal is to do http://pastebin.com/raw/YJu443mx

Of course the whole project may be too hard, but at least implementing evolution of creatures in the simulator is possible.

Also I was thinking about porting the sim to CUDA, but my GTX580 has fried itself (literally termi!), so I'll stick with C++ multithreaded implementation.

The prototype is written in JS only for speed-of-development reasons. That's how everybody does it: write a prototype in a slow language, then port it to C++ once you know what you want.
>>
>>54009160
you shouldn't use unity at all. but shitters use it "just fine" without C++
>>
>>54009144
>virtually every single parser in the world is written in ocaml
stop deluding yourself lol
>that means ocaml is completely unsuited for writing parsers believe me I have a trip that means I'm right
it's not unsuited for writing parsers, but the way recursion works makes it extremely difficult to write parsers by using combinators
>>
>>54009192
look, it's this troll again
>>
>>54009202
One more to the filter!
>>
>>54009230
he's bad (even for being a tripfag) but
>virtually every single parser in the world is written in ocaml
lolwut
>>
>>54009223
Don't respond, just pretend he doesn't exist. Maybe he'll go away.
>>
>>54009160
I know C/C++ asm and all other meme languages, and yet I find Unity GUI environment a pleasure to work with. It allows a dev to build scenes quickly.

There are good opensource engines - Urho3d, Godot, but they are not as convenient as unity. Convenience matters. Creating rich 3d games using a text editor only is a waste of valuable time.
>>
File: 1390443984160.png (299 KB, 600x541) Image search: [Google]
1390443984160.png
299 KB, 600x541
>>54009249
>C/C++ asm
>>
File: smile_with_a_carat_nose.gif (2 MB, 500x500) Image search: [Google]
smile_with_a_carat_nose.gif
2 MB, 500x500
>>54009223
Of course I am (^:
>>
>>54008639
muh performance
muh non-babby lang
>>
>>54009269
don't forget the gpu asm
>>
>>54009274
Gpu asm I don't know t b h f a m

I only know some x86 and some AVR asm
>>
Is Consolas the best font?
>>
>>54009247
Why don't respond ;_;
Thread replies: 255
Thread images: 20

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.