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

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 337
Thread images: 20

File: sudo.jpg (41KB, 500x500px)
sudo.jpg
41KB, 500x500px
What are you working on, /g/?

Old thread: >>58422652
>>
Rewriting the Linux kernel in Haskell
>>
first for java a cute. a cute.
>>
>>58430378
I'm learning C.

Can you actually bind Qt in C?
>>
File: mikudayo sushi.gif (2MB, 300x200px) Image search: [Google]
mikudayo sushi.gif
2MB, 300x200px
>>58430378
Is there anything more groanworthy than computing jokes?
>>
>>58430396
C++ > pile of shit > Java/C#

Why do these "languages" even exist?
>>
>>58430404
hiphip[]


hip hip, array!
>>
File: 1326017808997.jpg (35KB, 407x482px) Image search: [Google]
1326017808997.jpg
35KB, 407x482px
>>58430419
>>
Pure FP is a meme
>>
>>58430401
learn c++ instead, faggot
>>
>>58430536
My book does both :^)
>>
>>58430411
indian code monkeys who can't be trusted to anything correctly. Java is like that bureaucracy quote from Civilization.
>The only thing that saves us from the bureaucracy is its inefficiency
>>
Rust > C++ > C# > Java > C > Go > Fortran > ML > Haskell > Idris
>>
>>58430587
> Java >C
rakesh pls
>>
>>58430378

Building a proprietary app for a robust IVR system that simulates 100,000 concurrent calls into a call center SIP trunks and testing load balancing across multi-geosite datacenters making sure every connection is encrypted properly.
>>
>>58430587
>Rust > anything
Rust is a fad and a meme, it was debunked back in October
>>
>>58430587
not an argument.
>>
>>58430587
ASPL/QE is better than all of those
>>
hex editing opcodes/instructions > Assembly > Fortran > C > Everything else.
>>
>>58430549
Your book is trash.
Good C and good C++ are completly different.
>>
File: 1482740438260.png (338KB, 1140x813px) Image search: [Google]
1482740438260.png
338KB, 1140x813px
what color is best for C+?
>>
>>58430850
The book does not say otherwise
>>
>>58430867
bumble bee coloured
>>
>>58430867
blue obviously
>>
>>58430867
Whichever one has Monokai colors
>>
>>58430378
you wouldn't sudo irl
>>
Anyone else fall for the Scala meme?
>>
>>58431100
Nope, just you
>>
>>58430401

No. You can write most of your application logic in C and link it in to some C++ code that deals with the GUI stuff, but there's not really much proper C bindings.

>>58430867

Program while nude.
>>
>>58431290
ruby ruby ruby ruby ruby
>>
>>58431290
oah oah oahhh
>>
>>58431346
What what what what what
>>
Reminder that Ruby is a girl pretending to be a man, like every other /dpt/ poster (some of them pretend to be men who want to be girls)
>>
>>58431376
doya doya doya doya
>>
>>58430378
Should I learn C++ as my first programming language?
>>
>>58431390
Ora Ora Ora Ora Ora
>>
>>58431390

Speak English, yo.
>>
>>58431391
No, learn C.
>>
>>58431405
Let it never be said that romance is dead.
>>
Battleship in python
>>
>>58431405
know what you're doing doing to me
>>
>>58431418
It's not very pretty, I tell thee
>>
>>58431411
>>58431418

Oh, it's a song. Cute.
>>
>>58431500
your face is cute
>>
File: 1425481651647.jpg (162KB, 500x500px)
1425481651647.jpg
162KB, 500x500px
I'm reading K&R and I feel like a retard. I have to re-read stuff 4-5 times to even feel like I sorta "get it". Been reading for 2-3 days and I'm barely through chapter 1. Should I kys myself or what?
>>
>>58430867
matte gray works best for systems programming
>>
>>58431521
Are you familiar with programming?
If not, please don't read K&R as your first programming book, it's written as a C tutorial for people who already know programming, specifically Pascal, which was the most fashionable language of the day.
>>
>>58431543
>Are you familiar with programming?
Obviously not as familiar as I should be. What should I read?
>>
>>58431551
I enjoyed Programming in C by Stephen Kochan, it's written for beginners, but it's not poorly written meme books like "Headstart C"
>>
>>58431521

C Primer Plus, yo.

>>58431513

You got a thing for guys whose face looks like a slightly shorter bearded version of one of the dudes from ZZ Top?
>>
>>58431575
>pretending you aren't a girl
>>
Currently writing an instruction synthesizer for x86-64 using genetic algorithms. I'm selecting for highly obfuscated self-modifying code to prevent reverse engineering. It also selects for usage of the most obscure instructions possible.
>>
>>58430378
Working on link related https://blog.gopheracademy.com/advent-2014/parsers-lexers/

I'mma make a REPL...I think.
>>
>>58430587
VHDL > Ada SPARK > ATS > Rust > C > ACL2 > COQ
>>
>>58431407
why should I learn it over c++
Why not just learn assembly on an old z80 at that point?
>>
Writing some actionscript for on an old flex app as part of a project I just started consulting on. Jesus Christ.
>>
>>58431290
>Program while nude.

Stockings still
.apply()
>>
>>58431666
This is the only intelligent post in this thread
>>
>>58431572
Alright. Thanks mang.
>>
>>58431598

>I'm selecting for highly obfuscated self-modifying code to prevent reverse engineering
It's also going to run like ass because you keep trashing the instruction cache.

>It also selects for usage of the most obscure instructions possible.
Most obscure does not really mean anything for reverse engineering, but it does possibly mean that you're going to be using instructions that may not be as well optimized by the chip producer.
>>
>>58431751
cpus are fast
>>
>>58431751
>It's also going to run like ass because you keep trashing the instruction cache.
its code obfuscation, I don't care about speed. This is only meant to replace certain operations in non-performance critical pieces of code, mostly I/O bound stuff.

>Most obscure does not really mean anything for reverse engineering,
When I load something into IDA and see obscure FPU and SSE shit I get pretty frustrated because it means I am going to have to read the manual pages for them. Will it stop reversing on its own? No. Could it be the straw that breaks the camels back? Maybe.
>>
>>58430401

Nope.
If you want GUI using C, then try GTK/Glade/Vala stuff.
>>
>>58431798
>vala
>C

>GTK
>wanting a shitty UI
>>
>>58431674

