Re: [OSM-dev] OSM server installation - problems with create

2008-09-04 Thread Frederik Ramm
Hi,

Stefan de Konink wrote:
 if (mmap2(...) == -1)
   exit(-1);

The problem is that between our program code (which is of course fast 
and efficient) and the kernel (which offers the mmap2 system call) sits 
a fat beast (a.k.a dynamic programming language) named ruby that 
magically frees the programmer of all responsibilities regarding memory 
allocation and deallocation. This is good because it becomes hard for 
even the stupidest programmer to create memory leaks, but on the other 
hand the programmer is not usually told when ruby decides to make an 
mmap call and what the return value of it was.

 Or would that be 'too easy'? ;)

In a way, yes.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail [EMAIL PROTECTED]  ##  N49°00'09 E008°23'33

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Purpose of visible tag?

2008-09-04 Thread Florian Lohoff
On Wed, Sep 03, 2008 at 09:09:21PM +0200, Frederik Ramm wrote:
 Subject: Re: [OSM-dev] Purpose of visible tag?
 
 Hi,
 
  i see the visible tag being used in examples of the 0.5 api, but i don't see
  any explanation for it. How/when gets something invisible and how should
  an osm editor treat this? Are invisible items to be ignored completely? 
 
 Invisible items are those that have been deleted. You only get them when 
 you ask for an object's history and that object has been deleted, OR in 
 a future give me all deleted objects in this bounding box call.

The api map call returns them aswell - all of them set to true so
basically when you use the map call they could be suppressed. 

Flo
-- 
Florian Lohoff  [EMAIL PROTECTED] +49-171-2280134
Those who would give up a little freedom to get a little 
  security shall soon have neither - Benjamin Franklin


signature.asc
Description: Digital signature
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM server installation - problems with create

2008-09-04 Thread Rogier Wolff
On Thu, Sep 04, 2008 at 12:09:24AM +0100, Tom Hughes wrote:
 Rogier Wolff wrote:
 
  The weird thing is: It apparently doesn't check for memory allocation
  return codes for a while before it notices that it's out of memory.
 
 Ever heard of garbage collection? You know, that thing where when a 
 memory allocation fails the language does some cleanup and then has 
 another go? Think that might explain what you're seeing...

You're right. You got me there. I didn't think about garbage
collection!

Roger. 

-- 
** [EMAIL PROTECTED] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233**
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. - Adapted from lxrbot FAQ

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] OSM server installation - problems with create

2008-09-04 Thread Tom Hughes
Frederik Ramm wrote:

 Stefan de Konink wrote:
 if (mmap2(...) == -1)
 exit(-1);
 
 The problem is that between our program code (which is of course fast 
 and efficient) and the kernel (which offers the mmap2 system call) sits 
 a fat beast (a.k.a dynamic programming language) named ruby that 
 magically frees the programmer of all responsibilities regarding memory 
 allocation and deallocation. This is good because it becomes hard for 
 even the stupidest programmer to create memory leaks, but on the other 
 hand the programmer is not usually told when ruby decides to make an 
 mmap call and what the return value of it was.

Even ruby probably isn't doing the mmap - that is probably glibc...

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] [GSoC] JOSM Plugins

2008-09-04 Thread Milo van der Linden
Subhodip,

Congratulations with these nice plugins! I hope your efforts will make 
live easier for all when converting and uploading gps data. Great work!



Subhodip Biswas wrote:
 hi all !
 
 JOSM has got two new plugins as a part from summer of code this year .
 
 1) First one is GPSBabel Plugin .
 2) Second one is DirectUpload Plugin .
 
 please visit : http://wiki.openstreetmap.org/index.php/User:Subhodip/GSoC_Doc
 for more details and instructions .
 
 
 Feedback welcomed . A lot of thanks to Raphael Mack for mentoring me .


___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


X TUBE VIDEO

2008-09-04 Thread [EMAIL PROTECTED]

New x tube video. DVD quality only. 
http://videos.videosextube2009.com/x-tube-video.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Trade Mandarin for English group.
To post to this group, send email to Mandarin_for_English@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Mandarin_for_English
-~--~~~~--~~--~--~---