« first day (338 days earlier)      last day (4609 days later) » 

11:01 PM
@RMartinhoFernandes I've seen an extremely flat and also extremely forested biome with little to no animals. Maybe on small islands it breaks down to just flat; or there's a 'plain plains' biome.
@KerrekSB It's all good until the license part.
 
Well, I just starved :( It's hard to find seeds without a hoe, which is hard to craft without wood.
 
Mmh, you're supposed to find seeds with a hoe? I've never cared how that worked, a buddy of mine took care of finding the first seeds long ago.
 
-4
Q: How to display c++ output message in Win 7 R

user741819I have tested Rprintf in C++ called by R on a Windows Vista PC and it seems working, but the same code prints nothing on my Windows 7 machine, is the OS causing the problem? How could I overcome this problem?

still needs 2 votes to reopen after the morons' sabotage
 
I can't even plant the sapplings from the only two trees I found because I used up the wood on picks and ladders :(
 
@RMartinhoFernandes What do you need the wood for? Plop the saplings down on dirt.
 
11:05 PM
@AlfPSteinbach My vote is there already.
 
@LucDanton Feel free to suggest a better license, and I'll see to it at once :-)
 
@LucDanton Saplings don't need tilled soil?
 
@RMartinhoFernandes No.
 
Cool, I'll set out to plant them right away!
@KerrekSB CC0!
 
@KerrekSB Well, I don't think attribution licenses are all the rage nowadays, are they?
@RMartinhoFernandes If you have bones you know the drill (although I'd understand if you want to hold on them for potential crops.)
@KerrekSB Looks like I need to learn git+github to badger you with patches.
 
11:08 PM
Basic functionality is pretty much like hg, except with crazy command names.
 
bool sig_flag = true; needs to be volatile std::sig_atomic_t sig_flag = 1;
All those threads are an exception safety liability. Plus you don't need std::bind here.
 
@RMartinhoFernandes CC0? Isn't that a content license? Hmmm. Anyway, you can submit patches to the COPYING file, too :-)
 
CC0 is appropriate for source code, unlike other CC licenses.
 
GitHub is awesome. It gives you free webspace for every project.
@LucDanton Oh OK. Is it good?
 
It's public domain, basically.
 
11:13 PM
@KerrekSB It's a bit late tonight so I will probably check out your code tomorrow.
 
@RMartinhoFernandes I see. What's wrong with GPL?
@LucDanton Sure, I look forward!
 
@KerrekSB I don't think there's anything wrong with GPL.
 
@KerrekSB Objectively? Don't know. Seems like a good license when you want something like that. Subjectively? It's not permissive enough for me :)
 
I've never considered using Valgrind to double-check my code. Have you automated that?
 
@RMartinhoFernandes I see. I'd rather have contributors than ideals :-)
@LucDanton Not automated, but I run it periodically.
For Schlagwetter it's not that feasible, because the slow-down causes the client to time out.
 
11:17 PM
What do you use it to look for? Memory safety?
 
It mainly catches logic errors in loops and such things. You know, invalid iterators... it doesn't complain very often, I might say :-)
I don't have a habit of leaking.
 
@KerrekSB Oh don't take that the wrong way. I don't mind GPL. People can use whatever license they want: it's their code. I just don't use it for my stuff.
 
Yeah, figured leaking is not an issue but touching bad memory is always nice to debug early.
 
@RMartinhoFernandes Well, still, I'd rather attract people like you than insist on any particular license.
@LucDanton Ohh, the schlagwetter website still says C++0x. Louis has been bad.
 
If you're curious about more opinions regarding the GPL, I have the opposite position: I'd rather put my code under (strong) copyleft.
So really, pick something that suits you. (But yeah, requiring attribution is somewhat passé).
 
11:20 PM
@LucDanton I agree that it's nice to stand for something. Then again, this is going to be sufficiently niche that I doubt anyone would just steal it without contributing back...
Who's talking about attribution, by the way?
Oh, I am.
 
Weren't you?
 
Yep. I forgot about that part.
Next website push will change this.
Oh, the very prominent linear shadow in the screenshot...
... that's an off-by-one error :-)
I liked the screenshot, though, so I never replaced it.
 
@KerrekSB I don't really do it to stand for anything, the 'back contribution' is enough of an incentive to me.
Really, where's my incentive to make my codebase permissive? :)
 
I think, politics, that will get me flagged (finally).
Look at the first photo here: nrk.no/nyheter/verden/1.7799710
"- I have been here for thirty years and experienced both the wash water, bleach and urine, but never dead animals." [Google translation] In Hebron, the Jews, in the apartments above, are now not just literally pissing on the Palestinians, they're also throwing dead rats. Fishing nets and chicken wire has been put up over the streets to catch the rats etc., although the nets do not catch urine.
 
11:25 PM
 
@LucDanton Well, maybe someone doesn't want to be forced to reapply someone's license. I don't know. I think GPL is great, but I can see why some people might feel it's too meddlesome.
 
Damn. Chat 1-0 Me.
 
@LucDanton In any event, I really don't have any particular opinion.
 
patent lulz
hahah
 
@KerrekSB You only need to do that to redistribute your modifications. You can do anything for your own purposes.
 
11:26 PM
Yeah, I suppose.
 
Actually the also throw dirtied diapers.
 
@TonyTheLion One could develop a very intricate and efficient method of making the snail smoke it. I guess that could be patentable, even if useless.
 
hahah lol, I guess
 
@KerrekSB "A possible exception will be memory mapping for the persistent storage." Isn't Boost.Interprocess portable?
 
But lest that should reflect negatively on all Jews, note these (with government blessing) settlers are some percentage points more fanatically religious than Israeli government.
 
11:28 PM
@RMartinhoFernandes How do you use it for persistency?
 
It has memory mapped files.
Or am I making a terrible confusion here?
 
I think I am.
I regularly mix-up Interprocess, MPI, and probably one other library.
 
(In fact, Interprocess is what I'm using in my yet-untested BitTorrent storage code.)
 
@RMartinhoFernandes I've not dug into that. I use boost.iostreams at the moment for zipping the data, but I have no reason to believe that that's a bottleneck at this point
 
Right now I'm confused that Iostreams can be used for persistency.
 
11:30 PM
@LucDanton The world data has to be written out frequently to keep the memory use small
Oh, wait. (It's been some time!) So, at the moment, the entire world is in memory. That's 80kiB per chunk
but large amounts of chunks have to be available.
 
@RMartinhoFernandes At least in the US, probably not -- unless it was (or at least involved) really some sort of machine rather than just a method. There was a ruling fairly recently where the courts decided that even in a method patent, one of two things is necessary: either the use of a specific machine to carry out the method, or else some transformation of matter (e.g., a chemical process).
 
As the player(s) walk around, unused chunks may be deallocated. So they have to be written out to disk.
It's entirely feasible that a large world can be maintained entirely in memory, though.
@LucDanton IOstreams are only used when you type "save"
 
@JerryCoffin Weed combustion is a chemical process! :)
 
@KerrekSB And then the world is dumped to a file?
 
@LucDanton Yes. according to the format described on the website, and stored in /tmp/mymap.* :-)
Resumable with -r /tmp/mymap
 
11:34 PM
How do you pull that off without Interprocess stuff?
 
I just write out the chunk data as is, compressed.
It's literally just 80kiB of raw data in a 128x16x16 block.
 
Is that data numerical only?
 
(Together with an index file.)
 
Makes sense then.
 
@LucDanton Yep. It's just one byte per world block
(or rather 2.5 bytes)
 
11:35 PM
Silly data race you've got to shutdown your server (the flag).
 
@RMartinhoFernandes Yes, but it's not part of the process -- the weed will burn whether you get the snail to inhale the resulting fumes or not. It would become patentable when/if you had a new process for burning the weed (e.g., holding it at a specific temperature, relative humidity, oxygen level, etc.) Your method has to involve a specific machine or transform matter, not just be an adjunct to one of those.
 
@LucDanton So... there may be some issues with the concurrency design. In fact, I once (and never again) had a deadlock. I believe I'm missing out on atomics in crucial places.
I'm also not happy with the networking code. Compared to mineserver, my login takes for absolutely ever, and I haven't been able to pin down the problem.
 
44 mins ago, by Kerrek SB
@RMartinhoFernandes Are you interested in writing a Minecraft server?
 
(Oh, only 48kiB are saved per chunk. The lightmap is recomputed dynamically.)
 
Ok, I'm going to check out the code and see if I can do anything :)
(FTR I started learning C++ last April, so don't expect rockstar code or anything.)
 
11:39 PM
@RMartinhoFernandes Awesome. Top priority is the networking code. Second priority is terrain generation.
@RMartinhoFernandes I'm not much different myself ;-)
@RMartinhoFernandes But any sort of contribution would be most welcome.
Unit tests maybe? I don't know. If you have any suggestion for the server/gamestatemanager/gamestate design, let me know.
 
4.6.1 is the compiler to use right?
 
@LucDanton Always :-)
I'm sure your 4.7.x will do fine, too!
 
Do I notice a severe lack of lambdas in your code? You seem to prefer things like std::bindor using a functor.
 
Oh: The last version this supports is Minecraft 1.6.3, so unfortunately I'm out of the loop regarding the current version :-S
@LucDanton Hmmm.... I may have had a sceptical attitude, or GCC 4.4, at the time of writing :-)
 
