[Glamour] default selection in ListPresentation
by Cyrille Delaunay
Hello,
Is there a way to set a default selection to a list presentation? so that
when I open the browser, the morphic list has already a value selected.
I tried that:
|tmpBrowser|
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
selection: #a;
yourself
].
tmpBrowser openOn: #( b c d v a d f r).
but the list still open with nothing selected
5 years, 2 months
A quick analyzis of the usage of instance variables in Moose
by Guillaume Larcheveque
Hi Moose users,
as you may know, at Synectique we experiment lots of issues about memory
usage.
That's why i had a look at the number of unused instance variables in one
of our system loaded with a big model from one of our main customer.
Total instance variables: 26.852.653
Used instance variables: 17.393.938
Empty collections: 5.023.508
Recoverable instance variables: 14.482.223
The recoverable instance variables are those with nil or an empty
collection (or MultiValueLink)
As you can see, we can save a lot of memory :-)
Here is my (dirty) code to get that:
countUsedInstanceVariableInForSubInstances: aClass
| usedInstNbr instNbr emptyCollNbr |
usedInstNbr := 0.
instNbr := 0.
emptyCollNbr := 0.
aClass
allSubInstancesDo: [ :anEntity |
instNbr := instNbr + anEntity class allInstVarNames size.
anEntity class allInstVarNames
doWithIndex: [ :e :i |
(anEntity instVarAt: i)
ifNotNil: [ :content |
([
content isEmpty.
emptyCollNbr := emptyCollNbr + 1.
false ]
on: MessageNotUnderstood
do: [ false ])
ifFalse: [ usedInstNbr := usedInstNbr + 1 ] ] ] ].
^ {('Used instance variables' -> usedInstNbr).
('empty collections' -> emptyCollNbr).
('Recoverable instance variables' -> (instNbr - (usedInstNbr -
emptyCollNbr))).
('Total instance variables' -> instNbr)}
--
*Guillaume Larcheveque*
6 years, 2 months
Roassal examples browser - too many items
by Ben Coman
Just some quick feedback... in the "Moose Suite 6.0 (beta)" image from
PharoLauncher I opened World > Roassal > Roasasal Examples
Nice interface, but for the category "Grapher - Overall" I find there are
too many items,
such that even the text labels are too small to read. It might be better
to split this out to a few more categories.
cheers -ben
6 years, 3 months
ElasticBoxZoom
by Ben Coman
I loaded Roassal into Pharo 60411 and tried #exampleElasticBoxZoom.
I select a major portion of the graph, but it zooms down onto one of the
tiny axis tick-marks. Is there an issue tracker that is a better place to
report this?
cheers -ben
P.S. I was trying to run Moose 6.0 (beta) from Pharo Launcher on top of
a recent VM Feb 22 2017. It was locking up and crashing and I wasn't sure
how the versions aligned, so switching to loading Roassal from catalog
into 60411 has been running fine.
6 years, 3 months
GTInspector duplicates overriden extensions
by Peter Uhnak
Hi,
when I override a method with a GTInspector (because I need to change it),
then inspector contains the extension twice.
It seems Inspector scans the whole hierarchy of the inspected object for methods, but doesn't deduplicate them.
Peter
6 years, 3 months
CK metrics from Moose? (was Re: Publications of projects using Moose?)
by Cris Fuhrman
Hello!
I'm wondering if it's in the scope of Moose to get to the standard CK
metrics for a model? It seems it's been done experimentally (
https://pdfs.semanticscholar.org/0eb2/14ec7c6288dc13564580beafc2609b09118...)
and I also found the momfe paper from 2002 (
http://scg.unibe.ch/archive/projects/Bute02a.pdf) but appeared not to have
all the CK metrics.
I also found the right-click on a Moose Model -> Export -> Export model to
MSE, but there was nothing that looked like standard CK metrics in the
exported file.
We are particularly trying to generate CBO (for a research comparison) for
a few classes and would like to be able to do all our work in Moose if
possible (especially with the visualizations in a RTView).
Cheers,
C. Fuhrman
On Wed, Oct 5, 2016 at 11:58 AM, Hernán Morales Durand <
hernan.morales(a)gmail.com> wrote:
> Hi guys,
>
> Do you have good reference links to publications (yours or from other
> people) which uses Moose metrics for example in a "Material and Methods"
> section?
>
> I mean *not* Moose projects publications (projects derived from Moose),
> but those projects which uses Moose analysis to report Cyclomatic
> Complexity, Halstead Length, WMC, DIT, CBO, etc . I want to see what and
> how people reports metrics for a software project using Moose. If
> publication is in a Journal outside of the field of Software Engineering
> field that would be better.
>
> Cheers,
>
> Hernán
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)list.inf.unibe.ch
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
6 years, 3 months
Position of #numberOfLinesOfCode in hierarchy
by Cyril Ferlicot D.
Hello everyone,
I found something I find odd today. The method #numberOfLinesOfCodes is
defined on the Behavioral entities. I would have expected it on the
Sourced entities because if an entity has sources it should have a
number of lines of code.
What do you think?
--
Cyril Ferlicot
http://www.synectique.eu
2 rue Jacques Prévert 01,
59650 Villeneuve d'ascq France
6 years, 3 months
How ready is Bloc for a simple use-case?
by Peter Uhnak
Hi,
I wanted to ask about Bloc:
1) how stable is the API? e.g. if some overhaul changes to unify/whatever are planned
2) I saw in the techtalk that you can align elements (to center, bottom, ...), however is that possible with lines? Lines have to rotate, morph shape, etc.
3) Are non-straight lines possible? (e.g. bezier, arc)
The idea for me is to make a simple mindmap
- elements with some text, icons, math symbols inside
- connectors (non-straight lines) between elements
To me (apart from the lines) it seems like it should be already doable.
Also either my (Morphic) Pharo is really slow, or Bloc (in the video) is superfast (everything is happening instantly).
Thanks,
Peter
6 years, 3 months
Cannot inspect Hashtable anymore
by Blondeau Vincent
Hello,
I am currently working with Hashtable which is loaded by default in the Moose image.
With the latest image, I tried to do: (HashTable new at: #a put:1;yourself) inspect. And I got an inspector with the red square of death...
It seems that the visualization wants to get the item at the position 1 in the Hashtable but it cannot succeed because there is no item at 1 (obviously, it is an hashtable).
Can someone with GtTools knowledge take a look at that?
Thanks in advance,
Cheers,
Vincent
!!!*************************************************************************************
"Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? de Worldline ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.!!!"
6 years, 3 months