Re: [Factor-talk] some code for a file explorer

2013-12-11 Thread bidon12345
Hi John,

cool, I'll try and get something ready asap.

Best,

Manuel


Quoting John Benediktsson mrj...@gmail.com:

 Hi Manuel,

 When you get this working, even as just a demo, it might be nice to include
 in the Factor repository.

 Best,
 John.


 On Sat, Dec 7, 2013 at 8:09 AM, bidon12...@free.fr wrote:

  Hi Jon,
 
  thanks again !
 
  It is good that it is so simple. I obviously still have plenty to learn...
 
  Bye,
 
  Manuel
 
  Quoting Jon Harper jon.harpe...@gmail.com:
 
   Hi Manuel,
   add-connection is used to implement new controls. If you wanted to
  display
   the current selection in another window, then just creating a
  label-control
   from the selection model would be enough: the label-control gadget calls
   add-connection and activate-model on its own.
  
   Also, models and control are most useful when you want a computation (for
   example UI update) done every time the data changes (through
   add-connection). Also they implement some kind of laziness because some
   computations are only done if an observer has activated the model (for
   control gadget, this is done when they are visible on screen, through
   activate-model).
  
   For just copying the data when the user presses the select button you
  don't
   need the features of models. You can just grab the value of the
  selection
   model at the time the user clicks the button.
  
   How about having the same behavior when the select button is clicked as
   when enter is pressed or when double clicking a row ? The following diff
   passes a reference of the table to the quotation called by the button and
   executes row-action on it:
   http://paste.factorcode.org/paste?id=3120#1420
  
   Cheers,
   Jon
  
 
 
 
 
 
 --
  Sponsored by Intel(R) XDK
  Develop, test and display web and hybrid apps with a single code base.
  Download it for free now!
 
 
 http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
  ___
  Factor-talk mailing list
  Factor-talk@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/factor-talk
 




--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Presentation and installation issues on Slackware64-14.1 Linux

2013-12-11 Thread Björn Lindqvist
Hi Luis,

2013/12/10 Luis P. Mendes luisl...@gmail.com:
 Here are some benchmarks (posted by the author of Factor?) comparing
 Factor against V8, LuaJIT, SBCL, and CPython:

 http://factor-language.blogspot.com/2010/05/comparing-factors-performance-against.html
 http://shootout.alioth.debian.org/ contains more benchmarks for more
 programming languages(including C++).

 I know about http://shootout.alioth.debian.org/, but Factor is not one
 of the languages being compared.

I believe Factor does very well in various benchmarks. Factor code is
not run inside of a VM, like Python or Java (which has a JIT, yes) and
is instead compiled to native machine code so it has the potential to be
very fast.

But it really isn't that important. Factor's Alien library makes it very
easy to write cross-platform wrappers for shared libraries. It's
analoguous to ctypes in Python but better. So in a large project it
would be trivial to write the most performance intensive functions in C
and the rest of the application in Factor.

Factor already comes with a wrapper for BLAS if you need fast numerical
computation, for example.

 After some more digging into the language, Factor does really feel
 like a very good language.  But after some more searching, in
 http://planet.factorcode.org/  and the blogs pointed there, I come to
 realize that it seems that developers don't earn their living using
 Factor, except maybe for Slava Pestov.  There are some C++, Java, and
 some discussions about incursions in other languages like Self.
 So, my question is this:  is Factor really meant to be used in real
 world business applications? Do developers and main contributors
 really believe in this possibility?

I'm just a Factor newbie, but sure why not? Right now, not many people
use Factor because it is not marketed much and it still has some minor
blemishes. Many people like functional programming which Factor excels
at so I think it would be possible that more people will become
interested in it.


--
mvh/best regards Björn Lindqvist

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk