• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

346 Neutral

About realh

  • Rank

Personal Information


  • Github
  1. Should I drop pygame?

    A third option is to switch from pygame to PySDL2. Unfortunately the API is quite different, but it's mostly function name changes, the fundamental principles are the same. Pygame/SDL 1.2 are quite old, which does have some advantages I suppose, but working with SDL 1.2 would give me the feeling that I'm working with something that's been replaced, and missing out on useful features, even if the old version is still being supported and maintained.
  2. You should also consider the possibility that the reader and writer have different endianness.
  3. Ide For Linux

      Visual Studio Code looks great, but the docs for the C/C++ extension say it doesn't have proper Intellisense support yet. It uses tag-based completion for now. Without Intellisense I suppose it can't do dynamic error checking either, so for now it can't match vim + youcompleteme or the Emacs equivalent. VSC does have a vim extension though, which already looks quite usable if that page is to be believed. Last time I checked Atom its vim mode wasn't up to the job, but that was a while ago.
  4. C++ IDEs - a rant

    I've had a look at the docs for VS Code. It looks great, but sadly it doesn't have Intellisense for C/C++ yet. Does anyone know roughly when that might be working?
  5. C++ IDEs - a rant

    There is a very valid school of thought that if you can't see the top of your function while editing the bottom of it your function is too long, but I find myself breaking that rule all the time. If you stick to it for complex algorithms you'll find yourself having to replace large collections of local variables with one-use structs to sanitise passing them between many small functions.   Besides that you often need to perform some calculations on parameters to get an initial value for a local variable, and being forced to use a separate declaration and initialisation is a waste of screen space. Hm, Intel. They seem OK in this new age of even MS embracing open source, but can they really be trusted not to generate pathological code that runs much slower on AMD? They shouldn't be that desperate as far as AMD are concerned, but they are with ARM.
  6. C++ IDEs - a rant

    I've found Tango makes a good basis for a colour scheme, even if you limit yourself to the few official colours. (There also seems to be an unofficial consensus about adding turquoise).
  7. You could rewrite it as a web app and use Cordova/Phonegap for the mobile versions.
  8. C++ IDEs - a rant

    The trouble with using an old VC for C is the lack of support for C99. OK, it doesn't make such a dramatic improvement to the language as C++11, but I do take for granted being able to declare variables in the middle of functions. Once I was trying to compile some C in VS2012 (IIRC) and got an error message because of that. I couldn't work out what the message was trying to say so I looked up the numerical code. According to MS' official documentation this error was caused by trying to dereference a struct member via a typedef of the struct, which is illegal! Sometimes the documentation should be written by a programmer after all.
  9. I'm interested in why the pointer to the object is stored in each smart pointer instead of in the control block. Has that been found to perform better overall than making each smart pointer a single word size, but requiring an extra indirection?
  10. Ide For Linux

    Sublime and Geany are based on GTK2, so I wouldn't bother with them unless you have no plans to use up-to-date hardware and OS beyond the end of the decade.
  11. Ide For Linux

    I don't want to resurrect an old war, I'm open to change. I prefer gvim at the moment, but that choice (over Emacs) was made in the 90s, so a lot has changed and I'm wondering whether it's worth switching to Emacs+Vile. But if you still need to use Lisp to make the most of it, I think it's not for me.
  12. Ide For Linux

      What do you mean by "better software"? What do you like about Emacs+Evil better than vim? Ditto neovim. I've tried it, but I prefer gvim/macvim for now. I hardly use any of the GUI features, but the way it indicates insert mode by changing to a thin cursor is very useful, and something I've become used to instead of looking at the status line.
  13. Ide For Linux

    If I had to choose between basic vim and code completion etc I'd probably choose vim. But you can have the best of both thanks to https://valloric.github.io/YouCompleteMe/.
  14. Sorry for dup, the site doesn't seem to work well with the current version of Chrome.
  15. I don't think you'll be able to mix SDL and Qt in the same window, and there may be other complications from using two major libraries together. I think you'd be better off writing your own rudimentary GUI toolkit on top of SDL (or try to find an existing one with an appropriate licence). It's equivalent to what most games do.
  • Advertisement