[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/
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: 29
File: shig pee.jpg (133 KB, 960x624) Image search: [Google]
shig pee.jpg
133 KB, 960x624
Daily Programming Thread

What are you working on, /g/?
>>
Reimplementing Wolfenstein 3D in PLT Scheme.
>>
File: playv2.png (5 KB, 550x147) Image search: [Google]
playv2.png
5 KB, 550x147
Still working on my music player. Probably going to remove the dark_as_my_soul theme.
>>
File: 1334503246505.jpg (209 KB, 1280x720) Image search: [Google]
1334503246505.jpg
209 KB, 1280x720
Working on a Markdown parser.
>>
>>51430708
D
>>
>>51430747
>he can't do that in under 30 minutes
Shitty programmer spotted.
>>
Is anyone here a member of anonymous?
How do I become an edgy sjw l33t haxor?
Haskell?
>>
>>51430777
>edgy sjw l33t haxor?

Yeah, so what's the deal with that, anyway? A bunch of people took up the mantle of 'anonymous' and they're a bunch of SJW weenies.
>>
>>51430777
>Is anyone here a member of anonymous?
no, they're idiots
>How do I become an edgy sjw l33t haxor?
by breaking into the gibson
>Haskell?
useless meme language
>>
>>51430777
Just learn Java, it's all you'll need
>>
File: iu-236.jpg (160 KB, 960x1300) Image search: [Google]
iu-236.jpg
160 KB, 960x1300
>>51430795
>>
>>51430788
But anon, they're fighting ISIS right now. They're heroes!
>>
>>51430812
DESIGNATED
>>
File: 1447962031604.jpg (115 KB, 960x798) Image search: [Google]
1447962031604.jpg
115 KB, 960x798
>>51430817
>they're fighting ISIS right now

Medium to high kek.
>>
Finally working on some tests for my super library. I really want to get to the point where my C# program is reliable enough to replace the SQL scripts running my business.
>>
>>51430921
Just like how France is fighting them. Do some air strikes, but also keep importing truckloads of them.
>>
File: 1412202647615.png (176 KB, 872x1000) Image search: [Google]
1412202647615.png
176 KB, 872x1000
>>51430757
I am only doing it lazily.
>>
>>51430921
Just you wait.
Anonymous will get a thousand of them banned from twitter!
>>
>>51430951
Yeah, they might even ddos them long enough to be more than a minor annoyance
>>
>>51430793
>Haskell
>useless
how else do you expect me to look like an epic hacker on the internet?
>>
>>51430948
burden on the project spotted
>>
>>51430945
>Do some air strikes, but also keep importing truckloads of them.

Yeah, I don't get it, either.

>>51430951

Aloha snackbar.
>>
>>51430945
Truckloads of who?
>>
>>51431059

Muslims, and terrorists, masquerading as refugees.
>>
>>51431059
terrorists
>>
>>51431075
This post implies that Muslims can't be refugees, which is obviously hogwash.

How do you know a lot of them are terrorists?
>>
>>51431075
>and
>masquerading
>>
>>51431085

Muslims can be refugees. I'm saying these people aren't. They're passing through tons of receptive countries before getting to their destinations. The places they go are places that will give them free shit at the expense of taxpayers.

This is why mass immigration and the welfare state cannot coexist.
>>
>>51431113
>#refugeelivesmatter
>>>/lgbt/
>>
>>51431113
So refugees can't receive benefits from the countries they arrive in? If they're not refugees what are they?
>>
>>51431129
>So refugees can't receive benefits from the countries they arrive in?

Nobody should be receiving benefits except those that they've invested in.

Welfare is for scum.

>If they're not refugees what are they?

Economic opportunists. Pretty keen for a bunch of goatfuckers, I must say.
>>
>>51431129
>countries they arrive in
If they're in such a dire need of help, why do they not stay in Turkey or Jordan, and walk all the way to Germany and France? How are they able to?
>>
I think I understand what a delegate is, but I'm not sure I understand the point. What is the purpose of being able to essentially alias a normal method? Why not just call that method to begin with?
>>
>>51431143
>>51431154
Classic case of hating the player and not the game here. Of course if they could receive better benefits in another country they'd go for it.
>>
>>51431166
Writing a generic utilities that involve event callbacks
>>
>>51431171
>Of course if they could receive better benefits in another country they'd go for it.

That's why I said they're economic opportunists.

>hating the player and not the game here

See:
>Nobody should be receiving benefits
>Welfare is for scum.

Do you not know how to read, or is this bait?
>>
>>51431171
>get infected with bacteria
>take antibiotics to kill the bacteria
>"y u doin dis mang hayt da playa naht da gayme"
gg
>>
>>51431189
You're calling them scum for being opportunistic and receiving better welfare. That's hating the player.
>>
Web-based MMO backend, which one would you choose:
Phoenix
NodeJS

Other? What, why?
>>
>>51431214
>You're calling them scum

Because they are.

>That's hating the player.

It's both.
>>
>>51431225
>Because they are.

Why?
>>
>>51431220
Java :^)
>>
>>51431227
something something subhuman scum something something not my problem

