tag:blogger.com,1999:blog-8837899541977019574.post5570506742786195676..comments2022-11-16T14:41:56.197+01:00Comments on program begin end. // comments?: Compile time ordered vectorsUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8837899541977019574.post-16983176057558266272011-11-15T09:53:13.224+01:002011-11-15T09:53:13.224+01:00Hmm - you've got a point... I'll think a l...Hmm - you've got a point... I'll think a little about it and try from a different angle.Lars Fosdalhttps://www.blogger.com/profile/05635001623287214775noreply@blogger.comtag:blogger.com,1999:blog-8837899541977019574.post-26708253494814266692011-11-14T17:21:37.113+01:002011-11-14T17:21:37.113+01:00Dynamic jump tables: still a set, not a sort. ;)Dynamic jump tables: still a set, not a sort. ;)dthorpehttps://www.blogger.com/profile/00761839989639689964noreply@blogger.comtag:blogger.com,1999:blog-8837899541977019574.post-47471070371016565522011-11-10T00:06:33.216+01:002011-11-10T00:06:33.216+01:00Aye, it is a poor example. I'll provide a bet...Aye, it is a poor example. I'll provide a better one. <br /><br />This actually was an old draft post, and it appear to me that I haven't quite completed my train of thought here. My need at the time was related to creating jump tables for handling data streams, partly statically defined at compile time, but revised at run time.Lars Fosdalhttps://www.blogger.com/profile/05635001623287214775noreply@blogger.comtag:blogger.com,1999:blog-8837899541977019574.post-70771744653664956262011-11-09T17:49:26.071+01:002011-11-09T17:49:26.071+01:00Your syntax is for sorting, but your use cases are...Your syntax is for sorting, but your use cases are all about set operations. Set operations do not require sorting - sets do require some manner of precomputing, but not display sequence ordering. Its best not to impose an implementation on the interface.<br /><br />If you want presorted data, change your use case to show why this would be useful and how you would deal with locale and localization issues.<br /><br />If you want set operations on arrays or vectors, lose the "ordered" syntax and just extend the existing "set of" syntax.dthorpehttps://www.blogger.com/profile/00761839989639689964noreply@blogger.com