Re: [Factor-talk] Factor packaging for Ubuntu
Yes! Now there's a Utopic package there too. 2014-11-26 12:00 GMT+01:00 Andrea Ferretti ferrettiand...@gmail.com: Would it be possible to add a package for Ubuntu 14.10? 2014-11-25 19:39 GMT+01:00 John Porubek jporu...@gmail.com: On Sat, Nov 22, 2014 at 11:35 AM, Björn Lindqvist bjou...@gmail.com wrote: I have just now created new packages for Ubuntu trusty and precise, based on the git version, which you can download from the same place as below. It's not a release version, but it works well enough for me. Just remember that you need to type factor-lang to run factor. This just showed up in Update Manager on my Ubuntu 12.04 LTS system and installed without a hitch. I especially appreciate that it shows the version info. in both the gui and console invocations. Thanks Björn for your efforts in creating this. -John -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- mvh/best regards Björn Lindqvist -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Factor packaging for Ubuntu
Great, thanks! Il giorno 29/nov/2014 10:38, Björn Lindqvist bjou...@gmail.com ha scritto: Yes! Now there's a Utopic package there too. 2014-11-26 12:00 GMT+01:00 Andrea Ferretti ferrettiand...@gmail.com: Would it be possible to add a package for Ubuntu 14.10? 2014-11-25 19:39 GMT+01:00 John Porubek jporu...@gmail.com: On Sat, Nov 22, 2014 at 11:35 AM, Björn Lindqvist bjou...@gmail.com wrote: I have just now created new packages for Ubuntu trusty and precise, based on the git version, which you can download from the same place as below. It's not a release version, but it works well enough for me. Just remember that you need to type factor-lang to run factor. This just showed up in Update Manager on my Ubuntu 12.04 LTS system and installed without a hitch. I especially appreciate that it shows the version info. in both the gui and console invocations. Thanks Björn for your efforts in creating this. -John -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- mvh/best regards Björn Lindqvist -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Output parameters in alien
Thank you! I am away now, but I will try all of your solutions on monday! :-) 2014-11-28 22:30 GMT+01:00 Jon Harper jon.harpe...@gmail.com: After investigating a bit, it might be possible? If someone more knowledgeable about the ffi could comment on the following: FUNCTION: char* strcpy ( char * , c-string ) ; : foo ( -- ) { { { char 2 } initial: B{ 0x41 0 } } } [ B strcpy drop ] with-out-parameters utf8 alienstring print ; : bar ( -- ) { { { char 2 } initial: B{ 0x41 0 } } } [ drop ] with-out-parameters utf8 alienstring print ; foo ! prints B bar ! prints A If there is no syntactic sugar yet for passing strings with with-out-parameters, it might be interesting to add it I guess PS: typed this manually, sorry if there are typos :) Jon Le 28 nov. 2014 20:43, Jon Harper jon.harpe...@gmail.com a écrit : John provided an alternative, but here are the explanations of the errors you got: On Fri, Nov 28, 2014 at 5:14 PM, Andrea Ferretti ferrettiand...@gmail.com wrote: { { c-string } } [ hello world swap example_cp ] with-out-parameters The syntax of with-out-parameters is an array of elements, which are either a c-type, or a triple { c-type intial: value }. So in your case, it should have been { c-string } [ hello world swap example_cp ] with-out-parameters I get index out of bounds: 0 which seems reasonable, since I pass an empty c-string. But if I try something like { { c-string initial: hello earth } } [ hello world swap example_cp ] with-out-parameters I get local-allocation-error. The FFI only works with the optimizing compiler, so this code should be defined in a word, not run in the interactive listener. You can define the word in a source file, or directly in the listener and then call it just after you defined it Cheers, Jon -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk