tag:blogger.com,1999:blog-5246987755651065286.post4499621599051767188..comments2024-02-22T16:15:42.388-08:00Comments on cbloom rants: 02-18-14 - Understanding ANS - Conclusioncbloomhttp://www.blogger.com/profile/10714564834899413045noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5246987755651065286.post-22144513027555042102014-03-28T14:41:47.535-07:002014-03-28T14:41:47.535-07:00I'd love to do nice open source versions of lo...I'd love to do nice open source versions of lots of stuff. (LZ-ANS anyone?) But I just don't have free time and noone is paying me to do it.<br /><br />I think it should be pretty easy though. I would just take the core functions and only port those. (you don't need string or fileenum)<br /><br />vector_s can be replaced with just a C array and a 'size' variable.<br /><br />cb::sum is trivial<br /><br />check_value_cast can be replaced with static_cast<br /><br />You have to use STL or write a heap.<br /><br />etc.<br />cbloomhttps://www.blogger.com/profile/10714564834899413045noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-34606256613167412292014-03-28T11:16:27.583-07:002014-03-28T11:16:27.583-07:00Is there any chance to have or build a "reduc...Is there any chance to have or build a "reduced dependency" version of fast ANS ?<br /><br />I'm trying to get your code included into an open source portable program, but the amount of dependency with cblib is quite deep (and afaik cblib is only for Windows).Cyanhttps://www.blogger.com/profile/02905407922640810117noreply@blogger.comtag:blogger.com,1999:blog-5246987755651065286.post-29463234743821742682014-02-18T16:01:23.214-08:002014-02-18T16:01:23.214-08:00I've tried to compile your project, but so far...I've tried to compile your project, but so far no luck. GCC complains about a missing crtdef.h, so I believe it means it must be compiled using MSVC.<br /><br />But MSVC has problem too. I'm using VS 2012 express. Here is the "debug" output ("release" is a lot more worse)<br /><br />1>------ Début de la génération : Projet : ans, Configuration : Debug x64 ------<br />1> ans_fast.cpp<br />1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xtgmath.h(86): error C2244: 'cb::acos_asserting' : impossible de faire correspondre la définition de fonction avec une déclaration existante<br />1> c:\my program files\dev\compression\entropy\bloom\ans\cblib/FloatUtil.h(964) : voir la déclaration de 'cb::acos_asserting'<br />1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xtgmath.h(87): error C2244: 'cb::asin_asserting' : impossible de faire correspondre la définition de fonction avec une déclaration existante<br />1> c:\my program files\dev\compression\entropy\bloom\ans\cblib/FloatUtil.h(963) : voir la déclaration de 'cb::asin_asserting'<br />1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xtgmath.h(105): error C2244: 'cb::sqrt_asserting' : impossible de faire correspondre la définition de fonction avec une déclaration existante<br />1> c:\my program files\dev\compression\entropy\bloom\ans\cblib/FloatUtil.h(962) : voir la déclaration de 'cb::sqrt_asserting'<br />========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ==========<br />Cyanhttps://www.blogger.com/profile/02905407922640810117noreply@blogger.com