vallentin

Member
  • Content count

    188
  • Joined

  • Last visited

Community Reputation

181 Neutral

About vallentin

  • Rank
    Member
  1. why not making the object hierarchy accesible(tree like structure)as acceptably possible and let the user define its own scripts,just to be compiled inside the engine?
  2. it is Vista.I actually wrote something to the file and it worked.
  3. you may be right about the NULL thing, but fp is actually 1700140104(0x65561448) [Edited by - vallentin on May 30, 2008 11:35:12 AM]
  4. Hi, I tried to create a small program in C and link it against libpng #include <stdio.h> #include <malloc.h> #include "png.h" #include "cartographer.h" void savePng( FILE * fp, unsigned __int16 raster_index) { unsigned __int8 trans[]={_transparent_color}; png_infop info_ptr; png_structp png_ptr; png_ptr = png_create_write_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png_ptr) return ; info_ptr = png_create_info_struct(png_ptr); if (!info_ptr) { png_destroy_write_struct(&png_ptr, (png_infopp)NULL); return; } if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_write_struct(&png_ptr, &info_ptr); return; } png_init_io(png_ptr, fp); /* set the zlib compression level */ png_set_compression_level(png_ptr, Z_NO_COMPRESSION); /*set information chunk*/ png_set_IHDR(png_ptr, info_ptr, _width, _height, _bit_depth, PNG_COLOR_TYPE_PALETTE, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); png_set_packing(png_ptr); png_set_PLTE(png_ptr, info_ptr, _palette, _palette_count); png_set_tRNS(png_ptr, info_ptr, trans, 1, NULL); png_write_info(png_ptr, info_ptr);//<------it stops here png_set_flush(png_ptr, _height); png_write_image(png_ptr, _rasters+raster_index); png_write_end(png_ptr, info_ptr); png_destroy_write_struct(&png_ptr, &info_ptr); } However it gives me an error in form of: Unhandled exception at 0x776bb15f in child_server.exe: 0xC0000005: Access violation writing location 0x00000014. The project is called child_server.exe [Edited by - vallentin on May 29, 2008 11:36:24 AM]
  5. What is really AI?

    Quote:Original post by Timkin Quote:Original post by Rixter Quote:Original post by Timkin Quote:Original post by Rixter AI is search. Ignorance is bliss I figure while we're assigning arbitrary definitions to an apparently ill defined concept, why not take the simplest? Except that saying that "AI is search" is like saying that a house is a hammer. Search is a tool that can be used to create the end result (along with other tools, skill and creativity), but that doesn't magically transform it into the final product. ...and having said that we must accept that a 'so-called AI' that uses only search to solve a problem is not 'AI', but rather just an intelligently designed implementation of a solution to a computational problem. This is the most common objection raised about AI: that it's just intelligent design, rather than an embodiment of intelligence... but then, are we any more (and here I state that I believe in 'design by evolution' rather than 'design by God', just to make my position unequivocally clear). So where do we draw the line? Can't they both be true?How come we exist?Due to what?Something or someone is accountable for that Let's call Him God.
  6. A new type of data?

    Quote:Original post by Promit And what problem are you trying to solve? It was a faster-to-retrieve data type.Maybe you were talking to samuraicrow
  7. A new type of data?

    Quote:Original post by samuraicrow Put simply, it is a hybrid between a B-tree and a Trie leaning more heavily on the side of the Trie. When a node in the tree has only one child, it holds the index and the link in the node itself without allocating any branch space for the rest of the structure. When that node gets a second child, it allocates a vector with (depending on which constructor you used) enough memory to hold both children's links in the vector using either the largest index as the maximum node index to use, or the maximum specified in the constructor. If the maximum node size was specified in the constructor the write time is O(1) but the memory consumption is higher. If you didn't specify a maximum node size in the constructor, then that introduces the possibility of a node resize operation which has a O(n) with a small value of n representing the number of indexes in the existing node that need to be copied to the new node. The read time is always O(1) and the iterator operates on O(n) for every advance to the iterator. why do you resize nodes-isn't it paginated?The rest should be U and L.Obviously you have already known that(btree in wikipedia). [Edited by - vallentin on March 23, 2008 2:34:30 PM]
  8. What is really AI?

    Quote:Original post by Rixter AI is search. what about onthology..relational informations memorized with observational atoms
  9. A new type of data?

    I haven't got the chance to look over the code so I will ask you directly.It is a B+(how?) or a B?
  10. Dancing B+trees linked at the bottom with propagated statistics and page momentae(cached pointers to pages in another dancing B+ trees signifiantly smaller);vacuum against time intervals;pointers in the main btree to pages-with-statistics changed at partial vacuum time;ballanced subtrees at page moments after vacuum there;threads that gain or lose speed to do partial vacuum continuously;dimensions needed in base of a subtree f(n):actual relation to preserve r(f(n)/crt,crt/f(nlastvacuum) r in {<=,>=};statistics are made global and partial per subtree and use counts and medium depth;using pair of before-last level where applicable keys to evenly split data between not full related pages and splitting in a custom number of pages;algorithm to partial vacuum start from the belt and rise up from left to right just creating new and deleting marginal values from other pages [Edited by - vallentin on April 4, 2008 11:34:48 AM]
  11. What is really AI?

    I chose to restart this topic Feel free to comment. What I believe is intelligence: yield for profitability from a certain pov. of thoughts sensed by the subject(thoughts are sensations from inside) . I started from the a empirical-like pov with thoughts as high sensations. The rest is God 's Matrix ;) [Edited by - vallentin on March 20, 2008 1:54:06 PM]
  12. about programs and scripting

    saved portable compiled on spot(javascript without class burden,compiled with a dll,so) with xpath,xml-like structured content(in tools) and script compiler I guess [Edited by - vallentin on March 9, 2008 3:23:12 AM]
  13. I have a new (?) idea regarding usual tools and scripting inside those.How about using a general dll that translates a script language(maybe used C or javascript as example) in a compiled form automatically and xpath to address objects inside the tool.enabling automatic translation from scripts to plugin.not much. [Edited by - vallentin on March 21, 2008 3:04:20 AM]
  14. A draft for a new language

    Quote:Original post by Harry Hunt I'm wondering what the whole point of this is. It almost looks like you're designing a new language that will be obsolete long before it's even fully specified. Also, it seems like you want to design a language but not implement a compiler/interpreter afterwards. A language specification without at least a reference implementation is pretty useless, so I'm wondering where you're going with this. I don't want to rain on your parade, but it looks like you're just wasting your time on this. Here's what you should do: - If you want to design a programming language that people will actually use to write real programs, then simplify your language specification and write a compiler for it. Then make it open source and find yourself a bunch of contributors that will help you make it more interesting. - If you want to design a programming language as a learning experience, get yourself the "dragon book", read it, start over with your specification and write a compiler/interpreter. Either way, you'll have to... - Re-think your goals - Specify your language in a standardized form (BNF, EBNF) - Write a compiler/interpreter for it As harsh as it may sound: If you think you can get people excited about a language that is almost exactly C++/C#/Java, think again. Nobody will go through the trouble of learning a new language if it doesn't offer any unique selling points. In fact, even if your language is incredibly cool and unique, it's still pretty hard to convince people that it's worth picking up. If you look at languages like Ruby or Python, you'll find that the only reason why these languages are somewhat popular is because they're neither C++ nor C# nor Java. Thank you for your kind observations, but I find it hard to concentrate due to some circumstances.
  15. A draft for a new language

    Quote:Original post by Antheus Quote:continuation:I added something like a jump inside a function but not really a continuation I guess(I don't get the how of implementing that) Shouldn't you then *not* add things you cannot implement and don't understand? Jumps and gotos have been excluded from all languages that no longer need to worry about backward compatibility. Quote:generator:you have the possibility to quickly-compile and link new classes This is not what generator functions are. They are something related to continuations. Can't continuations be emulated in Java?