The choice for C over C++ for a beginner is to get a sense of how a program manipulates data in memory without the complexities of higher level abstractions getting in the way. It makes sense to learn the lower levels of abstraction first, as it is easy to see how higher level abstractions are implemented, and how they can save you time programming in the future. Knowing C allows you to understand how higher level languages are implemented, and can give an appreciation for many of their design choices and tradeoffs.

There are a few reasons why C is a better choice for beginners than assembly languages:

1. C is generic, assembly languages work on one type of processor only, and may have a different way to interface functions on different operating systems as well.
2. C is structured. Most commonly used programming languages have loops, functions, and if statements in some form or another. Assembly has none of these. It is so distinctly far off from regular programming that knowing assembly cannot be said to transfer over.
3. Assembly is way too fucking tedious compared to C, even for basic tasks.

>>58431687

I'm pretty sure you just want an excuse to pretend to wear girly clothing on the Interbutts. Hence why you have posted that screenshot before and not actually purchased any, not have you put any on and showed some software you have worked on with said stockings next to it for comparison.

>>58431778

>Could it be the straw that breaks the camels back? Maybe.
Difficulty is its own motivation. Never underestimate a bored or highly paid hacker.
>>
>>58431391

Yes.

>>58431906

C isn't any more low level than C++. Stop repeating memes you don't understand.
>>
>>58431929
>le C++ code is compatible with C meme
>>
>>58431962
C code with C++, sorry.
>>
>>58431929

It's not that C is more low level than C++.
It's that idiomatic C++ has more high level abstractions than C.

It is not difficult to describe to a beginner the printf function. Describing std::cout opens up a can of worms because cout isn't a function; it's an object. The function call is the << operator. In effect, you either have to explain a lot in the beginning, teach C++ like C, or tell the beginner "this is a special syntax and we'll worry about it later." Personally, I feel that no beginner should be satisfied with, "we'll worry about this little bit of magic later."
>>
>>58431929
Have you seen the disassembly that C++ shits out?

ctor, dtor pollution everywhere
>>
i'm about to start a remote work job. how much is my productivity going to skyrocket now that I can wear a dress while working?

what gains have you guys seen?
>>
>>58432088
your going to end up mastrubating to doujins all day and lose productivity.
>>
File: thts-heresy.png (198KB, 599x607px)
thts-heresy.png
198KB, 599x607px
>>58431983
YOU ARE NOT A WOMAN. DEAL WITH IT.
>>
What IDE do you guys use? I want one that's good and looks cool.
>>
>>58432207
this is the best choice
https://github.com/AdaCore/gps
>>
>>58432207
emacs
>>
>>58432232
Kek, I was also going to post that
>>
>>58432207
nvim with a shit load of plugins.
>>
>>58432236
it's on my todo list to try it
>>
>>58432207
I use your mom tbqh.
>>
Is Ada worth learning? What is it good for? What is SPARK?
>>
>>58432207
vim with keybinds for tasks I usually do. <C-m> for make-building, <F9> to execute, etc.
>>
>>58432190
See
>>58431575
I'm a guy, always have been one, and always have claimed to be one.

>>58432207
Unix is my IDE.
>>
File: 1313394240587.jpg (51KB, 800x487px)
1313394240587.jpg
51KB, 800x487px
>>58432248
>nvim with a shit load of plugins.
>nvim
>n
>>
>>58432305
Think C++ with a nicer type system. It's nice as long as you don't get autistic over the fact you have to write words instead of symbols.
>>
>>58432335
>what is neovim
https://github.com/neovim/neovim
>>
>>58432305
Spark is Ada with less features in order to make it statically verifiable.
No heap allocations
No recursion
No pointers

>>58432356
And a better implemented tasking system, imo
>>
>>58432386
It's not worth using on Windows.
>>
>>58432207
VS Code is best editor
>>
>>58432207
https://youtu.be/JWD1Fpdd4Pc
>>
>>58432454
I used it once (when it was just released). It freezed, tried to recover files and then they were full of spaces.
Microsoft.
>>
>>58432479
Did it check for a solution first
>>
>>58432468
He uses vim on a Mac.
>>
>>58432479
It's really come a long way, for real. I dropped sublime text for it and didn't look back
>>
>>58430419
>>58430404
I'd tell you guys a UDP joke but I dont know if you'd get it
>>
>>58432609
I'd tell you guys a UDP joke but I dont know if you'd get it
>>
>>58432656
Id also tell you a TCP joke but im afraid the timing is less than adequate
>>
Two threads run in a bar. no charge The for you first one said.
>>
>>58432454
Just tried it.
>install recommended files for C++ association
>reload
>error, missing files (that it just installed)
into the trash it goes
>>
I'm making a bot to play HentaiVerse for me (muh credits, and it's a good opportunity to learn some new stuff) using Python + Selenium.
I want to have four spells active at all times (Spark of Life, Regen, Haste, and Protect), so as part of my battle subroutine, I have the following code:

filenames = {'sparklife', 'regen','haste','protection'}
for x in filenames:
try:
driver.find_element_by_xpath('.//*[@src="/y/e/%s.png"]'%(filenames[x]))
except:
#cast relevant spell

print('Spell expired: %s . Recasting.'%(filenames[x]))
success = castSpell(self, filenames[x])


Basically, when the spells are active, there are icons on the top of the screen. When the spells expire, the icons disappear. That means that an exception will be thrown when a spell expires, and the catch routine re-casts it. The xpaths for the spell icons are, for example,
.//*[@src="/y/e/regen.png]
.

I'm getting the following exception:
 File "C:\Users\You\My Documents\LiClipse Workspace\HentaiVerse\HV1.py", line 385, in fightRoutine
print('Spell expired: %s . Recasting.'%(filenames[x]))
TypeError: 'set' object is not subscriptable


Anyone know what I'm doing wrong here? I can't work it out and Google isn't helping.
>>
>>58432768
>filenames = {...}
>for x in filenames
>filenames[x]
>>
is android developer studio a meme or is it actually useful to use for creating apps
>>
>>58432768
just reference x, as it will be each filename
>>
>>58432207
pycharms, visual studio, and eclypse
>>
>>58432497
>tfw really feeling the limitations of lately
not having a real terminal is actually beyond dumb

it's almost lessened my contempt for mac faggots
>>
>>58432768
Why is your success code under an exception handler block? Shouldn't you be printing a failure message since it couldn't load the file?
>>
File: 1462820954130.jpg (189KB, 720x720px)
1462820954130.jpg
189KB, 720x720px
What does /g/ think of exercism?

I'm considering getting back into programming and it was recommended to me.
>>
>>58432922
disregard that I'm a faggot with zero reading comprhension.
>>
>>58432922
>success = castSpell

>Basically, when the spells are active, there are icons on the top of the screen. When the spells expire, the icons disappear. That means that an exception will be thrown when a spell expires, and the catch routine re-casts it.
>>
>>58432800
This is literally my first Python project, so I don't really get what you're implying. I'm sure there's something simple I'm not understanding in terms of syntax, but if I had the knowledge to get the point of this post, I wouldn't have an issue in the first place.

>>58432804
>Try printing <filenames> before the TypeError thrower (line 385, HV1.py).
That spits out
{'protection', 'haste', 'sparklife', 'regen'}
Which is pretty ordinary-looking to me.

>>58432852
This is probably the issue. Does "for x in filenames" make x into the string itself, or is it an integer index (this is what I had assumed)? My program crashed somewhere else, but it got past this hurdle when I replaced all of the "filenames[x]" with just "x".

>>58432922
>>58432934
Since you can only complete one action each turn, the "success" is whether or not the turn was actually expended. If you try to cast the spell but don't have enough mana or it's on cooldown, you want to do something else with that turn. Basically there's a
 if success: continue 
in the while loop somewhere.
>>
>>58432958
>python programmers
>>
>>58432958
>filenames[x]
>TypeError: 'set' object does not support indexing

for file_name in file_names:
# do stuff with file_name not file_names[file_name]
>>
>>58432958
You're definning a hash table or whatever it's called in python (I think it's "dictionary") without key-value pairs. Use an array (tuple, list?) instead.

That's why >>58432800 pointed the {...}.
>>
>>58433033
Yeah, I guess that makes sense. I'm not sure how I came to believe that it was an index.

>>58433036
I think you're also right - I should be using the square brackets. I think it converted the dictionary to an array in compilation, but it's still sloppy even if it works.
>>
>>58433077
>I should be using the square brackets.
if its a static list then a tuple is the correct pattern. Only use an array if you want the code to update it with new values.
>>
>>58432207
>What IDE do you guys use?
spacemacs

>want one that's good and looks cool.
spacemacs
>>
Started learning lisp two days ago.

Enjoying it so far. Anything I should know before I waste all my free time for the next month?
>>
I'm new to stl and c++; I'd like to store a graph as a vector of vectors, so that the main vector contains nodes, which are in turn vectors of iterators pointing to other nodes. How can I write that in C++?
>>
>>58432468
>>58432497
>>58432901
>our php code base is 10000 plus php files, some of those files has 10000 plus lines
He isn't serious right?
He is just telling it to "impress" the audience, right?
It's a website, how can it have 10000 plus php files and some of them 10000 plus lines?

>i need async
>i can't wait 2 seconds for ctags to scan through 10000 files
That's the worst argument about needing asynchronous operation in a freaking text editor

>powerline
I don't get this meme, what's so aesthetic about > > < < in the statusline?

All in all another disappointing Vim presentation that absolutely misses the point on what makes vim good.
And what's unfortunate will still newbies to the wrong direction (spacemacs + evil instead of emacs, neovim instead of vim, bloated vim with shit plugins instead of plain vim).
The guy sure has some skill though, but the sneaky way he attacks Vim and Bram with misinformation is low class.

The best presentation on vim by someone who is not a vim wizard but absolutely gets what's good with vim
>https://www.youtube.com/watch?v=XA2WjJbmmoM
>>
>>58433528
>>I need async
also vim has async now, and neovim has had it even longer.
>>
>>58431906
I'm not wearing girly clothing, I'm just egging on the other anon.
>>
>>58433591
I still think that async isn't worth it in a text editor, it makes things complicated for no reason.

But Vim has it now and anyone who wants it can use it. I just hope the base Vim behaviour (make, grep, quickfix, omnicomplete) will stay synchronous.

If an operation in a text editor takes too long, making the operation async is just masking the problem, I believe a better course of action is to wonder if you really need this very slow operation in a text editor and find another faster operation.

And not all time adds up. Waiting 2 seconds for ctags to scan your files is not the end of the world as the async proponent pretend.
>>
>>58433528
>presentation
>numale with feminist frequency sticker

opinion discarded
>>
Is there an editor with a feature (or a plugin) which draws each level of parenthesis in a different color?
Just thought that might be something cool, but someone probably did it already. It doesn't really need to draw each level in a different color, 3-4 colors would suffice to distinguish between them, so it wouldn't fuck with other syntax coloring. Different brackets could have different palette.
>>
>>58433695
If you have more than 3 levels of indentation in your code, you're doing something horribly wrong.
>>
>>58433700
>you're doing something horribly wrong.
That something is called math.
>>
>>58433675
>implying those guys don't pass through a screening to check if they accept the dominant liberal ideology
And that's why you should avoid (almost) any video on youtube about programming/vim etc

But this guy at least is giving sane advice which is unique on the vim related videos on youtube
>>
>>58433700
>3 levels of indentation
Nevertheless, even with 3 levels, It slightly irritates me when I can't figure it out on a first glance.
>>
>>58433726
>doing math
>not being a worthless code monkey
What the fuck is happening to you /g/
>>
>>58433695
There are Vim plugins that do this but I never used them because the % is very good

Put the cursor on the opening or closing parenthesis, press % in normal mode and the cursor jumps to the matching parenthesis

>inb4 this is basic knowledge
I'm sorry if you already knew it but I think it's a good practise to not overload vim with plugins and nor relying on colours which are distracting
>>
>>58433784
Almost every editor has that, but that doesn't help me - I'd like to have colored brackets so I can eyeball the code without even touching the cursor.
>>
>>58433811
Stop indenting so much.
I can guarantee you're doing something wrong.
>>
>>58433811
I never used but maybe something like rainbow parentheses

>http://www.vim.org/scripts/script.php?script_id=4176

I pasted the first result from a search on vim.org, I don't know if it's the best
>>
>>58433528
>feminist frequency sticker on laptop
>weird geometric beard looks like crop circles
>balding but wearing hair in a clipped bun
>plucked eyebrows
This guys sounds and looks like a castrated faggot. It's like looking at a parody of a person...but they're an actual person.
>>
>>58433818
Oh fuck you. I'm not. It always irritated me, even if I had to look for a matching one when I had just 2-3 levels of them (I'm counting in different types of brackets)
>>58433831
Well, I was looking more for checked suggestions, but thanks anyway.
>>
>>58433889
post code faggot
>>
>>58430587
>Rust first
Wow I didnt know you were jobless?
>>
File: 1476255607896.jpg (74KB, 640x640px)
1476255607896.jpg
74KB, 640x640px
anyone stim program here?

