Author Topic: LOL  (Read 5351 times)

0 Members and 1 Guest are viewing this topic.

jack

  • Guest
LOL
« on: April 18, 2015, 10:41:09 PM »
LOL Software that is. http://lolengine.net/wiki
have a look at the blogs http://lolengine.net/blog I find them instructive and amusing.

JRS

  • Guest
Re: LOL
« Reply #1 on: April 18, 2015, 10:47:56 PM »
I have the same humorous experience as visiting the BP.org site. (connecting forever)  :o

Mike Lobanovsky

  • Guest
Re: LOL
« Reply #2 on: April 18, 2015, 11:04:01 PM »
John, that's how it is for LOL with Mozilla FF and Opera (connecting forever). Chrome connects instantly.

BP.org is however unreachable for any browser I have.

Aurel

  • Guest
Re: LOL
« Reply #3 on: April 18, 2015, 11:22:05 PM »
Quote
BP.org is however unreachable for any browser I have.
use Dillo   :D

anyway there are some interesting stuff on that site:


.

Mike Lobanovsky

  • Guest
Re: LOL
« Reply #4 on: April 18, 2015, 11:45:55 PM »
Honestly, I'm totally anaware of what I could do with such a function in my own source code...

JRS

  • Guest
Re: LOL
« Reply #5 on: April 19, 2015, 12:01:16 AM »
Careful, Aurel has limited resources to torment people so he might seem a bit frisky.

Mike Lobanovsky

  • Guest
Re: LOL
« Reply #6 on: April 19, 2015, 12:12:45 AM »
I think it's harmless enough for me to ask. We're currently in a sort of armistice on account of pending collaboration to introduce some minor mods to his Ruben project. :)

JRS

  • Guest
Re: LOL
« Reply #7 on: April 19, 2015, 12:22:08 AM »
We all have been waiting for Ruben to mature and be something other than his self proclaimed toy.

Mike Lobanovsky

  • Guest
Re: LOL
« Reply #8 on: April 19, 2015, 01:09:48 AM »
Only if it's Aurel's intended goal. He might as well be just fooling around enjoying his time with the rest of us. I don't see anything criminal in it as long as he stays cheerful, positive, benevolent, and tolerant. And abstains from using the dirtiest Chroatian obscenities in public, of course. ;)

Charles Pegge

  • Guest
Re: LOL
« Reply #9 on: April 19, 2015, 02:10:44 AM »
Hash generators:

I use this one in OxygenBasic
FreeBasic
Code: [Select]
'------------------------------------
function hashcode(s as string) as sys
'====================================
dim as sys le=len(s),h=&h35db53bd,i=1
dim as byte ptr p=strptr(s)
for i=1 to le
  h=(h shl 1)xor(*p)
  p+=1
next
return h
end function

Oxygen equiv
Code: OxygenBasic
  1. '---------------------------------
  2. function hashcode(string s) as sys
  3. '=================================
  4. sys le=len(s),h=&h35db53bd,i
  5. byte * p=strptr s
  6. for i=1 to le
  7.   h=(h << 1) xor p
  8.   @p++
  9. next
  10. return h
  11. end function
  12.  

Mike Lobanovsky

  • Guest
Re: LOL
« Reply #10 on: April 19, 2015, 02:21:52 AM »
No no Charles,

I'm not questioning the importance of hash algos! :)

It's just that I can't think up a case when I would need an inline hash function that the compiler itself would use at compile time to substitute the function body with the hash of the string hardcoded into that function... :o

Charles Pegge

  • Guest
Re: LOL
« Reply #11 on: April 19, 2015, 05:03:05 AM »
It's better as a macro, since it is only used twice: during store and find.

Inline assembler: only a few bytes.

Code: OxygenBasic
  1.   addr ecx,s
  2.   mov edx,&h35db53bd
  3.   (
  4.     mov al,[ecx]
  5.     cmp al,0
  6.     jz exit
  7.     rol edx,1 'rotate left
  8.    xor dl,al
  9.     inc ecx
  10.     repeat
  11.   )
  12.  
« Last Edit: April 19, 2015, 05:43:37 AM by Charles Pegge »

Aurel

  • Guest
Re: LOL
« Reply #12 on: April 19, 2015, 09:16:09 AM »
..it is not a toy it is EXPERIMENT  ;D
next shift

.

JRS

  • Guest
Re: LOL
« Reply #13 on: April 19, 2015, 10:10:44 AM »
On a positive note, Aurel came through with an interpreter in O2 when all my efforts to get Eros to convert ThinBasic failed. The important thing for the O2 project is to have as many project variations as possible using OxygenBasic to flush out bugs.

Aurel

  • Guest
Re: LOL
« Reply #14 on: April 19, 2015, 11:51:51 AM »
Quote
when all my efforts to get Eros to convert ThinBasic failed.
well what to say...
thinBasic ..simply is not unique enough,looks to much like child of PowerBasic
with addition of TBGL.
From the other side DLib is created with PureBasic but have unique style
(even ..syntax is close to pureBasic- what i don't like to much)
ahh....