Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 1 participants
- 144619 messages
Re: [Pharo-project] Fwd: About SPDF
by Stéphane Ducasse
Hi christian
> I dont think that this is so easy.
>
> My product smallCharts uses the PDF implementation as its primary vector graphics output format - I rely on it.
>
> What I want is to make the implementation of the spec available to the community. And I would like others to use it and maybe contribute to some of the many uncovered areas of the spec (pixmaps, encryption to name a few)
> But I dont want to lose control. I dont like several incompatible development streams for different dialects.
Well you will have to pay the price for that: make sure that you do not rely on VW specific behavior.
Build a decent VW exporter (to me it is easier to work in pharo and export in VW but I may be wrong).
See below
> And I would like to integrate contributions myself.
What you can do is have a look at what people are doing, but do you have the time for that if you do not have the time to export it to pharo?
Do you have tests?
> One way to do this is to have the primary implementation in VisualWorks and a reliable, not too intrusive way of exporting it to other dialects. If such an export mechanism would be available, I could do that.
You have a simple squeak format exporter that we patched (:= instead of _) and use for one shot export when we migrate our old Moose library
but this is not like you can click and load in pharo and it works if the code was not develop with that in mind and even there I do not know.
Now what would be the license of your code?
> But I dont have time to develop one.
>
> Any thoughts about such a procedure?
Why you do not ask people to help and port it. Then using packages you may control the addition in another package
and when this is stable enough in pharo you get it in VW.
Now in any case if you publish it under MIT/BSD/Apache anybody can just fork it and create another stream. May be there are other licenses.
now I think that licenses can be a mess and you can just lose time with them. So it is up to you.
For me I would like to have a good PDF outputer and I imagine that it requires work like with anything that requires a bit of effort
so joining forces is always a good situation. Because we are a tiny community.
What you can also play is
- let your version grow and get good in pharo, cherry pick what you want for VW,
- it gives you the time to see on one day you want to reuse for projects in pharo because with Cog I imagine that some people may be interested
by pharo for their dev even if not everything can be reduced to speed. :)
Stef
>
> Christian
>
>> -----Ursprüngliche Nachricht-----
>> Von: pharo-project-bounces(a)lists.gforge.inria.fr
>> [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
>> Auftrag von Miguel Enrique Cobá MartÃnez
>> Gesendet: Samstag, 28. August 2010 19:31
>> An: Pharo-project(a)lists.gforge.inria.fr
>> Betreff: Re: [Pharo-project] Fwd: About SPDF
>>
>> El sáb, 28-08-2010 a las 18:42 +0200, Christian Haider escribió:
>>> I have a Smalltalk only (with help of zlib) implementation
>> of PDF (1.7) in VisualWorks.
>>>
>>> I'd love to have a port for Pharo but not the time to do it...
>>>
>>> I thought of releasing it as open source.
>>
>> Please do it, and with MIT license would be perfect because it will
>> avoid a lot of problems in the future.
>>
>> Either publish it as a file out in your page or in a mail, or create a
>> project in squeaksource with read or read/write access for
>> everyone and
>> someone will jump and will work out the porting to pharo.
>>
>> The main thing is to let the code out as MIT and then
>> everything will be
>> easy.
>>
>> Thanks
>>
>>>
>>> Ideas? Need?
>>>
>>> Cheers,
>>> Christian
>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: pharo-project-bounces(a)lists.gforge.inria.fr
>>>> [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
>>>> Auftrag von Torsten Bergmann
>>>> Gesendet: Mittwoch, 25. August 2010 08:31
>>>> An: pharo-project(a)lists.gforge.inria.fr
>>>> Betreff: [Pharo-project] Fwd: About SPDF
>>>>
>>>>> Hehe, too much legal terms to me.....What we could do?
>> Can modify,
>>>>> create a new package, etc?
>>>>
>>>> The license of SPDF was not open enough for me in the past - thats
>>>> why I created the binding to the Haru PDF Library:
>>>>
>>>> http://www.squeaksource.com/HPDF.html
>>>> http://libharu.sourceforge.net
>>>>
>>>> This requires FFI and an external shared library.
>>>>
>>>> If you want to have a Smalltalk only solution I think
>>>> you have to digg in the PDF spec and write an own. Assumed
>>>> you have lots of time to spend on bits and bytes and
>>>> writing nice unit tests for PDF streams.
>>>>
>>>> Similar to iText for Java, this allows you change the
>>>> license and block your government later ;), see the story
>>>> of Bruno Lowagie [1]
>>>>
>>>> There are also other PDF alternatives beside HPDF and
>> SPDF (see [2])
>>>>
>>>> Bye
>>>> Torsten
>>>>
>>>>
>>>> [1]
>>>> http://techcrunch.com/2009/05/20/open-source-developer-intends
>>>> -to-block-belgian-government-from-using-his-technology-over-ta
>>> x-dispute/
>>>> [2] http://www.seaside.st/documentation/pdfs
>>>>
>>>>
>>>>
>>>> --
>>>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
>>>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> Pharo-project(a)lists.gforge.inria.fr
>>>>
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> --
>> Miguel Cobá
>> http://miguel.leugim.com.mx
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Aug. 28, 2010
Re: [Pharo-project] Fwd: About SPDF
by Christian Haider
I dont think that this is so easy.
My product smallCharts uses the PDF implementation as its primary vector graphics output format - I rely on it.
What I want is to make the implementation of the spec available to the community. And I would like others to use it and maybe contribute to some of the many uncovered areas of the spec (pixmaps, encryption to name a few).
But I dont want to lose control. I dont like several incompatible development streams for different dialects. And I would like to integrate contributions myself.
One way to do this is to have the primary implementation in VisualWorks and a reliable, not too intrusive way of exporting it to other dialects. If such an export mechanism would be available, I could do that. But I dont have time to develop one.
Any thoughts about such a procedure?
Christian
> -----Ursprüngliche Nachricht-----
> Von: pharo-project-bounces(a)lists.gforge.inria.fr
> [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
> Auftrag von Miguel Enrique Cobá MartÃnez
> Gesendet: Samstag, 28. August 2010 19:31
> An: Pharo-project(a)lists.gforge.inria.fr
> Betreff: Re: [Pharo-project] Fwd: About SPDF
>
> El sáb, 28-08-2010 a las 18:42 +0200, Christian Haider escribió:
> > I have a Smalltalk only (with help of zlib) implementation
> of PDF (1.7) in VisualWorks.
> >
> > I'd love to have a port for Pharo but not the time to do it...
> >
> > I thought of releasing it as open source.
>
> Please do it, and with MIT license would be perfect because it will
> avoid a lot of problems in the future.
>
> Either publish it as a file out in your page or in a mail, or create a
> project in squeaksource with read or read/write access for
> everyone and
> someone will jump and will work out the porting to pharo.
>
> The main thing is to let the code out as MIT and then
> everything will be
> easy.
>
> Thanks
>
> >
> > Ideas? Need?
> >
> > Cheers,
> > Christian
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: pharo-project-bounces(a)lists.gforge.inria.fr
> > > [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
> > > Auftrag von Torsten Bergmann
> > > Gesendet: Mittwoch, 25. August 2010 08:31
> > > An: pharo-project(a)lists.gforge.inria.fr
> > > Betreff: [Pharo-project] Fwd: About SPDF
> > >
> > > >Hehe, too much legal terms to me.....What we could do?
> Can modify,
> > > >create a new package, etc?
> > >
> > > The license of SPDF was not open enough for me in the past - thats
> > > why I created the binding to the Haru PDF Library:
> > >
> > > http://www.squeaksource.com/HPDF.html
> > > http://libharu.sourceforge.net
> > >
> > > This requires FFI and an external shared library.
> > >
> > > If you want to have a Smalltalk only solution I think
> > > you have to digg in the PDF spec and write an own. Assumed
> > > you have lots of time to spend on bits and bytes and
> > > writing nice unit tests for PDF streams.
> > >
> > > Similar to iText for Java, this allows you change the
> > > license and block your government later ;), see the story
> > > of Bruno Lowagie [1]
> > >
> > > There are also other PDF alternatives beside HPDF and
> SPDF (see [2])
> > >
> > > Bye
> > > Torsten
> > >
> > >
> > > [1]
> > > http://techcrunch.com/2009/05/20/open-source-developer-intends
> > > -to-block-belgian-government-from-using-his-technology-over-ta
> > x-dispute/
> > > [2] http://www.seaside.st/documentation/pdfs
> > >
> > >
> > >
> > > --
> > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> > >
> > > _______________________________________________
> > > Pharo-project mailing list
> > > Pharo-project(a)lists.gforge.inria.fr
> > >
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> > >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> --
> Miguel Cobá
> http://miguel.leugim.com.mx
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
Aug. 28, 2010
Re: [Pharo-project] Fwd: About SPDF
by Miguel Enrique Cobá MartÃnez
El sáb, 28-08-2010 a las 18:42 +0200, Christian Haider escribió:
> I have a Smalltalk only (with help of zlib) implementation of PDF (1.7) in VisualWorks.
>
> I'd love to have a port for Pharo but not the time to do it...
>
> I thought of releasing it as open source.
Please do it, and with MIT license would be perfect because it will
avoid a lot of problems in the future.
Either publish it as a file out in your page or in a mail, or create a
project in squeaksource with read or read/write access for everyone and
someone will jump and will work out the porting to pharo.
The main thing is to let the code out as MIT and then everything will be
easy.
Thanks
>
> Ideas? Need?
>
> Cheers,
> Christian
>
> > -----Ursprüngliche Nachricht-----
> > Von: pharo-project-bounces(a)lists.gforge.inria.fr
> > [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
> > Auftrag von Torsten Bergmann
> > Gesendet: Mittwoch, 25. August 2010 08:31
> > An: pharo-project(a)lists.gforge.inria.fr
> > Betreff: [Pharo-project] Fwd: About SPDF
> >
> > >Hehe, too much legal terms to me.....What we could do? Can modify,
> > >create a new package, etc?
> >
> > The license of SPDF was not open enough for me in the past - thats
> > why I created the binding to the Haru PDF Library:
> >
> > http://www.squeaksource.com/HPDF.html
> > http://libharu.sourceforge.net
> >
> > This requires FFI and an external shared library.
> >
> > If you want to have a Smalltalk only solution I think
> > you have to digg in the PDF spec and write an own. Assumed
> > you have lots of time to spend on bits and bytes and
> > writing nice unit tests for PDF streams.
> >
> > Similar to iText for Java, this allows you change the
> > license and block your government later ;), see the story
> > of Bruno Lowagie [1]
> >
> > There are also other PDF alternatives beside HPDF and SPDF (see [2])
> >
> > Bye
> > Torsten
> >
> >
> > [1]
> > http://techcrunch.com/2009/05/20/open-source-developer-intends
> > -to-block-belgian-government-from-using-his-technology-over-ta
> x-dispute/
> > [2] http://www.seaside.st/documentation/pdfs
> >
> >
> >
> > --
> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
Miguel Cobá
http://miguel.leugim.com.mx
Aug. 28, 2010
Re: [Pharo-project] Fwd: About SPDF
by Christian Haider
I have a Smalltalk only (with help of zlib) implementation of PDF (1.7) in VisualWorks.
I'd love to have a port for Pharo but not the time to do it...
I thought of releasing it as open source.
Ideas? Need?
Cheers,
Christian
> -----Ursprüngliche Nachricht-----
> Von: pharo-project-bounces(a)lists.gforge.inria.fr
> [mailto:pharo-project-bounces@lists.gforge.inria.fr] Im
> Auftrag von Torsten Bergmann
> Gesendet: Mittwoch, 25. August 2010 08:31
> An: pharo-project(a)lists.gforge.inria.fr
> Betreff: [Pharo-project] Fwd: About SPDF
>
> >Hehe, too much legal terms to me.....What we could do? Can modify,
> >create a new package, etc?
>
> The license of SPDF was not open enough for me in the past - thats
> why I created the binding to the Haru PDF Library:
>
> http://www.squeaksource.com/HPDF.html
> http://libharu.sourceforge.net
>
> This requires FFI and an external shared library.
>
> If you want to have a Smalltalk only solution I think
> you have to digg in the PDF spec and write an own. Assumed
> you have lots of time to spend on bits and bytes and
> writing nice unit tests for PDF streams.
>
> Similar to iText for Java, this allows you change the
> license and block your government later ;), see the story
> of Bruno Lowagie [1]
>
> There are also other PDF alternatives beside HPDF and SPDF (see [2])
>
> Bye
> Torsten
>
>
> [1]
> http://techcrunch.com/2009/05/20/open-source-developer-intends
> -to-block-belgian-government-from-using-his-technology-over-ta
x-dispute/
> [2] http://www.seaside.st/documentation/pdfs
>
>
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
Aug. 28, 2010
Re: [Pharo-project] about ValueAdapter
by Stéphane Ducasse
On Aug 28, 2010, at 5:57 PM, Schwab,Wilhelm K wrote:
> Stef,
>
> I can build adapters easily enough, but the cool examples depend on a framework of which they are a very tiny part. Again, my immediate message is:
>
> (1) date and time to/from text conversions need to be somehow format specific; Dolphin solves that using a type converter hierarchy, and I have a very crude implementation of it for Pharo
>
> (2) Squeak's coercion of strings to numbers is probably a result of a failure to recognize the need for type converters.
>
> (3) my gradually evolving MVP framework will include type converters and value adapters.
I would really like to have a MVP framework.
>
> Bill
>
>
>
>
> ________________________________________
> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
> Sent: Saturday, August 28, 2010 2:45 AM
> To: Pharo-project(a)lists.gforge.inria.fr
> Subject: Re: [Pharo-project] about ValueAdapter
>
> On Aug 27, 2010, at 11:50 PM, Schwab,Wilhelm K wrote:
>
>> Stef,
>>
>> Re survival, I might have been concerned about possible poor behavior of the methods you mention, or that you might soon remove then in cleaning. I really don't remember.
>
> on base classes we want have better library and we pay attention that they do not impact people.
>
>
>> I will indeed present the adapters as part of a larger whole.
>
> focus on one and make it shine people at good at generalization when provided with a nice example.
>
>> That will take time to evolve though. I think some of what we see in Squeak is the result of a failure to separate the related problems into pieces with clear responsibilities.
>>
>> Bill
>>
>>
>> ________________________________________
>> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
>> Sent: Friday, August 27, 2010 3:23 PM
>> To: Pharo-project(a)lists.gforge.inria.fr
>> Subject: Re: [Pharo-project] about ValueAdapter
>>
>> On Aug 27, 2010, at 4:46 PM, Schwab,Wilhelm K wrote:
>>
>>> Stef,
>>>
>>> Got it - I thought you might have meant something completely different. For example, I had a really cool #printOn: method that I had to suppress because the inspector was parsing the text and changing things as a result - arrrrggggGGGGGG!!!!! :)
>>>
>>> Re other methods in the image. My goal was to be as data driven (off of the format) as possible and to get specific things working quickly. Mostly the latter; I just needed a few types of date and time conversions to work, and to work the same way they did when the code ran in Dolphin.
>>>
>>> Even if I had looked around, there are always questions: does it work at all, does it work well, will it survive the next sprint?
>>
>> what will survive?
>>
>>
>>> You are doing a wonderful job, so please don't take that as anything negative. Of course, more tests will allow you to clean freely and immediately note that something was critical to the adpaters.
>>>
>>> Another thing to note, we are under the ValueAdapter thread, but dates and times really fall under type converters. Of course, converters and adapters often work together. A model understands #bodyWeight; a text editor understands #value, and a converter can sit between them to turn the editor's (text) value into a float for the model. It is nice pluggable/serializable stuff that probably makes the most sense in the context of view resources, whether they are saved in binary or not. The 30k ft view is probably to encourage composition rather than to force inheritance. Closures help us. Doing our graphics in Smalltalk can help or hurt, because we can freely change the widgets as needed, which is both valuable freedom and a crutch that can compensate for inflexible design.
>>
>> My suggestion is the following.
>> Show us that this is cool with a nice example. Code is a good value for not native english speakers.
>>
>> Stef
>>
>>>
>>> Bill
>>>
>>>
>>> ________________________________________
>>> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
>>> Sent: Friday, August 27, 2010 9:07 AM
>>> To: Pharo-project(a)lists.gforge.inria.fr
>>> Subject: Re: [Pharo-project] about ValueAdapter
>>>
>>> there are a lot of methods to print time and date as well as number and I thought that your adaptor would benefit from them.
>>>
>>> Stef
>>>
>>> On Aug 27, 2010, at 1:49 PM, Schwab,Wilhelm K wrote:
>>>
>>>> Stef,
>>>>
>>>> I generally spend most of my time trying to avoid having the RB do what you are describing, but it should be that simple, right?
>>>>
>>>> As you have noticed, the adapters are very crude, but tests are certainly a good idea. One thing that I miss is a good place to put package comments; I tend to write them more than class comments (they not only identify the important classes, but which ones to use and how, all in one place - who then need class comments?), and then relentlessly comment methods as they evolve. That said, I could probably force out a few class comments.
>>>>
>>>> What do you mean by checking padded printOn? What are they, and how (and for what) would I check them?
>>>>
>>>> Bill
>>>>
>>>>
>>>> ________________________________________
>>>> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of stephane ducasse [stephane.ducasse(a)free.fr]
>>>> Sent: Friday, August 27, 2010 4:28 AM
>>>> To: Pharo-project(a)lists.gforge.inria.fr Development
>>>> Subject: [Pharo-project] about ValueAdapter
>>>>
>>>> Bill
>>>>
>>>> I scanned the code.
>>>> Could you
>>>> - reformat your code?
>>>> put space after :
>>>> align on the first tab
>>>> - get some more tests?
>>>> - I could not see the class comments but if there are none then please adde something.
>>>> - did you check the padded printon methods and others?
>>>>
>>>> Stef
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> Pharo-project(a)lists.gforge.inria.fr
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> Pharo-project(a)lists.gforge.inria.fr
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Aug. 28, 2010
Re: [Pharo-project] about ValueAdapter
by Schwab,Wilhelm K
Stef,
I can build adapters easily enough, but the cool examples depend on a framework of which they are a very tiny part. Again, my immediate message is:
(1) date and time to/from text conversions need to be somehow format specific; Dolphin solves that using a type converter hierarchy, and I have a very crude implementation of it for Pharo
(2) Squeak's coercion of strings to numbers is probably a result of a failure to recognize the need for type converters.
(3) my gradually evolving MVP framework will include type converters and value adapters.
Bill
________________________________________
From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
Sent: Saturday, August 28, 2010 2:45 AM
To: Pharo-project(a)lists.gforge.inria.fr
Subject: Re: [Pharo-project] about ValueAdapter
On Aug 27, 2010, at 11:50 PM, Schwab,Wilhelm K wrote:
> Stef,
>
> Re survival, I might have been concerned about possible poor behavior of the methods you mention, or that you might soon remove then in cleaning. I really don't remember.
on base classes we want have better library and we pay attention that they do not impact people.
> I will indeed present the adapters as part of a larger whole.
focus on one and make it shine people at good at generalization when provided with a nice example.
> That will take time to evolve though. I think some of what we see in Squeak is the result of a failure to separate the related problems into pieces with clear responsibilities.
>
> Bill
>
>
> ________________________________________
> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
> Sent: Friday, August 27, 2010 3:23 PM
> To: Pharo-project(a)lists.gforge.inria.fr
> Subject: Re: [Pharo-project] about ValueAdapter
>
> On Aug 27, 2010, at 4:46 PM, Schwab,Wilhelm K wrote:
>
>> Stef,
>>
>> Got it - I thought you might have meant something completely different. For example, I had a really cool #printOn: method that I had to suppress because the inspector was parsing the text and changing things as a result - arrrrggggGGGGGG!!!!! :)
>>
>> Re other methods in the image. My goal was to be as data driven (off of the format) as possible and to get specific things working quickly. Mostly the latter; I just needed a few types of date and time conversions to work, and to work the same way they did when the code ran in Dolphin.
>>
>> Even if I had looked around, there are always questions: does it work at all, does it work well, will it survive the next sprint?
>
> what will survive?
>
>
>> You are doing a wonderful job, so please don't take that as anything negative. Of course, more tests will allow you to clean freely and immediately note that something was critical to the adpaters.
>>
>> Another thing to note, we are under the ValueAdapter thread, but dates and times really fall under type converters. Of course, converters and adapters often work together. A model understands #bodyWeight; a text editor understands #value, and a converter can sit between them to turn the editor's (text) value into a float for the model. It is nice pluggable/serializable stuff that probably makes the most sense in the context of view resources, whether they are saved in binary or not. The 30k ft view is probably to encourage composition rather than to force inheritance. Closures help us. Doing our graphics in Smalltalk can help or hurt, because we can freely change the widgets as needed, which is both valuable freedom and a crutch that can compensate for inflexible design.
>
> My suggestion is the following.
> Show us that this is cool with a nice example. Code is a good value for not native english speakers.
>
> Stef
>
>>
>> Bill
>>
>>
>> ________________________________________
>> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse [stephane.ducasse(a)inria.fr]
>> Sent: Friday, August 27, 2010 9:07 AM
>> To: Pharo-project(a)lists.gforge.inria.fr
>> Subject: Re: [Pharo-project] about ValueAdapter
>>
>> there are a lot of methods to print time and date as well as number and I thought that your adaptor would benefit from them.
>>
>> Stef
>>
>> On Aug 27, 2010, at 1:49 PM, Schwab,Wilhelm K wrote:
>>
>>> Stef,
>>>
>>> I generally spend most of my time trying to avoid having the RB do what you are describing, but it should be that simple, right?
>>>
>>> As you have noticed, the adapters are very crude, but tests are certainly a good idea. One thing that I miss is a good place to put package comments; I tend to write them more than class comments (they not only identify the important classes, but which ones to use and how, all in one place - who then need class comments?), and then relentlessly comment methods as they evolve. That said, I could probably force out a few class comments.
>>>
>>> What do you mean by checking padded printOn? What are they, and how (and for what) would I check them?
>>>
>>> Bill
>>>
>>>
>>> ________________________________________
>>> From: pharo-project-bounces(a)lists.gforge.inria.fr [pharo-project-bounces(a)lists.gforge.inria.fr] On Behalf Of stephane ducasse [stephane.ducasse(a)free.fr]
>>> Sent: Friday, August 27, 2010 4:28 AM
>>> To: Pharo-project(a)lists.gforge.inria.fr Development
>>> Subject: [Pharo-project] about ValueAdapter
>>>
>>> Bill
>>>
>>> I scanned the code.
>>> Could you
>>> - reformat your code?
>>> put space after :
>>> align on the first tab
>>> - get some more tests?
>>> - I could not see the class comments but if there are none then please adde something.
>>> - did you check the padded printon methods and others?
>>>
>>> Stef
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> Pharo-project(a)lists.gforge.inria.fr
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project(a)lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
Pharo-project(a)lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Aug. 28, 2010
Re: [Pharo-project] OmniBrowser chapter for PBE 2 is now available
by Stéphane Ducasse
Excellent!
Thanks oscar
On Aug 28, 2010, at 4:13 PM, Oscar Nierstrasz wrote:
>
> Hi Folks,
>
> There is a new draft chapter on the OmniBrowser framework for Pharo by Example 2 now available:
>
> http://pharobyexample.org//
>
> Cheers,
> - on
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Aug. 28, 2010
[Pharo-project] OmniBrowser chapter for PBE 2 is now available
by Oscar Nierstrasz
Hi Folks,
There is a new draft chapter on the OmniBrowser framework for Pharo by Example 2 now available:
http://pharobyexample.org//
Cheers,
- on
Aug. 28, 2010
Re: [Pharo-project] [squeak-dev] Experimental Cocoa OS-X based Squeak Cog JIT VM 5.8b3.
by Tudor Girba
I tested the VM, and it works just fine.
However, I also noticed that I cannot move between words by pressing
ctrl+left/right. This is a pretty nice thing to have. I am not sure I
understand what this has to do with the VM, but it is obviously the
only thing that changed. Is there anything I could do to help fixing
this?
Cheers,
Doru
On 27 Aug 2010, at 09:42, Mariano Martinez Peck wrote:
>
>
> 2010/8/27 John M McIntosh <johnmci(a)smalltalkconsulting.com>
>
> On 2010-08-26, at 11:52 AM, Mariano Martinez Peck wrote:
>
>> A difference I found with Eliot VM and your previous ones is
>> shortcuts.
>>
>> In eliot image, to select words, I do shift + ctrl + narrow, or
>> shift + command + narrow.
>>
>> In yours, I only can do shift + command + narrow.
>>
>> And if I do shift + ctrl + narrow the mouse cursos doesn't even move.
>>
>> cheer
>
> What is the 'narrow' key?
>
> sorry I eant arrow, left, right
>
> http://bit.ly/coumEn
>
> thanks
>
>
>
> --
> =
> =
> =
> =
> =
> ======================================================================
> John M. McIntosh <johnmci(a)smalltalkconsulting.com> Twitter:
> squeaker68882
> Corporate Smalltalk Consulting Ltd. http://
> www.smalltalkconsulting.com
> =
> =
> =
> =
> =
> ======================================================================
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
www.tudorgirba.com
"Yesterday is a fact.
Tomorrow is a possibility.
Today is a challenge."
Aug. 28, 2010
Re: [Pharo-project] Why has MethodFinder a fixed list of results?
by Stéphane Ducasse
On Aug 28, 2010, at 12:12 AM, Eliot Miranda wrote:
>
>
> On Fri, Aug 27, 2010 at 1:30 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
> Ok if I understand you mean you interpret everything on the copy of the inputs and you run until you either
> get an ok primitives or you stop on not ok one.
>
> Right, /and/ you stop whenever an attempt is made to write to an object not created during the simulation. So one has to trap primitives new, new: & shallowCopy and collect the results along with the copies of the initial arguments. These objects are safe to write to because they were created as one simulates. Anything else is an error.
Excellent we should really try that with ByteSurgeon or reflectivity when Opal is ready.
>
> Could be a nice way to stress runSimulated: :)
>
> Interesting to see if this is useful because runSimulated: is probably at least 100 times slower than executing.
>
>
> An alternative would be to have an execution primitive that entered a special mode that did a GC, installed a page fault handler, advanced the allocation pointer to the next page boundary and then write-protected the entire heap. The error handler would unprotect the entire heap and cause a callback that would raise an exception. So one would run until a write into the heap other than to new space. But this alternative requires lots of VM work and is super tricky. Fingers crossed runSimulated: will work :)
Yes. I like image level trickery since it stays human :)
But we will send you what we are doing with ObjectSpaces when this is in a readable state because each object is marked with his memory space and
we have a policy manager per memory region.
>
> cheers
> Eliot
>
>
> Stef
>
>
> >>
> > Ah, and a negative list was I think not used as it is too dangerous wrt. to completenes. If the positive list is incomplete, you miss
> > a hit. If the negative list is incomplete, you woud crash in some nasty way.
> >
> > Just look at the lists and how many methods you find that have been removed years ago...
> >
> > It's not just methods like #quitPrimitive. In general, with the image based nature you could end up modifying state of objects
> > in the image by accident, and realize it weeks later.
> > e.g. this means one would very carefully protect the reflective model, to not accidentally modify the methodDictionary, for example.
> >
> > So if someone did try my simulation approach above the only lists needed would be a positive list of those primitives that were safe to apply to any object and a positive list of those primitives it would be safe to apply to the objects allocated during the simulation.
> >
> > best,
> > Eliot
> >
> >
> > Marcus
> >
> >
> > --
> > Marcus Denker -- http://www.marcusdenker.de
> > INRIA Lille -- Nord Europe. Team RMoD.
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project(a)lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project(a)lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Aug. 28, 2010