![]() |
|
02-24-2015
|
61 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
Reports are important for things
|
|
02-25-2015
|
62 |
|
:
Join Date: Jul 2012
Location: Minnesota
Posts: 818
|
I'll be posting again shortly. I've been really busy lately so I haven't been able to code very much. |
|
02-25-2015
|
63 |
|
???
Join Date: Dec 2011
Posts: 291
|
l33t c0der
|
|
04-18-2015
|
64 | |||
|
Brogrammer
Join Date: Apr 2015
Posts: 28
|
http://pivotallabs.com/all-evidence-...eing-bull****/ OOP is garbage.
|
|||
|
04-18-2015
|
65 |
|
Registered User
Join Date: Nov 2012
Posts: 121
|
Functional programming is a good paradigm to get your head round. Even if you're using a language that isn't typically functional, the lessons and habits learned will improve your code. Unfortunately, GScript doesn't make this easy past a basic point, with a lack of lexically scoped variables and closures. It will still improve your code, regardless. No excuse, however, with C++, with the new standard. |
|
04-18-2015
|
66 | |
|
Brogrammer
Join Date: Apr 2015
Posts: 28
|
|
|
|
04-18-2015
|
67 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
You can argue that ASM is just human readable machine code.
|
|
04-18-2015
|
68 |
|
Registered User
Join Date: Nov 2012
Posts: 121
|
I can't remember which arch (I think MIPS) or the specific instructions, but there was something about inconsistent arrangement for a couple of opcodes where the corresponding instructions in assembly looked consistent. I think glossing over that is some level above writing pure opcodes. From what I recall, a lot of assemblers give you convenience macros/pseudo-instructions, which assemble into several machine instructions. I think, however, it's such a small level above machine code that making a big fuss over the distinction is perhaps pedantic. |
|
04-18-2015
|
69 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
So ASM actually gets run through a little interpreter?
|
|
04-18-2015
|
70 |
|
Registered User
Join Date: Nov 2012
Posts: 121
|
There is some level of text processing to assemble into object files. I imagine it wasn't a stretch to include built-in and user-defined macros on top of that. It's still architecture dependent because it is so close to machine code as you say but I think there is a bit of wiggle room for convenience features. If you notice, assemblers have varying syntax from assembler to assembler. Code written for gas is different from nasm, etc. With some assemblers, the difference is minimal but enough to catch you out, such as literals, referencing memory, etc. I think with GNU in particular it uses at&t syntax by default (though accepts Intel too). With that, the order of operands are reversed so typically, with Intel as common, you have: PHP Code:
PHP Code:
|
|
04-19-2015
|
71 |
|
Software Engineer
Join Date: Sep 2011
Location: Gold Coast, Australia
Posts: 787
|
|
|
04-19-2015
|
72 |
|
Weaboo
Join Date: May 2014
Location: Hyrule Kingdom
Posts: 393
|
Can someone recommend me a compiler for C++? Learning code isn't easy if I can't run it :I EDIT: Now that I think about it. What should I write the actual code in? xD |
|
04-19-2015
|
73 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
i use gcc, but i think visual studio comes packaged with one.
|
|
04-19-2015
|
74 |
|
Weaboo
Join Date: May 2014
Location: Hyrule Kingdom
Posts: 393
|
Can I code C++ in Visual Studio?? I thought it was only for Visual Basic.
|
|
04-19-2015
|
75 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
Visual studio supports a handful of languages
|