are you new here?
>>
>>51431227

Why are you trying to play this game? I already told you.
>>
>>51431249
Because the only connection I see is that you assume people who receive welfare are scum. Not a very intelligent statement to make.
>>
>>51431266
>people who receive welfare are scum.

That's correct.
>>
>>51431266
They are
>>
>>51431271
>>51431277
>People who didn't get it as easy as me are scum

I'm out.
>>
>>51431285
>I'm out.
k
>>
File: 1446955859461.jpg (44 KB, 750x754) Image search: [Google]
1446955859461.jpg
44 KB, 750x754
>>51431285
>didn't get it as easy as me

Life isn't easy.
>>
File: 2252886-Music-app-PlatziSketch.png (354 KB, 800x600) Image search: [Google]
2252886-Music-app-PlatziSketch.png
354 KB, 800x600
>>51430728
plz make it look nice
>>
>>51431324

It was intended not to look good, or include anything unnecessary.
>>
>>51431324
Damn this is a beaut

What app?
>>
>>51431340
but then what differentiates it from any other music program, e.g. foobar, which is pretty bare
>>
>>51430708
The after photo needs to be changed to Stephen Wolfram or Ray Kurzweil when each was overweight.

But for the purposes of the topic: Geocoding and elevation interpolation with Python. Once you have shapefiles but 20 years ago those weren't a thing.
>>
>>51431346
unfortunately...it's a concept design
https://dribbble.com/shots/2252886-Music-app-PlatziSketch
I've had it in my 'programs to create' bookmark folder for two months now...hopefully I'll make it...someday...
>>
Anyone know why the print statement would sometimes not execute in a DOS window with this? I'm using ctrl+c

while ((c = getchar()) != EOF){
}
printf("%d", nc);
>>
File: image.jpg (97 KB, 640x1136) Image search: [Google]
image.jpg
97 KB, 640x1136
Rehaskelling the SICP kernel in D
>>
>>51431220
>Phoenix
>"Elixir"
What the fuck is this?

Whatever it is I'm assuming it'll be faster than nodeJS.
>>
>>51431362
Do the concepts on this site belong to the owners?
>>
>>51431415
"Copyright © 2009–2015 Dribbble LLC. All screenshots © their respective owners. Shipped from Salem, Mass. USA."
>>
>>51431143
le edgy anarcho-capitalist-libertarian-statist strikes again!
>>
>>51431423
So if someone wanted to make an app from a concept we can't, or need to ask permission?
>>
>>51431451
If you took the guy's design and sold it, I'd imagine he'd be pissed.
If you took the guy's design, created an app which was 100% free, credited him for the design, etc, I'd say a normal person would be ok with that.

I A N A L
>>
>>51431414
It's based on Erlang so yeah it'd be efficient but it's rather niche so I'm worried about community support. The backend will use WS and even though JS could be considered slow it's been proven it can handle over a million of idle concurrent connections with message broadcasting while utilizing just 16GB of RAM to handle those. In constract, Phoenix needed about 60-70GB of RAM to handle 2.6 millions for the same task. I don't know, I'd ideally go with C++, Python or Lua but those won't cut it here so I guess my current choices are either NodeJS or Phoenis (which both I'm researching in terms of vertical and horizontal scalability, balancing and stuff right now). I'm not sure if there are other languages or frameworks that would suit the task. And since the backend, in theory, shouldn't be CPU-heavy, NodeJS could be a good choice (as much as I hate those hipster spawns from San Francisco).
>>
>>51431414
no, it isn't, it's just a random meme lang some ruby faggot is shilling for now. it's not as slow as ruby, but not as performant as node.js
>>
File: meme.png (132 KB, 1364x586) Image search: [Google]
meme.png
132 KB, 1364x586
>>51431511
well memed
>>
>>51431372
>ctrl+c
I don't know DOS/Windows shit, but I'm pretty sure that just kills the process.
It's ctrl-Z or some shit if you want to signal EOF.
>>
>>51431220
>Phoenix
its not enough to learn the framework, first you need to learn functional programming in Elixir, then you need to learn to use the OTP, then you can learn the framework

Elixir is the future, its going to take a while before there are enough programmers who can use it
>>
>>51431548
>15 companies using erlang
>out of tens of thousands of companies using other languages
what's your point
>>
>>51431573
do you really expect wikipedia to list thousands of companies? it's just notable examples, get some common sense, kid
>>
>>51431573
>no one uses it!
>here's these major corporations using it
>not enough people are using it!
lel
>>
>>51431548
for embedded systems that need to be up and running all the time, not for web stuff.
>>
>>51431573
You're done, kid.
>>
>>51431598
>>no one uses it!
who ever said this?
btw, this conversation should go to >>>/g/wdg
>>
>>51431604
>nothing personnel
>>
>>51431573
Erlang handles real message passing concurrency as opposed to something like Apache which is just using OS threads to run an isolated process

good luck with your loom smashing efforts
>>
>>51431548

erlang good
elixir bad

ty for advise
>>
>>51431621
/wdg/ is for front-end web development for the most part. erlang and elixir are backend languages, and aren't exclusive to web development, so general discussion of them should remain here. if somebody was using them to develop a specific web service, that would fit better with /wdg/
>>
>>51431566
I do realize that, I've been extensively researching on the topic recently. I'm just afraid that the community is not big enough for it to be pleasant to work with (as opposed to NodeJS which is massive albeit retarded).

>>51431603
The web is just a frontend in this case. The backend needs to handle thousands of concurrent connections. The only "web" related stuff to the backend would be utilizing web sockets (channels in case of Phoenix).

>>51431638
Elixir runs on top of Erlang while maitaining quasi-Python syntax.

>>51431649
Thank you.
>>
>>51431676
>>51431649
>/wdg/ is for front-end web development for the most part.
>/wdg/
>web development general
>front-end web development
k

also, gotta love how dpt shits on GC, but shills for Erlang...
you can keep bullshitting and wasting someone elses time, faggots.
>>
>>51431548
that list is not reliable: facebook is mentioned but they dropped erlang for c++ years ago.
>>
>>51431548
>2 big companies
>3 mobile companies
>literally whos
>>
File: 1447516508400-1.jpg (74 KB, 960x624) Image search: [Google]
1447516508400-1.jpg
74 KB, 960x624
>>51431357
The original has Wolfram.
>>
File: they_live_jew.gif (997 KB, 500x270) Image search: [Google]
they_live_jew.gif
997 KB, 500x270
I know VB from uni and I just moved to python on codeacedemy. Thoughts?
>>
>>51431774
Your uni was garbage and you moved onto another shit language.
>>
>>51431774
>I know VB from uni
Latin America, right?
>>
>>51431774
>VB from uni
name this place, anon.
>>
>>51431789
>>51431785
They teach it in the intro course and then move from there. It's a decent uni for CS. Everyone in the state comes here so it's the best I got. Sorry to dissapoint.
>>
>>51431774
>codeacedemy
read a book instead. there are a shitload of books about python. http:/python.org has a nice book.
>>
>>51431697
no one cares about what programming language you use (unless if the language has a dependency like holy fuck get your bloatware language out of here no one wants to download python or java)

the only thing that matters is if you can make a not shit game, which is not possible because you have to be autistic and would not be on 4chan.
>>
>>51431774
welp
>>
Working on a GNU screen drop-in replacement in Rust, because I got fed up with writing personal patches for it.

Wrapping curses right now.
>>
>>51431812
>no one cares about what programming language you use
too bad this isn't true
>>
>>51431815
>>51431801
>>51431796
>>51431789
>>51431785
Also to note I major in IS specializing in security and I hear python is good to know in the field.
>>
>>51431353

I made it. It also fixes a problem with Foobar (that is, not showing files with too-similar tags.

Now everything is managed by filename.

Basically, I tailored it to my usage. Jest werks, etc.
>>
>>51432058
>Now everything is managed by filename.
why are you throwing id3 out the door?
>>
import std.stdio;

void main()
{
writeln("Good night /dpt/!");
}
>>
File: I4izK2F.jpg (9 KB, 300x300) Image search: [Google]
I4izK2F.jpg
9 KB, 300x300
>>51430728
>>51432058
>Blake Shelton
>>
>>51431819
Why don't you use TMUX? Is it missing the features you want from GNU Screen as well?
>>
>>51430817

Waging cyber warfare against ISIS might not be the wisest idea. One might end up fucking up a military honeypot created to lure them into traps.

>>51430951

ISIS has done some stupid things, like coordinating attacks through twitter. We want to keep them doing stupid shit.
>>
I want to spend time learning a useful language. I have a decent knowledge of C++ from a few years of it in high school. Now my university course is in Python. I want to learn something useful on my own time what should I do?
>>
>>51432292
C#
inb4 gtp says C#
>>
>>51432292
Depends what you're interested in. What kind of things do you want to make?
>>
>>51432252
>We
>>
>>51432292
why don't you learn something that isn't essentially a curly brace language

try a lisp forth or ocaml or something
>>
>>51432433

If you don't want ISIS flayed alive, you're for their continued existence. Which one are you, Anon?
>>
>>51431801
codeacademy is nice because it puts you to work while you learn, it's decent for an introduction and doesn't take very long to do
>>
>>51430708
Learn to fucking OP

previous thread >>51425196
>>
>>51432292
To be honest you may be best off learning more C++, specifically the changes and capabilities of C++11/14
>>
>>51432446
+1 nice choices :3
>>
>>51432073

id3 a shit.

>>51432095

You caught me, m90.
>>
>>51432465
Don't hate the flayer, hate the flame.
>>
I'm going to learn Perl, what resource do you guys recommend?
>>
>>51432584
don't
>>
>>51431427

Btw, there's nothing edgy about suggesting that welfare is for scumbags. Most of the time, it is.
>>
>>51432584
the one from oreilly with the camel
>>
>>51432584
perl is dead m8, python killed the fuck out of it, sorry to say
>>
>>51432584
probably just buy/torrent an O'Reilly book (Larry Wall wrote one of them, so I'd suggest trying that).
>>
>>51432292
Why not do each assignment in both python and C++? Good way to understand the differences between the languages, and I think those are both pretty useful languages to know.
>>
>>51432587
>>51432597
>>51432600
>>51432602
So Python is a fine replacement as a scripting language?
>>
>>51432607
No, but fags still use it anyway.
>>
>>51432607
https://programmers.stackexchange.com/questions/115851/is-perl-still-a-useful-viable-language
>>
>>51432607
Except for the whole whitespace thing, yes
>>
>>51432622
What don't you like about it compared to Perl?
>>
>>51432592
this is such an absurd view I have a hard time even understanding where it could come from

I mean I can understand why one wouldn't want an entire welfare state like the western countries have but no welfare at all is a concept literally unheard of in all of recorded human history.

>>51432607
It's not a fine replacement, it has some marginally better features along with thirteen thousand other questionable ones, but they occupy the same space as a "patchwork glueball mess" language. It's just that python got popular and perl languished, really. Accident of history. But perl 6 is out/coming soon?
>>
>>51432637
>no welfare at all is a concept literally unheard of in all of recorded human history.

I mean welfare in the welfare-state sense. Forcing someone's hand is no good. If you personally want to donate to causes for the poor, or want to volunteer in food kitchens, etc. I don't have a problem with that.
>>
>>51432465
I don't give a shit if some muslim, christian, murrican, yuropean, ... are bombed to death. thatt's your problem, not mine.

I know you all are a bunch of hypocrites, so...

I only have doubts about ISIS, though. why don't they attack israel, politicians, security forces and the people involved in the security industry as a whole? sounds like they are yet another useful fools of NATO.
>>
>>51432607
Advantages of Python:
>more modern libraries & docs
>can be used more easily for large projects
>very regular syntax, etc.
>easy to read and write
Advantages of Perl:
>very compact
>simple to write, takes little work to get a script to do string processing etc.
>more portable (less inconsistency between versions, but Perl6 is about to drop and it's an entirely separate language)
>probably more scripts out in the wild for any given task

Perl is 100% a scripting language, but Python kind of tries to bridge the gap to a srs bzns language a bit more. Perl lets you get away with a lot of compact/terse (but unreadable) code whereas Python requires you to write everything out a bit more in exchange for more regularity, safety, etc.
>>
>>51432662

Not wanting to compromise between either of theses is why I use Ruby for my scripting needs... that and the fact that I can't be fucked to learn any other scripting languages as well as I know Ruby.
>>
File: 1379272606191.jpg (18 KB, 512x384) Image search: [Google]
1379272606191.jpg
18 KB, 512x384
>There are people who don't use Lua for their scripting needs
>>
>>51432650
This is likely an impossible conversation in this place. But.

I am not a fan of government welfare either but I don't think there are viable alternatives. I think of it like catastrophe insurance that you should buy, and if you don't we'll buy it for you.

Of course, today that somehow means "niggers that don't want to work get a house and food and spending money for no reason." Which is terrible and I wish the race war would get started already.
>>
>>51432761
>using Lua for anything other than video games
baka desu senpai
>>
File: sicp.jpg (51 KB, 400x579) Image search: [Google]
sicp.jpg
51 KB, 400x579
>>51432727
Is it really a meme book /g/?
>>
>>51432782
It's a meme like Spivak's Calculus is a meme.
>>
>>51432769
Lua is such a comfy language though. There is no reason that you would have to restrict it to just video games.
>>
>>51432661
the reason why "forced" welfare is a thing is because of some inherent flaws in capitalism (ex: its a piece of cake to make shit tons of money when you already have a lot of it)
what do you think would happen if there was no wealth redistribution at all?
>>
File: tumblr_nu8wmtE3vc1u9etd6o1_500.jpg (73 KB, 500x500) Image search: [Google]
tumblr_nu8wmtE3vc1u9etd6o1_500.jpg
73 KB, 500x500
>>51431324
He is so hot
>>
>>51432765
>I don't think there are viable alternatives.

There aren't. You can either choose to violate people's rights and provide welfare, or you can opt not to.

To be honest, family, if I were in dire straits, and I had to go on welfare, I would probably just shoot myself instead. I know it sounds crazy, but at least I'm true to my principles.
>>
>>51432782
i think it's a pretty good introduction to high-level programming in general. it's a bit overrated but it's by no means a bad book and it could probably benefit anyone who sat down and took the time to read the whole thing
>>
File: 1427300453779.jpg (126 KB, 468x769) Image search: [Google]
1427300453779.jpg
126 KB, 468x769
trying to work through SICP
only on exercise 1.10
sometimes I feel too retarded and stop but I'm gonna finish it eventually m8s
>>
>>51432782
Yes, it's a big meme.
If you insist on reading a terse old book on programming, read TAOCP instead.
>>
>>51432812
screencapped and filtered
>>
>>51432849
>screencapped

Why? It's not like I wouldn't say it again.
>>
>>51432800
I've written a semi-big 1-2kloc cli program in lua and desu it's a shitty "scripting language"
there's not much in the way of library support, the package manager is super rough, and for actual scripts that you expect people to use I honestly think the features of nice, self-contained compiled languages like Go or Ocaml fit much better
>>51432812
If you're an American you're already the recipient of welfare through all sorts of subsidies, tax breaks etc
>>
>>51432812
>I know it sounds crazy, but at least I'm true to my principles.
Interesting that you think most people are so unprincipled, rather than just having different principles.

>You can either choose to violate people's rights and provide welfare, or you can opt not to.
There is an interesting note from the history of statistics. Once upon a time a man started recording all the causes of death in (I believe it was) London. After aggregating some data, he found that almost no one died of starvation. This surprised him, given the amount of beggars around. He concluded that people must be feeding the beggars, and surmised that London would be better off if the beggers were simply given food by the state, because people were obviously feeding them anyway, and then we'd have the additional benefit that there wouldn't be so many beggars on the street. (They tried it and it worked, incidentally.)

I don't think it is a choice between freedoms and violation. Anti-welfare people always are quick to mention charity as a viable alternative. But there are other social costs to charity, such as hordes of people begging in the streets, with the associated rise in crime, disease, and general uncleanliness it would bring.
>>
Swift 2.0 masterrace
>>
>>51432849
>SOMEONE ON THE INTERNET DISAGREES WITH ME
>TIME TO FILTER THEM AND CLOSE MYSELF IN A FUCKING ECHO CHAMBER
>>>/tumblr/
your safe space bull shit is welcome there
>>
>>51432847
that old fuck is going to die way before he finishes writing the second half
>>
>>51432812

>if I were in dire straits, and I had to go on welfare, I would probably just shoot myself instead
You should be glad then, GTP. that you are not disabled. My mother has a blood disease called HTLV-1. It impairs her ability to move, so she has to walk with a cane, and it causes her great pain from time to time. The disease has also caused her to become completely paralyzed for a few hours at least twice, to my knowledge. Because of this disease, she is unfit for nearly all labor, and she lives on disability, section 8 housing, and food stamps.

Although I am generally of the opinion that government spending should be decreased on the whole, and that the federal budget should be balanced, I have found myself a bit sympathetic to those who cannot work, though not for lack of desire to do so.
>>
File: 1447962163291.png (324 KB, 840x563) Image search: [Google]
1447962163291.png
324 KB, 840x563
>>51432898
>I don't think it is a choice between freedoms and violation.

Obviously it is. If you have to steal from me to pay for things, then it's still theft.

Taxation is theft.

>>51432867
>subsidies
>tax breaks

Certainly not for me. I think corporate welfare should be ended, too.
>>
>>51432974
>Taxation is theft.
why aren't you innawoods yet?
>>
File: 2457.jpg (66 KB, 250x350) Image search: [Google]
2457.jpg
66 KB, 250x350
>>51432974
>>51432958
>>51432898
>>51432812
>>51432806
Programming!
>>
>>51432958

I'm just being sincere. If I were severely injured, or I ended up disabled in some way, I'd probably kill myself, too.

I think there's a big stigma attached to killing yourself, and honestly, it's not really that bad (as long as you aren't leaving behind some people who seriously depend on you, that is).

And again, I'm not saying this should apply to your mother's situation or anything, it's just personally how I would do it.
>>
>>51432867

A tax break is not a form of welfare. It is merely the state stealing less money from you.

With regards to taxes, we must remember that a necessary evil is still evil.
>>
>>51432974
yes but by participating in society you are still the recipient of it, and supposedly violating my right to some green pieces of paper.
Why haven't you shot yourself already?
>>
>>51432974
>Obviously it is. If you have to steal from me to pay for things, then it's still theft.
I understand this sentiment, having been a Randista in my formidable years. I just no longer agree with it. The alternative isn't a lack of theft, it's just the beggars that are stealing from you instead of the government. Both ways the poor get fed. One way the streets are relatively safer. :shrug:
>>
Can we ban all the tripfags, please?
>>
>>51432997
>A tax break is not a form of welfare. It is merely the state stealing less money from you.

Amen, I forgot to mention that part.

>>51432998
>by participating in society

I'm doing what I can to reverse the situation (of which, you should know, I am not a beneficiary). Trust me, I'm the last person interested in taking your fucking money. I want you to keep your money.

Why do people always harbor the belief that my position is in some way nefarious, or that I'm not trying to do what I possibly can to eliminate it.

Unfortunately, most people don't think like I do. They think like you do. They're going to vote for Shitbird Sanders, or Clinton, and raise taxes and provide more subsidies to big businesses.
>>
>>51433020
>it's just the beggars that are stealing from you instead of the government.

They might try to, but they won't succeed. 'Poor eat the rich' is a communist fantasy.
>>
>>51432994

Well I can understand your logic, GTP. Personally, I don't like the feeling of being dependent on state money, at least not without providing a service in return. I'm honestly hoping that the amount of money I end up paying in taxes over the course of my life will be able to meet or exceed the amount that has been used to feed and shelter my mother, my sister, and I. I'm also hoping that I'll be able to save enough money in the future so that when I have children (and I'm hoping to have three), I will be able to make sure that all of them will be able to have either a college education, or the ability to start their own business, all without the state having to pay a dime.

>>51432993

What are you working on, Anon?
>>
>>51432974
>Taxation is theft.
It's not.
>>
>>51432994
I think it's important to consider that people with disabilities or just people who are impoverished are still just as much people as we are -- "as long as you aren't leaving behind some people who seriously depend on you" kind of captures that but it doesn't take into account just how many of those poor people are in that situation. Maybe they were born into a poor family or had their own kids or have somebody else they love or just some goal that they want to complete. In the same way, the CEO of some big ass company can look down on you and say 'wow I'd probably kill myself if I were in that position and didn't have all the money in the world'. In general, I'd say that most people who haven't killed themselves probably wouldn't regardless of their socioeconomic situation (which is why a whole bunch of millionaires kill themselves all the time). You're probably right when you're saying "it's really not that bad" but from the perspective of an individual it's hard to look at suicide as a simple option.
>>
>>51433034
>not voting for based Sanders to finish destroying this fucking country
shiggity diggity doo

What programming language has good libraries for working with encryption? I'm interested in the subject and would like to dick around with it.
>>
>>51433054

It is

inb4 soshul kontract

>>51433048
>I'm honestly hoping that the amount of money I end up paying in taxes over the course of my life will be able to meet or exceed the amount that has been used to feed and shelter my mother, my sister, and I.

See, that's a good attitude to have. If you don't have a way to fix the system directly, you may as well try to offset your costs on it. That's noble.

>>51432993
>>51433022

Didn't mean to start a hullabaloo, we were just having a nice chat is all.
>>
>>51433034
>I'm doing what I can to reverse the situation
Everybody on food stamps that I've met say the exact same thing. What makes your situation different?
>>51432997
on a ledger they're both black.
>>
>>51433075
it's amazing that someone as stupid as you can exist in one body and not as a mass of gelatinous puss or something.
>>
any MEAN project with source code to see how things are done in the real world?
>>
>>51433075
>It is
Nope.
>inb4 soshul kontract
It's just rent.
>>
>>51433090
>MEAN
nice meme
>>
>>51433047
>'Poor eat the rich' is a communist fantasy.
What? Poor areas are generally avoided by people with money because of the crime rate. This isn't even open for debate, it's reflected in everything about poor areas, from the bars on liquor store windows to the property prices. Don't you live in NJ? Surely you're aware of which towns are shit. And this is *with* welfare. Remove welfare and watch that fucking explode. Or hell just go to Brazil and hang around the favelas.

You're living a meme bro.
>>
>>51433066
>>not voting for based Sanders to finish destroying this fucking country
>shiggity diggity doo

That might be the only thing I'm looking forward to. If Sanders gets elected, I'd hope he goes for a big gun grab. Semi autos, or whatever he defines as "guns used only to kill people" as he described in an interview.

That'd be peachy.

>>51433064
>l it's hard to look at suicide as a simple option.

Not for me, at least. Does that make me a sociopath or something? I'm really not fazed by suicide. I've had people that I was close to commit suicide. I'm sad, at first, but then I'm also happy knowing they got the relief they were looking for.

Life is hard. Some people persevere, others don't. There's nothing wrong with that if you at least had a go and tried for something, right?
>>
>>51433104
Sanders holds moderate views on gun control, Hillary on the other hand, does not.
>>
>>51430931
why not just rewrite the queries in an orm like ef or n NHibernate?
>>
>>51433104
I mean that it's difficult to bring yourself to the point of actually committing suicide. Would you be ready to let go of everything and kill yourself if you lost all your money or got injured tomorrow morning?
>>
>>51433078
>What makes your situation different?

I'm not actively benefiting from any social programs, and I'm clearly not a beneficiary of corporate welfare because we all know it only serves to line the pockets of CEOs and such.

It's really not for me alone, but for everyone. I don't think anyone should be paying taxes. It's not right.

>>51433088

Thank you for responding.

>>51433094
>It's just rent.

This is an interesting argument, but I'm not going tackle it because there's not enough space, and I'm also not as eloquent as Mises, who has also touched upon it.

>>51433100
>Surely you're aware of which towns are shit.

Yeah, but it's mostly down to concentration of blacks not poverty. There are some very poor white towns here which don't have a substantially higher crime rate than the general rate. Then, there are black towns richer than those with an abysmal crime rate.

>You're living a meme bro.

Nah, not entirely.
>>
File: KANSHA.jpg (393 KB, 1000x1311) Image search: [Google]
KANSHA.jpg
393 KB, 1000x1311
wow what a great thread
i've never seen so much shit
>>
>>51433136
>Would you be ready to let go of everything and kill yourself if you lost all your money or got injured tomorrow morning?

Very easily.

>>51433114
>Sanders holds moderate views on gun control

Do not fall for this liberal lie. He does not. His view on 'guns only used to kill people' (aka, 'the 2A is for hunting') is extreme.
>>
>>51433114
I like Sanders like I liked Ron Paul. The stuff I thought he could accomplish I didn't mind, and the stuff I disagreed with had no chance in hell.

Hillary, on the other hand, is retarded scary. If she wins the presidency America is literally finished, not even a joke anymore. She is a demon. There is no better proof of the supernatural than her career in politics.
>>
>>51433152
What legislation has he said he's in favor in that reflects that view?
>>
>>51433156
>supernatural
It's money, just money.
>>
>>51433163

He voted for the AWB, one of the worst pieces of gun legislation in the history of the United States.

He's got the voting record to prove he's a serious scumbag already.

We need to reverse shitty laws like the GCA and NFA, but he'd work to pile more shit on top of them.
>>
>>51433156

From what I have heard, the NSA wants her ass for those emails.
>>
>>51433150
KANSHA!
>>
>>51433184
I don't know man, listening to NPR it really sounds like the fix is in.
>>
Alrighty then, this has been enough Sidetrack By GTPâ„¢

Let's get back to programming.
>>
How do I learn to determine the time complexity of my code?
>>
>>51433209
by thinking about it
benchmarking is fine too
>>
I have a sudden desire to design a RISC architecture and build an emulator for it.
>>
>>51433261
If you're interested in this kind of thing you should check out the propeller chip from parallax. No stack. 8 cores. Unfortunately they wasted space with VGA bullshit but otherwise it's a cool as fuck computer.
>>
>>51433286

I have found myself turning into a massive architecture nerd lately. I will check this out.
>>
>switch computers
>ruby not filtered here

feels bad
>>
>>51433206
>Sidetrack By GTPâ„¢
You certainly were the better of you're companions fwiw.
:D
>>
>>51433261
>I have a sudden desire to design a RISC architecture and build an emulator for it.
https://www.youtube.com/watch?v=ZXsQAXx_ao0
>>
Can I have a job, /g/?
>>
File: The-original-computer.jpg (17 KB, 346x272) Image search: [Google]
The-original-computer.jpg
17 KB, 346x272
>>51433411
I'm pretty sure hiroshima nagasaki only pays in hotpockets anon.
>>
Hey /g/ are you ready for some tricky C questions that can only be answered if you know the standard by heart?
>>
while ((*(++tmp) != '"' ||  (*tmp == '"' && tmp[-1] != '\\')) && *tmp != '\0');

This should advance tmp to the next non-escaped '"' right?
>>
>>51433627
No.
>>
>>51433608
Alright, I'd like to hear it.
I'm >>51433627
and IDK if I'll be any good at it
>>
>>51433640
Well what do I need to change?
I'm too sleepy and I just need to get this one bit done then I'm right to get another couple hours work done that I don't want to do in the morning.
>>
>>51433653
>++tmp
>tmp[-1]
God, this whole line is a trainwreck
>>
>>51433773
It's efficient
>>
>>51433773
while (*tmp != '\0')
{
tmp++;
if (*tmp == '"' && *tmp[-1] != '\\')
break;
}

It's six lines vs. one
>>
>>51433822
Damn, that while wasn't supposed to jump back

I'm not one of 'those' guys I promise pls no bully
>>
>>51433627
Shouldn't it be
*tmp == '"' && tmp[-1] == '\\'

Because it should only enter the loop if it finds an escaped ". Now it enters if it finds a non-escaped one.
>>
>>51433829
Not really, there's a semi-colon at the end of that loop, that whole thing is the loop.
I have a string and somewhere down that string is a quotation mark with a few escaped quotation marks along the way, my tired mind in its infinite wisdom decided it could do all of this in the one line with the magic of C!
>>
>>51433870
*my tired mind decided it could advance tmp to that quotation mark

I should probs sleep /g/
>>
>>51433870
Yes, the loop is empty, that doesn't mean the program does not enter it. Now it enters when current char is " and previous IS NOT \, which is not the right behaviour according to your original post.
>>
>>51433150
KANSHA!
>>
>>51433930
It doesn't care what the current char is, it cares what it isn't.
It will increment tmp until it hits a a non-escaped quotation mark
>>
>>51433608
You're worse than a mathematician talking about set theory.

Go fuck with >>>/sci/ or get >>>/out/.
>>
>>51434002
Spotted the "homescreen thread" retard.
>>
>>51433974
Yeah but yours will stop if the current char is " and previous is \, which means it stopped on an escaped " (written as "\\\"" in C). Try it if you want, I just did. I'll stop replying now as it seems you are not really answering my arguments at all.
>>
>>51433974
>(*tmp == '"' && tmp[-1] != '\\')
Did you test the fucking code? It keeps going if the quote is NOT escaped.
>>
reading through some game source code
i found a structure named viewAxis that contains 3 vector3D's, one for each axis
anyone know what values said vector contains?
is it a way to store rotations without using matrices?
>>
>>51433608
No. Why should I care if I'm not building the most obscure of embedded systems?

I'm much rather stay IRL-oriented where teh bank remains.
>>
>>51433799
so are train wrecks. ppl still die though.
>>
Should I use apache or start in .net and wait for it to get ported to Linux?
>>
>>51434563
apache
>>
File: 1353220908563.gif (761 KB, 300x191) Image search: [Google]
1353220908563.gif
761 KB, 300x191
>method at my company that retrieves a hierarchy of data from the database and formats it
>method expects a specific variable name to store the data
>you can't use 2 popups with the same hierarchy because the method only stores it in one place with a specific name
>ask my boss if i can change it
>he tells me to copy paste the method, rename it, and add a new static name to be called so i can use 2 popups, instead of just making the original dynamic
>>
File: mylife.png (10 KB, 1544x119) Image search: [Google]
mylife.png
10 KB, 1544x119
a higher or lower card game
>>
>>51434563
Java EE
>>
how do i represent the Yaw, Pitch and Roll of a 3D rotation as three Vector3's?
>>
>>51434157
I'd guess it's a typical camera representation where the three vectors represent 'up', 'forward' and 'right' (or 'left')
>>
I need to learn 8051 and 8086 assembly for this semester. Any good online source/book for 8bit and 16bit micro processor / controller ASM , /g/ ?
>>
I need to learn 8051 and 8086 assembly for this semester. Any good online source for 8bit and 16bit micro processor / controller ASM , /tech/ ?
>>
I just installed arch, no loonix experience before.

So emacs of vim?
>>
>>51435348
go to your lectures faggot
>>
>>51435399
They are screwing with us with no teacher on the topic, yet it will be in the end sem paper set by the university which my collage is affiliated to.

For now I must learn it myself, that;s why I asked your help, /g/.

Please help me senpai.
>>
>>51434157
>3 vector3D
>not matrix
anon...
>>
>>51434563
Get mono for now and do cs.
>>
>>51435444
whatever it is, i dont understand why you need 3 dimensions
cant you just express an angle as its vector counterpart on the unit circle? (i.e a Vector2 or 2x3 matrix)
>>
File: wat do.png (107 KB, 983x309) Image search: [Google]
wat do.png
107 KB, 983x309
Starting working through textbook and stuck on this for the last hour, I went back and read but I don't get it mane. I'm guessing he wants me to apply some problem solving skills here but I'm just stuck, this shit was not explained and I have no idea how I would begin to do the exercises in pic related or what would be the relevant operators or anything. He just went from "shit out basic arithmetic" to "do this thing I haven't explained", pls repond.
>>
>>51435558
what lang
>>
>>51435518
my bet is they specify a frame of reference
>>
>>51435582
C++
>>
>>51435558
which one are you stuck on?
they're all pretty fucking simple
>>
>>51435589
>frame of reference
for what?
>>
>>51435558
Basic shit.
>sort 3 numbers (although you don't need an algorithm for that few)
>sort 3 words (just changing how you compare vars)
>look up modulus operator
>>
>>51435592
came up with this:
https://ideone.com/HDZ3r7

you're welcome
>>
Can someone explain this to me? I'm making a loop where you leave by press 1, by default x is assigned 0 so if you press anything other than 1 they leave the loop but if you press 1 and then press anything after that you can't leave the loop.

 
do
{
...
scanf(" %d", &x);
}while x == 1
>>
>>51435680
Stop doing peoples homework, they'll never learn.
>>
>>51435666
you need an orthonormal basis as a point of reference for expressing transformations

e.g.
your rotation pivot(reference) can be the center of your model, or some point outside the model(i.e. the object orbits some point)
>>
>>51435689
don't care
>>
>>51435699
C
U
C
K
>>
Hey /dpt/, someone told me I don't write enough tests for my code. I use asserts frequently, am I supposed to do more? Can I even write unit tests in C? Please enlighten me.
>>
>>51435687
Then you want to DO the loop WHILE x != 1 (not equal).
>>
>>51435720
if you're writing code that will only be consumed by you, then tests are useless.
>>
>>51435725
they're not useless, but writing good tests is very time consuming and if its a small project, not really necessary
tests are a godsend when you're maintaining a huge old application with couplings all over the place just to make sure you're not breaking something by making a change somewhere else
>>
Writing Crysis in Python
>>
>>51435724
Oh I fucked it up I meant you stay in the loop by pressing 1.

This is the main part that's messing me up
>but if you press 1 and then press anything after that you can't leave the loop.

1 = stay
anything else = leave

but if you press 1 then something other than 1 for the second loop you can't leave for some reason, also the first scanf after the decision is skipped completely. I messed around with fflush but I don't think I used it right.
>>
>>51432433
Are the crystal
>>
>>51434907
struct Vector {
double x{0.0f};
double y{0.0f};
double x{0.0f};
}

int main() {
Vector yaw{0.0f, 0.0f, 0.0f};
Vector pitch{0.0f, 0.0f, 0.0f};
Vector roll{0.0f, 0.0f, 0.0f};
}

then do the matrix ops during the sim.
>>
> Portability might be a concern: while Go programs themselves are highly portable, Go's runtime currently targets only a handful of major architectures


le what le fuck
>>
>>51435913
>double z{0.0f}; *
Thread replies: 255
Thread images: 29

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.