Topic List |
Page List:
1 |
---|---|
HashtagTartarus 06/04/18 1:28:48 AM #1: |
Mainly I'm upset at the scope resolution operator. It's a waste of three dots! C# lets you do everything with one dot.
--- ... Copied to Clipboard!
|
TeaMilk 06/04/18 1:29:59 AM #2: |
i started with c++ but i can definitely see how it would be upsetting lol
i wanna learn c#, maybe i'll try to teach myself this summer --- 3DS: 3093-7075-8544 ... Copied to Clipboard!
|
scar the 1 06/04/18 1:36:21 AM #3: |
Try D. It's super fun
--- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
1337toothbrush 06/04/18 1:40:04 AM #4: |
Of all the things you could complain about, you complain about that? Anyway, try Go: https://golang.org/
Or if you want a language without a garbage collector/runtime, do Rust: https://www.rust-lang.org/en-US/ --- ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 1:56:48 AM #5: |
I started with C++, had to use C# at work.
Both have it's Ups / Downs. But I do prefer the control that C++ has. --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 1:57:44 AM #6: |
TeaMilk posted...
i started with c++ but i can definitely see how it would be upsetting lolIt's easier to go from C++ -> C# than the other way around. If you have a strong understanding of Memory Management, then understanding the Garbage Collection of C# is easy peasy. --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
Scotty_Rogers 06/04/18 1:59:08 AM #7: |
Work harder fam
--- THE FAM. My waifus Caulifla, Kale and Kefla from Dragon Ball Super and I drawn by da GOAT @MoistenedYouth: https://imgur.com/a/TYhlg ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 2:00:39 AM #8: |
Scotty_Rogers posted...
Work harder famWho's fam? --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
bulletproofvita 06/04/18 2:01:08 AM #9: |
... Copied to Clipboard!
|
TeaMilk 06/04/18 3:09:02 AM #10: |
KamenRiderBlade posted...
good to know i've used some languages with garbage collection too, i'm guessing there's more differences than that though --- 3DS: 3093-7075-8544 ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 3:11:30 AM #11: |
TeaMilk posted...
good to know i've used some languages with garbage collection too, i'm guessing there's more differences than that thoughLearning Garbage Collection is far easier than learning how to properly Memory Manage. Since you already know C++, C# should be easy. That's from personal experience on my end. C# syntax is very similar to C++ so everything should be a breeze. If you were going the other way around, you'd be in for a world of hurt. --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
Yellow 06/04/18 3:13:22 AM #12: |
If C# is so much better, why won't it let me use pointers?
C# would be better in every way if not for that. Big boy pants not allowed. --- ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 3:14:29 AM #13: |
Yellow posted...
If C# is so much better, why won't it let me use pointers?C# was designed to combat the influence & popularity of Java. If you want to use pointers in a serious way, come back to the C++ side. C# is great for banging out a quick & dirty app. It's not great for maximum optimization like C# and Maximum control. --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
Yellow 06/04/18 3:19:45 AM #14: |
I don't want to use C++, that's the thing. There's no point in having to define a function twice, but I also want to use pointers.
I don't think anyone wants to use C++. --- ... Copied to Clipboard!
|
BigTee66 06/04/18 3:27:59 AM #15: |
C flat a better programming language
--- MSI Z170-A PRO LGA 1151 | i5 6500K | ASUS ROG GeForce GTX 1070 | 8GB DDR4 x 2 | EVGA 650W | Inwin 703 Black | Steam: teeman92 ... Copied to Clipboard!
|
KamenRiderBlade 06/04/18 3:28:47 AM #16: |
Yellow posted...
I don't want to use C++, that's the thing. There's no point in having to define a function twice, but I also want to use pointers.I do ::sniffles:: I love C++, it's my favorite programming language. --- Are you a MexiCAN or a MexiCAN'T - Johnny Depp 'Once Upon A Time in Mexico' ... Copied to Clipboard!
|
1337toothbrush 06/04/18 3:28:53 AM #17: |
Yellow posted...
If C# is so much better, why won't it let me use pointers? Object references are just dressed-up pointers. You're using pointers all over the place in C# and it's handling the allocations for you. What feature of bare pointers do you want to use so badly? --- ... Copied to Clipboard!
|
scar the 1 06/04/18 3:29:12 AM #18: |
Yellow posted...
I don't want to use C++, that's the thing. There's no point in having to define a function twice, but I also want to use pointers. So use D. It offers exactly what you describe. ...and you can use pointers in C#, it's just that most likely you won't need it. And if you're doing pointer arithmetic in C++, chances are you're doing it wrong. --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
Yellow 06/04/18 3:41:10 AM #19: |
1337toothbrush posted...
Object references are just dressed-up pointers. You're using pointers all over the place in C# and it's handling the allocations for you. What feature of bare pointers do you want to use so badly? I was writing an NES emulator and wanted to map the physical addresses of an NES to the cpu's 0000-FFFF 'realm'. (The ROM, RAM) Because I was using C# I ended up just copying the rom into byte[0xFFFF] cpu_mapped_memory Writing a function that returned the address of the physical hardware (like the internet suggested I did) would have been disgusting. Every time the NES wants to read memory anywhere it would have to go through this function and switch statement? Tl; Dr instead of accurately emulating the NES's hardware I emulated an NES that reads everything from 64 kb of ram where I loaded everything it needed. --- ... Copied to Clipboard!
|
Yellow 06/04/18 3:48:26 AM #20: |
I could try doing an array of objects though and spoofing my own pointer array, I didn't think of that. Seems a bit silly to create an object with "byte memory" as the single field, but that would work.
--- ... Copied to Clipboard!
|
scar the 1 06/04/18 4:12:20 AM #21: |
Oh yeah, the ability to access a byte array with an arbitrary struct pointer is really sweet. I did that once at uni when they wanted us to make a file system with pages and stuff. They had made a skeleton for the exercise in JAVA of all things. I threw up in my mouth then I went and did it in D. It was beautiful.
--- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
HashtagTartarus 06/04/18 5:16:50 AM #22: |
scar the 1 posted...
Try D. It's super fun I want to learn C++ because of how mainstream it is. I'm willing to suffer through some bullshit to understand what game devs in the late 90s/early 00s had to put up with. 1337toothbrush posted... Of all the things you could complain about, you complain about that? Anyway, try Go: https://golang.org/ The garbage collector/runtime is something of a dealbreaker for me because currently I don't know a language that's well suited to gaming and embedded development. Just the thought that I'm unnecessarily wasting resources is an irrational bugbear of mine. Rust sounds great from everything I've heard, but I'm going super mainstream just so it's easier to find support for the weird issues I'll no doubt encounter. Yellow posted... If C# is so much better, why won't it let me use pointers? The unsafe context is your big boy pants. It allows the use of pointers and manual memory allocation. --- ... Copied to Clipboard!
|
treewojima 06/04/18 5:41:27 AM #23: |
a NES emulator seems like a fun project. I imagine the hardware requirements are low enough to be expressed entirely in software, so once you get the basic "virtual NES" framework, you could code the rest however you fancy
... Copied to Clipboard!
|
scar the 1 06/04/18 5:44:44 AM #24: |
HashtagTartarus posted...
I want to learn C++ because of how mainstream it is. I'm willing to suffer through some bulls*** to understand what game devs in the late 90s/early 00s had to put up with. The worst bullshit they had to put up with (IMO) was interfacing with the GPU. I mean sure, if you wanna learn legacy DirectX and OpenGL have fun, but GPU standards these days have made things a lot easier anyway. The language C++ is just (well, this is a simplification) really clunky syntax to add templates and OO to C. If you're going embedded, you'll probably want to stick with C anyway. --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
scar the 1 06/04/18 5:47:02 AM #25: |
treewojima posted...
a NES emulator seems like a fun project. I imagine the hardware requirements are low enough to be expressed entirely in software, so once you get the basic "virtual NES" framework, you could code the rest however you fancy http://blog.alexanderdickson.com/javascript-nes-emulator-part-1 --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
treewojima 06/04/18 9:38:14 AM #26: |
scar the 1 posted...
treewojima posted...a NES emulator seems like a fun project. I imagine the hardware requirements are low enough to be expressed entirely in software, so once you get the basic "virtual NES" framework, you could code the rest however you fancy I hate Javascript, so this will be a fun read lol ... Copied to Clipboard!
|
scar the 1 06/04/18 10:13:13 AM #27: |
treewojima posted...
scar the 1 posted...treewojima posted...a NES emulator seems like a fun project. I imagine the hardware requirements are low enough to be expressed entirely in software, so once you get the basic "virtual NES" framework, you could code the rest however you fancy So do I. It's still an interesting read. --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
treewojima 06/04/18 10:40:44 AM #28: |
scar the 1 posted...
treewojima posted...scar the 1 posted... makes me want to write a NES emulator tbh. maybe that'll be my next project. I remember writing a simple assembler/interpreter that acted like a CPU in C# years ago, and I've done enough work in x86 operating system development and graphics using SDL... thanks for the idea, mate ... Copied to Clipboard!
|
scar the 1 06/04/18 10:47:10 AM #29: |
treewojima posted...
scar the 1 posted...treewojima posted...scar the 1 posted... Hey, it sounds like a fun project. Might I suggest doing it in D? :) --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
treewojima 06/04/18 10:49:19 AM #30: |
I'll have to brush up on my D. Last I remember, it was still awkward to work with because of the standard library split and lack of documentation. I do remember that the syntax and idioms felt very natural and comfortable for me to write in though.
... Copied to Clipboard!
|
scar the 1 06/04/18 10:51:32 AM #31: |
treewojima posted...
I'll have to brush up on my D. Last I remember, it was still awkward to work with because of the standard library split and lack of documentation. I do remember that the syntax and idioms felt very natural and comfortable for me to write in though. That's not the case anymore, the current D has just one standard library. And if you wanna work with SDL there are bindings for that as well, which AFAIK map quite 1:1 to the C lib: https://github.com/DerelictOrg/DerelictSDL2 --- Everything has an end, except for the sausage. It has two. ... Copied to Clipboard!
|
1337toothbrush 06/04/18 1:09:05 PM #32: |
treewojima posted...
I'll have to brush up on my D. If you keep that up, you'll go blind and grow hair on the palm of your hands. --- ... Copied to Clipboard!
|
Topic List |
Page List:
1 |