it's crazy how fucking fun it is once you have a good project going. I programmed the entire day and made progress in magnitude that I haven't expected for weeks.
Stims are fucking cheating, but I don't give a fuck. Too much fun and productivity to care.
>>
>>58434017
fuck off druggie
>>
>>58430378
Shouldn't she just terminate with 0?
>>
>>58432207
Emacs and Eclipse.

Eclipse is kinda nice these days.
Emacs is the only editor that can stimulate you both mentally and anally at the same time, and that's how you know it's the greatest editor.
(See the deldo package)
>>
>>58432207
If I'm writing Racket, then I use DrRacket. For everything else there's Vim.
>>
>>58433642
Async is very worth it in some cases.
But I agree that it shouldn't be used for everything, because that would be retarded.

Things that take a long time that you want to let happen while you edit should be async. Things like uploading/downloading over the network for example. Consider git, or running Maven stuff, and that sort of thing. It makes things slightly better, and enough slightly betters makes for a huge difference.

Should grepping your file be async? Fuck no. Should pushing to git be async? Yes. And it's worth having the extra complexity there.

But you need to have some taste and style to make that distinction.
>>
>>58434105
>Eclipse.
Can you elaborate why? I used it a few years back and remember hating it, particularly how stringent it was about files being arranged correctly.
>>
>>58433695
https://www.emacswiki.org/emacs/RainbowDelimiters
>>
>>58433513
Recursion is beauty, but beware: recursion that isn't supported by TCO can ruin your program.
>>
>>58434161
The last two releases basically started fixing shit instead of adding broken shit, because intelliJ was wrecking their shit too hard.

To be perfectly honest, with Java 9 having a REPL, we might get a proper Emacs Java IDE, and then I won't care anymore.
>>
>>58430378

porting docker images to ARMHF for raspberry pi
>>
>>58432609
>Hearty chuckle
>>
>>58432235
>>58433364
He was asking for an IDE, not an operating system

>>58433528
That's indeed one of the best vim presentations out there
>>
>>58432207
https://youtu.be/K5WW7JOBSjg
>>
>>58430411
C# is great
>>
>>58434263
>debating the virtues of emac and vim
>both using a mac
what fictional world is this
>>
>>58434327
They aren't poor fags
>>
>>58430378
HTTP server in C.
It's quite fun to make.
>>
>>58434436
any guides that you are using?
what are the requirements to deploy an app on your server?
>>
>>58434501
Guides? I mean I read linux manpages for some things, and google stuff if needed, but that's all.
For now it doesn't support dynamic content, so I'm just serving pages from /var/www/
>>
>>58434017
Where to into post-caffeine stims easily and cheaply?
>>
>>58434017
the fuck are stims?
>>
>>58434685
stimulants?
>>
>>58430378
made a palindrome checker, how'd I do?
#!/usr/bin/python3
import string
import re
from string import punctuation

def start():
global string01
print ("Palindrome Checker")
print ("Please input your string")
string01 = input("> ")
puncfor()

def puncfor():
global punc
punc = re.sub('[%s]' % string.punctuation, '',string01)
reverse()

def reverse():
global rev
rev = punc[::-1]
check()

def check():
if punc == rev:
print("Palindrome")
else:
print("It's not")

start()

>>
>>58434745
>
from string import punctuation

I should mention I know I didn't need to include this I'm just a retard
>>
>>58431377
what do we know about Ruby? Does she work or is she a neet? how old is she?
>>
File: 1483507521317.jpg (548KB, 1368x1542px) Image search: [Google]
1483507521317.jpg
548KB, 1368x1542px
>>58434266
C# is trash. Go take your micropenis fanboyism to tenforums.
>>
What language is best for writing ransomware? I guess I'd be targeting Windows.
>>
>>58434843
C, of course. Also, reported to the FBI ;)
>>
>>58434869
Nah, too many ways to fail like buffer overflows. I need something more secure.
>>
>read and explore Lua some
>happen upon some talk by scripter who built 'luvit' (some node.js port or something)
>talk is him explaining his process which is interesting
>eventually he comes to complain about memory management
>literally next slide he's back to complaining about how his GC is deleting his objects prematurely and it's tricky to deal with that
How do these people function?
It just bothers me so much when people can't analyse their tools in an objective manner. He later does the sin of complaining about the libraries he chose, libuv, for having function callbacks.

I can't go on, people like this put me off a language completely. Fuck.
>>
>>58434887
If you're worried enough about buffer overflows, forget it. You're not skilled enough to engineer a ransomware.
>>
>>58434920
So people who wrote OpenSSL are also not skilled enough?

Yes, I am, I'm just aware that everybody makes mistakes and it's easier to account for that when your language works with you, not against you.
>>
>>58434843
asm
>>
>>58434843
c++ is better

>>58434887
lmao, stop while your ahead
>>
>>58434887
>too many ways to fail like buffer overflows
Sounds like a personal problem.
Also buffer overflows tend to happen in overcomplicated code or just be the straight up obvious mistakes when indexing.

Just write your own language/compiler first so analysts have issues.

>>58434920
>You're not skilled enough to engineer a ransomware.
That's a stretch, it's a babby project.
>>58434934
>So people who wrote OpenSSL are also not skilled enough?
I'd say yes actually. Opensource overall tends to be quite a mess when it comes to security, too many chefs who obfuscate their security flaws.
>>
>>58434843
I've been meaning to write a programming language for malware which compiles highly non-deterministicly and in a very obfuscated manner with easy access to undocumented APIs and the ability to do easy ROP chains and shellcode. I just never really work on it much anymore.
>>
>>58435008
It doesn't matter. Most malware targets normies. Normies won't know where to look for solutions. The most successful pieces of malware can be shoddily slapped together in high level languages unless you're doing this as an exercise in computer security. Even metasploit can be useful in real world scenarios despite being detected by literally everything.
>>
>>58434077
too bad i can't show you what i'm cooking in my project. shit is crazy. oh well.
>fuck off druggie
where are we again?

>>58434634
3-fpm is legal and pretty great, way above caffeine. Try combining theanine with caffeine to make caffeine 100x better. I can't take caffeine without it now. Do some research.

>>58434685
stimulants.
>>
>>58435028
I'm an autist that strives for perfection, my hypothetical target model would be secure targets, potentially states.
>>
>>58435063
>/pol/ infects chinese nuclear launch software and starts ww3
>>
>>58434017
Not sure why, but I'm stimulated af after drinking tomato passata (homemade, I usually dilute it with water, so it's basically a tomato juice). It's far, far more stimulating for me than coffee. If i drink too much of it I literally can't sit in a chair for longer than 5 minutes. If I drink it in the evening, I'm guaranteed to spend a sleepless night. I'm pretty sure it's not a placebo effect, but it might be something very specific to me as I haven't heard anyone beside me and my mom to have similar experiences with it (idk, maybe something to do with my neurochemistry?)
>>
>>58431989
Not with -O3.
>>
>>58435162
That's untrue. Even this fuck knows this.
https://youtu.be/Qq_WaiwzOtI?t=342

Stop spreading lies about your large-cost abstractions.
>>
>>58431674
>Why not just learn assembly on an old z80 at that point?
Even better - play a little with this, and then go learning C:
https://en.wikipedia.org/wiki/CARDboard_Illustrative_Aid_to_Computation
>>
Ok, I'm trying to setup Vim for the first time.

But what fucking filetype should the _vimrc file be? It only seems to work (affect vim) when it has no filetype designated and this is hugely annoying and obstructive to editing the actual file.
>>
>>58435192
you call it .vimrc and you open it in vim to edit it dummy
>>
>>58431906
C is like latin a century ago: it doesn't have that much real uses for everyday dev, but is a de facto lingua franca of programming languages and is used to teach you how to program properly (like latin was used to teach proper grammar)
>>
>>58435215
.vimrc is an illegal name in windows though

I've a file called _vimrc with no extension type thus not allowing it to be defaulted to open with Vim.
>>
>>58435233
>windows
I found the problem. I didn't even know vim ran on windows.
>>
>>58435233
>vim
>windows
you fucking hippie
>>
>>58435240
Linux is scary. And Mac is faggotry. Little else remains for a casual retard like myself...
>>
>>58435252
ubuntu is literally easier and infinitely more secure than windows
>>
>>58435252
just install fedora or ubuntu if you don't play games, it's not hard. and don't you need to open vim via the command line anyway? vim doesn't need filetypes to open something
>>
>>58435217
you mean millennium don't you?
>>
>be bored
>go looking for porn
>download 270GB of porn from torrents
>check out 3-4 random pictures
>"meh, what do I even need that for?"
>delete it all
what is wrong with me
>>
File: picture-5.png (589KB, 960x720px) Image search: [Google]
picture-5.png
589KB, 960x720px
>>58435262
>and don't you need to open vim via the command line anyway? vim doesn't need filetypes to open something
welll...to be perfectly frank this is an issue because I want to it to open upon a doubleclick from the file explorer gui
>>
>>58435286
bpd, go see a doctor and get your lithium!!!
>>
>>58435295
I'm using debian and I have no issues with opening a file without a filetype in the file explorer. what kind of error do you get?
>>
I am learning c# and after i used
System.Math.Sqrt()
Method i tried to see its source code, how did MS programmers implemented it

When i Go to Definition i only get this

//
// Summary:
// Returns the square root of a specified number.
//
// Parameters:
// d:
// The number whose square root is to be found.
//
// Returns:
// One of the values in the following table. d parameter Return value Zero or positive
// The positive square root of d. Negative System.Double.NaNEquals System.Double.NaNSystem.Double.NaNEquals
// System.Double.PositiveInfinitySystem.Double.PositiveInfinity
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
[SecuritySafeCritical]
public static double Sqrt(double d);


This still doesn't explain anything. Where to find exact source code?
>>
>>58435245
S-sorry. I saw my professor using it in class and couldn't believe how quickly and effectively he could edit his code. It really appealed to me since I've long felt my IDE to be a cumbersome bloated thing which I didn't even use half its functionality for (so..many...buttons...). but maybe you're right, it does seem Vim on Windows is more of an afterthought.

>>58435320
No error, Windows just lacks an associated program for the non-file type, so it prompts you to choose something to open it with, but since it has no designation you can't make it a fixed option. I guess it's not a big deal...I just thought, surely this has to be some type of file? I tried making it a .vim file but then Vim ceased being affected by it, so, yeah.
>>
>>58435342

return pow(d,0.5);
>>
>>58435353
aren't there options for this? right click it and properties or something so you can set what program this file should be opened with
>>
>>58435356
This explains nothing
>>
>>58435364
trust me, it's how it's done
>>
>>58435364
They use Maclaurin series
>>
>>58435363
Again, this only works if it has an associated file type. A file type file cannot be associated to a specific program in Windows. You must designate everytime what to open it with.
>>
>>58435285
Latin began to be dropped from school curricula after WWII, when English became the dominating language. Before WWII the most used language in science was French and Latin, but beside that English, German and Russian were used by a comparable level of speakers.
>>
>>58435286
Being horny makes you irrational. Post fap hyper-rationality is the most glorious state of mind. It honestly makes me wonder how anyone could actually go through with collecting 270GB of porn.
>>
>>58435380
that's pretty homosexual, but I googled it for you. Hope it works for you buddy, vim is nice to work with
http://superuser.com/questions/13653/how-to-set-the-default-program-for-opening-files-without-an-extension-in-windows
>>
>>58435374
I know, but i just wanted to know where i can look at source code of already established methods in visual studio, this Math.Sqrt() was just an example
>>
>>58435404
You mean the source code of C#'s standard libraries?

Ask bing.
>>
>>58435399
Right, but this creates another problem, now other files I don't want to be associated with Vim will be.I appreciate the effort anon but I've already given up and uninstalled.
>>
>>58435393
>Post fap hyper-rationality is the most glorious state of mind.
Couldn't agree more. I can't count how many times I wished I could go back to the state before puberty when sexual desires didn't exist to me and I didn't care.
>>
>>58435419
you could also install vim plugins for your IDEs, I do it as well since we have to use visual studio and netbeans for school. the one in netbeans can be a bitch sometimes though but the visual studio one is good in my opinion
>>
>>58435418
Microsoft's Reference Source is literally copypasted "go to definition" option in VS, which >>58435342 explained nothing in detail. I need actual code, not some simple calls to method
>>
File: 1383498694458.jpg (13KB, 180x157px) Image search: [Google]
1383498694458.jpg
13KB, 180x157px
>>58435429
Yeah, I'm looking at Eclim atm. Here's to hoping...
>>
>>58434773
C# is comfy, and easy to get shit done.

I don't get the hatred for it. It's widely liked by those who actually use it.
>>
>>58435471
Hope is what keeps us strong, may the force be with you!
>>
Holy shit xamarin is now officially broken as fuck. I just wanted to use F# for app development but now it looks like I'm going with scala... Which is a shame because F# is a much nicer language :(
>>
>>58435387
give me 1, just ONE scientific report that is written Latin.
>>
>>58435497
How do you use xamarin, in VS2015?
>>
>>58435511
Yeah can't get the xml designer to work at all, among other things... How do you use it?
>>
>>58435393
Indeed.
Personally I don't even torrent. I manually go online and screen for pictures. Using my own one-hand controls to save images/videos I like.
>>
>>58435342
http://stackoverflow.com/questions/4931853/c-sharp-math-sqrt-implementation
>>
>>58435444
see
>>58435543
>>
>>58435537
I never used xamarin in my life and i tried to use it in VS2017 beta, i make some simple textboxes and after i start i see nothing, default phone screen with nothing on it

Either i do something really stupid or it's broken as fuck
>>
>>58435502
Ok, papers weren't written in Latin after XVIII century, but that doesn't mean it wasn't widely used in science for specific purposes (terminology). But when exactly was it dropped doesn't really change the point I was making which is the similarities of Latin and C.
>>
>>58435547
gee, i didn't expect it's that complicated

So, i can't see any of the standard library methods?
>>
>>58435511
File => New Project => Blank App (Xamarin.Forms)

Better yet, grab one of their sample solutions that's already built, load it up, and go from there.

Have you updated VS since they made Xamarin free and included?

I'm working on a multi-plat Xamarin app right now for iOS and Android.
>>
>>58435576
any good resources to learn xamarin?
>>
>>58435571
Many of them are there in the reference source, but something like that is better done as a simple machine instruction.

Why do you think that answer is complicated? It's literally just doing the x86 FSQRT instruction.
>>
>>58435587
I'm learning it from their Xamarin + Azure samples. If you spin up a Mobile App Service resource in Azure, it even gives you a downloadable solution that's already preconfigured to interact with the little cloud-hosted database, server side instruction, and notification broadcaster.

You can demo and look at the source for a sample CRM app and build off of that:

https://tryappservice.azure.com/
https://github.com/xamarin/app-crm/
>>
File: Untitled.webm (3MB, 1920x1080px) Image search: [Google]
Untitled.webm
3MB, 1920x1080px
4chan browser #113.

http://pastebin.com/JXvb4wdN
>>
Android app that needs to read data.
Should i bother using sqlite?
Is it really faster?
Can i just hold the data into a 90mb JSON file ?
>>
>>58435831
Test both ways.
>>
>>58435831
>he wants to load a 90mb file into memory and then write to it to change anything
>>
>>58435863
I don't want to write on it.
This app will run on smartphones with 1GB of ram.


Yeah, it definitely looks like a bad idea, but i guess i can just try
>>
>>58435910
>This app will run on smartphones with 1GB of ram.
kys
>>
Hey I asked this yesterday, but asking once more (will probably not ask after that). If you're interested in learning about computer graphics with c++ as the language and opengl as the api, would you like to form a two-person team where we will communicate over IRC (or whatever) and share our insight about what we learn, and write code, read books/articles, compare implementations etc.? I think it will make the process more fun and together we might learn quicker compared to alone. Like a programming pal kind of thing.
>>
>>58436166
do you want to fuck that person as well? masturbate on cam and shit? seems like fun
>>
>>58436166
I have years of experience with C++ and OpenGL, OpenGL ES. I'd be interested.
>>
>>58436212
>>58436212

woah, i'm sort of just starting with opengl. the conversation will probably be very one sided, and it could be me asking a lot of questions already familiar to you. but if you are interested, you could join #xxdd on freenode, and we can talk.

>>58436206

no.
>>
Started learning python today, I got this simple exercise : writing a program that counts all the vowels in a word, here's my solution :
#!/usr/bin/python3

count = 0
s = str(input("type in a word : "))
for i in len(s):
if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or s[i] == 'o' or s[i] == 'u':
count += 1
print("Number of vowels:", count)


and it says "TypeError: 'int' object is not iterable" for line 5 (so the initiation of the for loop), what's wrong ? I've been at it for 30 minutes, can't seem to find a solution
>>
a simple music editor/player for the Acorn Electron, written in BASIC
>>
What happened to the Functional Programming Thread?
>>
>>58436267
>for i in len(s)
>>
>>58436264
>tfw no programming sexbuddy
>>
>>58436278
It was only popular enough during the holidays
apparently /fpt/ all have jobs

so we're back to only using dpt
>>
>>58436283
well yeah I tried "for i in range len(s)" but it says it's wrong
I tried to bind len(s) to a variable l and do "for in in range l", it doesn't work either
>>
>>58436296
for i in s:
if i in 'aeiou':
count += 1
>>
>>58436310
wow mate
>>
>>58436267
for i in range(len(s))

but the pythonic way to do it is:
for c in s
>>
>>58436293
Damn. Well, I guess I'll ask my question here then.

In Clojure, I have these two functions

(def mult-by-2 (partial * 2))
(def my-inc (partial + 1))


And I want to apply both of these functions to a list/sequence, so I do the following:

user => (map my-inc (range 0 10)) 
(1 2 3 4 5 6 7 8 9 10)

user => (map mult-by-2 (range 0 10))
ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn clojure.core/map/fn--4785 (core.clj:2644)



Any ideas why? I can't seem to apply the mult-by-2 function to sequences, but I can apply the my-inc function.
>>
>>58436330
I don't know, that's really weird
Could * have some other behaviour?
>>
>>58436330
>>58436343
In fact, does Clojure allow -2 in the name?
Try it without that
>>
Should I build a library of small functions for programming contests? Any resources on what to include?

I've already got a lot of the bithack stuff from this:

https://graphics.stanford.edu/~seander/bithacks.html
>>
>>58436353
Weirdly enough, I tried to redefine it in the REPL right before I saw this message, using the exact same

(def mult-by-2 (partial * 2))


And now it works.
That was weird. Maybe a hiccup somewhere down the line.
>>
I'm thinking about starting to learn to develop for Ethereum. Any tips?
>>
>>58430404
It's worse when it's titled "ONLY COMPUTER NERDS WILL GET THIS".
>>
>>58434745
pal x = x == reverse x
>>
>>58436330
is there a partial like for common lisp?
>>
File: 4changlut.gif (522KB, 640x480px)
4changlut.gif
522KB, 640x480px
glut poster again, 3d programming is really fun
float i,inc,c,s,c2,s2,r;
inc=6.283185307/10; // resolution of 10 through 2pi
r=10; // radius
glBegin(GL_QUADS);
for (i=0;i<6.283185307;i+=inc) {
c=cos(i);
s=sin(i);
c2=cos(i+inc);
s2=sin(i+inc);

glColor4f(1, 0.5, 1,0.75);
glVertex3f(r*c,r*s,0);
glVertex3f(r*c2,r*s2,0);
glVertex3f(r*c2,r*s2,10);
glVertex3f(r*c,r*s,10);

}
glEnd();
>>
>>58436763
pal = (==) <*> reverse
>>
>>58435481
This dude, c# is like an actually good java
>>
>>58436883
not good enough
>>
>>58436797
how this work?
>>
>>58437026
(f <*> g) x = f x (g x)
>>
>>58437026
>>58437073
(f <*> g) x = f x (g x)
((==) <*> reverse) x = (==) x (reverse x)
(==) <*> reverse = \x -> x == reverse x
>>
>>58437073
thats handy
>>
>>58430760
>Rust is a fad and a meme, it was debunked back in October
?
>>
>>58431100
A teacher of mine, neat language but fuck using it for anything serious
>>
>>58436796
No it isn't you fucking retard.
>>
>>58437113
this is for the ((->) a) applicative
you can also use "pure" rather than const

here's another
f >>= k = \ r -> k (f r) r


and since
f >=> g     = \x -> f x >>= g

you get

(f >=> g) x r = g (f x r) r

(i think that's accurate?)

This leads to magic like

beginsWith = zipWith const >=> (==)
>>
https://github.com/wrvc/misc/blob/master/display.c
rate my program
idea shamelessly stolen from the 7-segment display anon
>>
>>58432207
Visual studio and IntelliJ are the best ones I've used, but they both require quite a bit of a setup before you start using them
>>
>>58437182
sorry I don't know moands
or what beginsWith does

its ok, im getting to that chapter in lyah
>>
>>58437253
"asdf" `beginsWith` "asd"
True

"asdf" `beginsWith` "b"
False
>>
>>58436796
And...what is the purpose of this? Countless programs could produce a better version of this in a much simpler way.
>>
File: 1473550131786.jpg (48KB, 500x375px)
1473550131786.jpg
48KB, 500x375px
Im working on a tilemap data structure in java. Im thinking of storing the map as an array of longs. 64 bits are more than enough to fit all information in it and even a large map 1000^2 is only less than 1 megabyte in overhead.
but I would need to "unpack" every long for every tile used and is that really faster than if I just use a struct and some more overhead?
>>
>>58437337
>java programmer
>caring about memory

one of these things is not like the others
>>
>>58437364
>one of these things is not like the others
TRIGGERED
>>
>>58436796
>glbegin
>glend
>>
>>58437337
you sure you really need long and not int?
int is already freakishly huge for entity mapping
>>
>>58437382
in Haskell this is just

renderPrimitive Points $ do
color $ Color3 x y z
vertex $ Vertex3 x y z
>>
>>58437399
yeah it's as bad
>>
>>58437364
so you are saying that because I do it in java and and not sepples I should just avoid go for maximum overhead and optimisation?

>>58437388
tile type: 2 bytes
height: 2 bytes
a bunch of boolean for blocking and stuff: 1 byte
and there is always something more.
>>
>>58437417
>I should just avoid optimisation and go for maximum overhead?
*fixed
>>
>>58437382
welcome to GLUT and why nobody other than teachers stuck in the past century and their studentsor very stupid people use it
>>
>>58437412
:^)
>>
>https://github.com/4chenz/path_finder
It hangs when I try to search for HDB, what do?
>>
I need a bignum library but GMP is pretty huge.
I know there are alternatives but I'm not sure which ne to use.
Do you guys have any experience with more lightweight libs?
C should really have one by default...
>>
>>58437437
This has nothing to do with glut. This is just fixed function pipeline which is a legacy API for dealing with graphics in OpenGL. Everybody else uses vertex/index buffers, shaders, and so on.
>>
https://googleyasheck.com/i-didnt-get-hired-heres-why/

[spoiler]he didn't make it[/spoiler]
>>
>>58437517
He's a white male, of course Google didn't hire him
>>
Did we just get the holy grail of slowness?

http://eta-lang.org/
>>
>>58437517
Nice spoilers, fag.
>>
>>58437517

>autodidact

Well there's your problem
>>
>>58437552
>copy Haskell for JVM, rather than just adding an FFI library and a JVM based runtime
>don't integrate language extensions into the core language
why?
>>
>>58437517
>make a blog about applying for Google
>over the course of a year fill it with shit
>don't get the job
>use the blog to whine
tip top kek holy heck
>>
File: you are.jpg (151KB, 500x280px)
you are.jpg
151KB, 500x280px
>>58437517
>Recruiters look at hundreds of resumes every day, and they are highly tuned to detecting quality candidates and rejecting those who don't match up with their model. For some reason, I just didn't fit the profile. They probably are doing me a favor. It's possible that I would have been in over my head and continually dragged my team down. Google is known for having false negatives in their selection process, but if you're good enough for Google, you'll eventually get in.

>Recruiters know what works, and what doesn't. So respect their decision and be polite. I'll bet they deal with irate rejected candidates on a daily basis, so don't be like that. Just get more experience and knowledge and try again later.

To say the guy's a cuck would be a severe understatement. He's a faggot of monumental proportions. No wonder nobody wants him if he's such a low-t beta with self esteem in the gutter. He should respect himself, his skills and his time much, much more, otherwise everybody will keep stepping over him. Pathetic.
>>
>>58437611
What if he knows he is actually trash?
>>
>>58437149
Rust is "designed to be faster than C" but in real programs it's almost always slower than Java. The compiler is very slow (because it's written in Rust) and single-threaded (what happened to "fearless concurrency?") and the core team admitted that this will take at least a year to fix, in which time no new features will be added to the language. Error handling is very cumbersome, far more verbose than in other languages, and the way it's implemented yields constant branch mispredictions no matter which path is taken so they don't even have the excuse of "doing it this way is faster than exceptions."