How can I obtain an older version of the client?
 
11:45 PM
I have an old version of the server here.... hang on.
Is it not working for the current client?
(Try logging in two or three times.)
 
Don't know. (I need to reboot to get access to a decent GCC.)
I guess I'll have to install Java on Linux.
 
I'm just making a backup of my client before firing it up again.
 
Make sure you get the Sun JVM.
 
OpenJDK sucks?
 
I think the difference is not as pronounced as it once was but it still helps.
 
11:47 PM
I use the client on Windows... it's always at 99% CPU :-)
 
That's good, right? After all, I paid for those transistors. I don't want them to be slacking off.
 
Oh, the server does, too.
(The official one.)
Popular it is, well written perhaps less so.
The 1.6.3 client periodically died saying "memory full, please restart".
 
Well, when the server is empty it doesn't eat up CPU.
@KerrekSB Apparently 'out of memory' happens a lot.
 
@LucDanton Wait till you see Notch's programming :-)
 
I believe I'd had that once, on Windows.
 
11:51 PM
1.5 worked pretty well with schlagwetter.
 
> Quite a few individuals have experienced issues with OpenJDK.
Seems that Sun JVM it is.
 
@LucDanton Setting up the official server is pretty straight-forward
 
I too have one running, if yo want I can set it up
 
Input will suck without it. I.e. ghosting.
So inadvertently running into creepers happens a lot without it.
 
11:53 PM
@LucDanton Very interesting!
 
@LucDanton Ok, that's cool, there's a portage overlay for that.
 
Mmh, I had an automagic script to updage LWJGL. Not sure where I found it though.
@RMartinhoFernandes Wait, how does that work?
 
It's like an alternative repository for the package manager.
So I already have an automagic script to update it :)
 
How did you come across it though?
 
I just typed "gentoo lwjgl" into Google.
 

« first day (338 days earlier)      last day (4609 days later) »