DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [FBSL] LZO compressor  (Read 7,591 times)

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
[FBSL] LZO compressor
« on: October 01, 2006, 01:39 PM »
Hello,

Here is a simple demonstration of native LZO engine compression/decompression implemented into FBSL.
Enjoy!

Code: (fbsl)
#Option Explicit
#AppType Console

'// ****************************************************************************
'// Simple demonstration of native LZO engine compression/decompression implemented into FBSL
'// Author : Gerome GUILLEMIN
'// Date : 1st of October 2006
'// ****************************************************************************
Dim buff, fp

Print "LZO compress..."
buff = Compress(FileLoad(".\18 - Wedding idea.mp3"))

If buff <> "" Then
	fp = FileOpen(".\compressed.lzo", BINARY_NEW)
	If fp Then
		FilePut(fp, buff)
		FileClose(fp)
	End If
End If
Clear buff
fp = NULL
Pause

Print "LZO decompress..."
buff = Decompress(FileLoad(".\compressed.lzo"))
If buff <> "" Then
	fp = FileOpen(".\decompressed.mp3", BINARY_NEW)
	If fp Then
		FilePut(fp, buff)
		FileClose(fp)
	End If
End If
Clear buff
fp = NULL
Pause
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: [FBSL] LZO compressor
« Reply #1 on: October 01, 2006, 02:29 PM »
I'd like a copy of the FBSL source code, please.
- carpe noctem

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
Re: [FBSL] LZO compressor
« Reply #2 on: October 01, 2006, 04:25 PM »
Hello,
I'd like a copy of the FBSL source code, please.

Sorry, FBSL source code is shared between the 3 FBSL developpers.
It won't be shared publicly.
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: [FBSL] LZO compressor
« Reply #3 on: October 01, 2006, 04:26 PM »
So, you've got a special non-GPL license for LZO? :)
- carpe noctem

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
Re: [FBSL] LZO compressor
« Reply #4 on: October 01, 2006, 04:33 PM »
So, you've got a special non-GPL license for LZO? :)

WTF ?
I don't see the problem here ?
I'm not obliged to publish sources of FBSL, nor the official mini LZO sources since i've NOT modified its source code.
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: [FBSL] LZO compressor (GPL is viral and evil, kthx)
« Reply #5 on: October 01, 2006, 04:46 PM »
Section 0 of the GPL, with my emphasis:
Quote
The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another
language.

Section 2b of the GPL, again with my emphasis:
Quote
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.

And the viral nature of the GPL is cemented with this clause:
Quote
These requirements apply to the modified work as a whole.  If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.

You might also want to check out the GPL faq, I'll quote a pretty relevant part of it right here:
Quote
Q: If a library is released under the GPL (not the LGPL), does that mean that any program which uses it has to be under the GPL?
A: Yes, because the program as it is actually run includes the library.
- carpe noctem

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
Re: [FBSL] LZO compressor
« Reply #6 on: October 01, 2006, 04:56 PM »
And i repeat : FBSL source code is NOT public.
And there are tons of softwares that uses part of GPL or alike sources where their sources are not publicly released and won't be released.
That's all!
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)
« Last Edit: October 01, 2006, 04:58 PM by Gerome »

Original address: https://www.donationcoder.com/forum/index.php?topic=5553.0