But that's all just icing on the cake compared to the real problems. Remember, the entire point of Rust is to make a language that automates manual memory management without using GC. Originally they said it would not have memory leaks, but after some users discovered a design flaw they quietly dropped that claim from the sales pitch. In the last few months more of these design flaws have been discovered that produce a variety of use-after-free situations. They're blaming most of these on LLVM, or stalling and saying they'll get to them after the compiler rewrite is finished in a couple of years. Meanwhile their would-be users are abandoning the sinking ship in droves, moving to languages like Go and Nim where the compilers are written by competent programmers instead of a crack team of token minorities installed by Mozilla's department of virtue signalling.
>>
>>58437417
>tile type
>2 bytes
jesus christ
>>
>>58437611
if he went into the interview with that cucklevel the case is cristalclear
>>
>>58430401
Use gtk
>>
>>58437624
Doesn't matter, there's no reason not to act like you're the king of the world. If you do, many people will believe you actually are, since you're acting that way.
>>
>>58430527
I haven't tired it yet so I'm reserving my judgment
>>
>>58437647
over 5000 different tile types, friendo
>>
>>58437640
Wasn't just the standard lib implemented in Rust and it then uses LLVM as a compiler backend?
>>
>>58437672
should have gone to >>58437646
>>
>>58437611
>He should respect himself, his skills and his time much, much more, otherwise everybody will keep stepping over him. Pathetic.
Making up his mind to behave like an actual male will not cause his balls to descend. He's incapable of taking what he wants because he doesn't know what he wants. His body doesn't make the right chemicals for that.
>>
>>58435233

>.vimrc is an illegal name in windows though
It's not. Dotfiles are legal in Windows. If they weren't, every git user on Would have a lot of problems with the .git directory and .gitignore file.

Filenames in Windows are allowed to contain any unicode character except for the following:

<
>
:
"
/
\
|
?
*
NUL (integer value 0)
Any character with an ASCII value between 1 and 31 inclusive.

Not allowed to use the following names: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

Not allowed to end a filename with a space or period, however filenames are explicitly allowed to begin with a period (i.e. .temp)

Source:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
>>
>>58437695
I firmly believe it's all in the mind and it's all a matter of attitude. If you're a skilled engineer you are literally among the top 1% of the most intelligent people on the planet, even if you're pretty shit. Not even mentioning all the time and effort he wasted posting on his little blog. It's pathetic, and he deserves ridicule until he mans up. I could dissect his entire post in many ways but you guys are all thinking the same thing as me anyway.
>>
>>58437717
Yes it is.

.vimrc would not be allowed

..vimrc would be

Windows assumes the dot operator in the first delineates the point between the file name and the file type, thus there is no name, which is not permissible.
>>
>>58437717
>>58437750
weakly typed OSs were a mistake
>>
New thread:

>>58437759
>>58437759
>>58437759
>>
>>58437750

Anon, I just gave you evidence from MSDN that directly contradicts what you just said.
>>
>>58437731
>I firmly believe it's all in the mind
You don't have a mind. You have a brain. It's part of your body and exists only to obey the needs of your body. The quality of your body and your quality as a person are exactly the same. If you're a fuckup, if you're unsuccessful in life, it's always because your body is fucked up.

If you don't know this, it means you're a beta SJW cuck.
>>
>>58437262
It's good for learning, solving a simple problem in a complicated way, instead of a simple one could help to learn. What other way would you do it?
>>
>>58437784
are you cute girl?
>>
>>58437611
Jesus, what a bitch. He should try applying to Microsoft though. They were famous some years ago for hiring people like that on conditions no one would ever take if it wasn't MS. I guess that's the charm of big names; they attract abundance of skilled but other than that somewhat dysfunctional people.
>>
>>58430411

Is there a tool that I can use to make sure if I add a new field to a datatype to also change a method that needs to consider all fields like equality or a hash function? This is just an example. I'd like to use this for serialisation and deserialisation.
>>
>>58437814
>projecting
>>
>>58437901
I'm not a girl at all.
>>
>>58432656
I was going to say
>underrated post
But then I read
>>58432684
>ya blew it
>>
>>58438008
do you work actually? you seem to be experienced
>>
>>58438131

I have a paid research position.
>>
>>58438181
Sounds pretty neat. Can you share what you research with us?
>>
>>58438181
Answer my question you imbecile >>58437933
>>
>>58438222
Software security. Creating a decoy server to trap a piece of malware targeting OPC servers.
>>
>>58438265
What language is this for?
>>
>>58438276
ew
>>
>>58438294
C++
>>
>>58437933
>>58438409

Okay, so you've got a C++ class...
And you want to add or remove a field...
And you want this tool to change all methods on that object associated with all previous fields?

How is this tool supposed to have an idea what the intent of these methods is in the first place? Even if it's something as simple as equality, it's not always as simple as using == on all of the fields...
>>
>>58438467
I don't really need full automatic code generation. I just want to see a warning if I forgot to change two related things.
e.g.
class Foo {
int x;
int y;
}
//some annotation like
all_fields(Foo, Foo.x, Foo.y)
boolean operator==(Foo& left, Foo& right) {
return left.x == right.x; //y is ignored in this case
}

// now I add a field
class Foo {
int x;
int y;
int direction;
}

//to stop the warning
all_fields(Foo, Foo.x, Foo.y, Foo.direction)
boolean operator==(Foo& left, Foo& right) {
return left.x == right.x && left.direction == right.direction;
}


A simple solution would be an external tool that verifies if I've manually annotated the operator with the fields I've already considered and if a field is missing then it would show a warning.
>>
>>58438693

I do not think such a tool exists. Might be an interesting project though.
>>
Hello /g/,

I am extremely desperate, that's why I'm here. I'm studying Bionformatics. And I am looking for whatever example source codes based on machine learning for thyroid cancer detection.
>>
>>58439500
>And I am looking for whatever example source codes based on machine learning for thyroid cancer detection.
Jesus christ.
>>
>>58439500
sure man lemme just hack a gibson first
Thread posts: 337
Thread images: 20


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.