|
Also, [code] str = (char *)calloc(strlen(visitIdent(_p_->u.stm_.ident_))+2, sizeof(char)); Should be: str = malloc(strlen(visitIdent(_p_->u.stm_.ident_))+2); [code] As sizeof(char) is always 1.
|
# ¿ Mar 5, 2008 01:15 |
|
|
# ¿ May 6, 2024 10:10 |
|
TurtleBoy posted:What is the best way to implement this? Do not distribute your game.
|
# ¿ Apr 1, 2008 19:01 |
|
Adiabatic posted:Nope. Right now the ability to store the information then recall it in an array is easy, it's the last part, printing only what was rated with the other info thats catching me up. Try doing a practice run on paper with some data to see how you would store and retrieve it. If you know how to retrieve all the data and print it -- it shouldn't be too hard to think about how to retireve all the data, and print the ones that meet a condition. code:
|
# ¿ Apr 23, 2008 18:33 |
|
clockwork automaton posted:Haha, thank you! A simple sudo solved all my problems. If you are doing this, you want to look at dropping priviledges after binding to the socket. Edit: although you'll need root priviledges to fork off login shells for incoming connections. OpenSSH handles this by having a small, trusted root process and a locked down network process http://www.citi.umich.edu/u/provos/ssh/privsep.html tef fucked around with this message at 12:51 on May 13, 2008 |
# ¿ May 13, 2008 12:49 |
|
Vanadium posted:It is not browser specific, the forums do the substitution. You can tell by looking at the source. Except I see &pi in Opera in the posts above, not π
|
# ¿ Jun 25, 2008 17:51 |
|
Alan Greenspan posted:Does anybody know of a C++ parser framework that can load BNF grammar files and generate a parser for them on the fly? As mentioned on irc - it sounds like you're after a DSL for parsing, but you would be better off sticking to well known languages rather than inventing your own. For your problem I would suggest using an api to allow the end-users to write their own parsers, and perhaps some sample ANTLR code for well known assembly. If you do end up going down the dsl route, I would suggest PEGs or OMeta to look at, but when speed is your main concern it will be easier to get the end user to write a fast parser than to write a just in time grammar compiler.
|
# ¿ Jul 2, 2008 00:04 |
|
TSDK posted:I also seem to remember that there are calls you can make to detach a child so that this doesn't happen. I think you can also fork twice if you want to detach from the parent. Edit: that said, if you kill the parent the child should be adopted by init. Something is going wrong here, tef fucked around with this message at 14:06 on Aug 21, 2008 |
# ¿ Aug 21, 2008 14:02 |
|
I think you might want the .NET thread, http://forums.somethingawful.com/showthread.php?threadid=2262300
|
# ¿ Oct 13, 2008 22:31 |
|
http://merd.sourceforge.net/pixel/language-study/syntax-across-languages/Mthmt.html#MthmtPwr this is pretty useful. ^ Awk, Dylan, Eiffel, Lua, Mathematica, Matlab, Pliant, Yorick ** Ada, Classic REXX, E, F#, Fortran, Io, merd, OCaml, Perl, Perl6, PL/I, Prolog, Python, Rebol, Ruby, Tcl8.5
|
# ¿ Nov 21, 2008 01:57 |
|
hexadecimal posted:What I got from this is that it's pretty much hardware dependent? If so, how would I make a program to detect specific system being used at 1) compile time, 2) run-time? HAKMEN posted:ITEM 154 (Gosper):
|
# ¿ Jan 14, 2009 02:52 |
|
(that is if you leave out little implementation details like call/cc)
|
# ¿ Feb 10, 2009 06:34 |
|
froobly posted:Is that really that hard to read? Do you find it error-prone? I think the point is not about what you are doing, but what you are avoiding: turning on warnings.
|
# ¿ Mar 24, 2009 10:33 |
|
Sweeper posted:Does anyone have any good resources on Hash Tables and implementing them in C? Wikipedia gives a good description of how a hash table works, and K&R is a good guide to programming in C. Although I would recommend using a library over writing your own
|
# ¿ Sep 30, 2009 18:01 |
|
RussianManiac posted:http://en.wikipedia.org/wiki/Rope_(computer_science) If you have large strings you may find ropes to be a useful representation of them quote:Am I better off implementing my own immutable string class? Signs point to no. tef fucked around with this message at 16:12 on Nov 1, 2009 |
# ¿ Nov 1, 2009 16:10 |
|
The international version doesn't have a dragon http://www.amazon.co.uk/Compilers-Principles-Techniques-Alfred-Aho/dp/0321491696/
|
# ¿ Jan 5, 2010 17:16 |
|
I hear nice things about lemon, (used in sqlite)
|
# ¿ Mar 5, 2010 21:39 |
|
|
# ¿ May 6, 2024 10:10 |
|
shrughes posted:Edit: er, I meant this post to be an edit. What about dependent typed languges
|
# ¿ Nov 6, 2010 17:51 |