LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices


Uncategorized Entries with no category
Old

Hashing for ID generation (hash32_enum algorithm and ASM)

Posted 12-24-2012 at 10:45 AM by rainbowsally

You're not going to get fool-proof uniqueness from a 32 bit hash, but this one gets pretty close.

[cont'd from previous blog entry where the C/C++ version can be seen (and tested). http://www.linuxquestions.org/questi...-lists-35223/]

If you're curious about what the hash32_enum thing in the previous blog entry would look like in assembler, this is the output using the --save-temps gcc flag.

Code:
;
...
Member
Posted in Uncategorized
Views 376 Comments 0 rainbowsally is offline
Old

STL Template Experiment (Lists)

Posted 12-24-2012 at 10:24 AM by rainbowsally
Updated 08-06-2014 at 09:00 AM by rainbowsally (added link, grammar error, makefile line correction)

We've resurrected some dead code that was pretty ugly but the only worse MESS (officially sanctioned, no less) than STL that we've ever seen is the spaghetti in lex/flex output. -- The Computer Mad Science Dept.

So...

Now what?

Well...

...what would ANY good Computer Mad Scientist do in a situation like this?

Today's features are
  • Creating lists using the std::list STL template.
  • Identifying the critical 'operators'
...
Member
Posted in Uncategorized
Views 940 Comments 1 rainbowsally is offline
Old

More (Generic) Tools

Posted 12-20-2012 at 08:08 PM by rainbowsally
Updated 12-20-2012 at 08:48 PM by rainbowsally (bum code)

More (Generic) Tools

Behind the scenes, some of the more complex tools are getting incorporated into lq-qt-mc2. Should have an upload in a day or two. lq-find will kock your socks off.. now tuned up and ready for the big time. :-) v. 3.0.14 coming soon.

Today's Features
  • Create a shortcut with a shortcut icon, directories - OK!
  • Another new.<utility> using the mc2 extras demo (env-replace)
  • Revisiting the utility to create a self extractor using base64
...
Member
Posted in Uncategorized
Views 635 Comments 0 rainbowsally is offline
Old

More Tooling Up Stuff

Posted 12-19-2012 at 11:52 AM by rainbowsally
Updated 08-06-2014 at 09:30 AM by rainbowsally (skip rant, typo correction)

About the commandline

Today's features:
  • Why the commandline rocks and GUI apps have rocks in their heads at times.

You can skip this somewhat rambling rant by going down to "CONTINUE" below.

[Note for KDE users: Konqueror has a nice konsole terminal that can be opened with F4. It's much MUCH better than Dolphin, if you're a programmer. See recent blog including 'launch' and shell-exec if you have trouble executing these files when you click on them...
Member
Posted in Uncategorized
Views 392 Comments 0 rainbowsally is offline
Old

An STL Template Experiment

Posted 12-18-2012 at 05:05 PM by rainbowsally

Today's features:
  • Getting an address of an iterator from stl.
  • Creating a foreach() macro.
  • A couple of ways to work around unwanted C++ compiler warnings.

STL is a freaking nighmare to trace in a debugger so it's not too easy to tell what goes on in them but one thing became quite clear and that is that iterators are generic pointer types internally, which makes sense since STL needs to deal with so many different types.

Here's a little test to play with to show how...
Member
Posted in Uncategorized
Views 536 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 07:37 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration