These are chat archives for AvaloniaUI/Avalonia

8th
Jul 2016
Darnell Williams
@Seeker1437
Jul 08 2016 00:49
I wish I could help I have a hugh avaibility server xD idk how I can use that to contribute
Steven Kirk
@grokys
Jul 08 2016 10:13
@Seeker1437 is that a dedicated server?
Matthijs ter Woord
@mterwoord
Jul 08 2016 11:15
for perf tests you want a controlled environment, not one that receives (potentially high) load
Steven Kirk
@grokys
Jul 08 2016 11:56
exactly...
Andrey Kunchev
@donandren
Jul 08 2016 13:59
@kekekeks I've made PR for the Avalonia designer with some improvements
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:46
@donandren Why aren't you scanning for actual "static getters" markup extensions?
Andrey Kunchev
@donandren
Jul 08 2016 15:56
it's nto hardcoded
This message was deleted
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:57
Why is there a list then?
Andrey Kunchev
@donandren
Jul 08 2016 15:57
sorry
i though for something else
because there need to be intelisense for {Static Converters.SomeConverter}
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:58
Yep, it needs to be provided by some custom code
Andrey Kunchev
@donandren
Jul 08 2016 15:58
and for {Binding COnverter=Converters.SomeCOnverter
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:58
Which needs the info from designer process, BTW
Andrey Kunchev
@donandren
Jul 08 2016 15:59
it's better to have some attributes in definitions of the xaml extensions
so it's configurable and not hardcoded
of some configuration of the process, but was much more easy and working ok for me at least
and didn't wanted to touch the designer process at all as i'm mostly disabling it
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:01
The problem is that
in order to know which resource names are available
You need to actually load the App
And let it load all XAML it needs
It's easier for {Static}
Since we have the type list already in VS process
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:07
argh, the purpose of your code kinda escapes me
Andrey Kunchev
@donandren
Jul 08 2016 16:07
I wanted only the static classes props and that,s enough for me now
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:07
What are you trying to autocomplete?
Andrey Kunchev
@donandren
Jul 08 2016 16:07
Static
Type
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:08
{Sta to {Static?
Andrey Kunchev
@donandren
Jul 08 2016 16:08
Binding covertorparameter
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:09
Or {Static myns.MyTy to {Static myns.MyTypeName}?
Andrey Kunchev
@donandren
Jul 08 2016 16:09
Nope after that static conv:converter.a
Yes correct
And enums in static
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:09
So this list is needed to check if markup extension or it's property wants a type as a parameter, right?
Andrey Kunchev
@donandren
Jul 08 2016 16:10
Yes
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:10
Isn't it possible to extract that information by examining the markup extension at metadata extraction phase?
So far the only thing that we have hardcoded was the default namespace
Andrey Kunchev
@donandren
Jul 08 2016 16:11
Not unless there is additional info
So we need some attribute
To mark that something is actually a type name
Andrey Kunchev
@donandren
Jul 08 2016 16:12
There are other thing harcoded as the xmlns attribute
Yes with attribute will be much better
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:13
Well, we'd better add AvaloniaIdeCompletionHintAttribute
Andrey Kunchev
@donandren
Jul 08 2016 16:13
Thumbs up
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:13
@grokys what do you think about that?
Steven Kirk
@grokys
Jul 08 2016 16:15
could you explain a little? i've not been involved in what you're doing. where would AvaloniaIdeCompletionHintAttribute be added?
what would it do exactly?
specify that e.g. the StaticExtension.Identifier field refers to a static?
what would the values for the attribute be?
Steven Kirk
@grokys
Jul 08 2016 16:25
would it just be added to markup extensions?
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:26
For now it will be
ExpectsTypeIdentifier and ExpectsStaticProperty
Steven Kirk
@grokys
Jul 08 2016 16:28
firstly i think the naming can be made less verbose: for me, CodeCompletionHintAttribute(CodeCompletionHint.Type) would be better - i don't think we need to say it's "avalonia" (ofc it is) or "ide" (code completion is always for an ide)
but would it just be for markup extensions?
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:31
It won't
But completion engine needs to know what particular string property actually means
Steven Kirk
@grokys
Jul 08 2016 16:36
yeah, i can see it being useful for {Static} though any property which wants a type will be of type Type, no?
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:37
We do have "TypeExtension", you know
Which wants type string
Steven Kirk
@grokys
Jul 08 2016 16:38
that's probably a bug - shouldn't it be of type Type?
string TypeName
Steven Kirk
@grokys
Jul 08 2016 16:39
yes, i saw
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:39
Which is settable
Steven Kirk
@grokys
Jul 08 2016 16:40
what i meant is, that should probably be public Type TypeName { get; set; }
i think that was written by @SuperJMN
there should be a type converter for string -> Type
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:41
So completion engine should check if property type is Type
Steven Kirk
@grokys
Jul 08 2016 16:41
yeah, that would make sense to me
Steven Kirk
@grokys
Jul 08 2016 16:41
ha!
Steven Kirk
@grokys
Jul 08 2016 17:37
ok, i've fixed a problem in the devtools with hit testing
@wieslawsoltes that should help with debugging core2d problems#
as previously the devtools was unusable
did your changes to CachedContentPresenter fix the problem of the properties views not displaying?
i saw you noticed i'd added a virtual method so that you can customize the creation of the child
Andrey Kunchev
@donandren
Jul 08 2016 20:20
@grokys nice work, after today's changes Avalonia runs noticeably faster for me
Steven Kirk
@grokys
Jul 08 2016 20:21
coll - that migth be due to your property cache stuff that i merged
sorry it took so long!
Andrey Kunchev
@donandren
Jul 08 2016 20:21
nope
it was also an optimization, but today template changes probably are making it boosted
Steven Kirk
@grokys
Jul 08 2016 20:21
ah ok cool!
what are you writing with avalonia btw?
Andrey Kunchev
@donandren
Jul 08 2016 20:22
app for sports for trainers and analyzers
Steven Kirk
@grokys
Jul 08 2016 20:23
cool, open source?
Andrey Kunchev
@donandren
Jul 08 2016 20:23
nope :( commersial
Steven Kirk
@grokys
Jul 08 2016 20:23
nice ;)
Nikita Tsukanov
@kekekeks
Jul 08 2016 20:24

nope  commersial

It's actually better than OSS

Andrey Kunchev
@donandren
Jul 08 2016 20:24
it has pretty custom interface basically everything is custom drawn
Nikita Tsukanov
@kekekeks
Jul 08 2016 20:24
More chances to hit production
Steven Kirk
@grokys
Jul 08 2016 20:24
have you got a screenshot?
yeah - it's cool - just a bit scary that people are building commercial projects on it already! i feel the responsibility!
Andrey Kunchev
@donandren
Jul 08 2016 20:25
i have, i can give you some private screens but don't want it posted here on public
Steven Kirk
@grokys
Jul 08 2016 20:26
that would be great
Darnell Williams
@Seeker1437
Jul 08 2016 20:51
Yeah I have my own project as well ;)
@grokys its a specialized load balancing cloud vps
Its just as good as a dedicated server, it just has less storage in that respect
Nikita Tsukanov
@kekekeks
Jul 08 2016 20:54
The problem with servers that are used in production
Is that they are unsuitable with benchmark tests
You need to have exclusive access to server resources to run benchmarks and then be actually able to reason about them
The best hardware to use is an outdated server from hetzner auction
they start from 25EUR/month or something
Darnell Williams
@Seeker1437
Jul 08 2016 21:17

Makes sense, in the past I rans one and I would have periodic drops in resoruces (a vore would be given to another server or something)

I have plans to move to an actual dedicated server, but I need to be able to justify it's costs first. THat is my only concern with having a dedicated one wiht the hardware I need

Nikita Tsukanov
@kekekeks
Jul 08 2016 21:17
the problem is that even if you move to the dedicated server
there will be no point of using it for benchmarks if it runs anything else
Darnell Williams
@Seeker1437
Jul 08 2016 21:18
ah I see what you mean
Nikita Tsukanov
@kekekeks
Jul 08 2016 21:19
I wonder if .NET foundation will provide funding for things like that
25 EUR isn't that much after all
Darnell Williams
@Seeker1437
Jul 08 2016 21:19
Well give me time and I can provision one that is truly dedicated to what you gus would need. (or your path is good too)
The thing about these servers is that they are configured for specific niches, (Enterprise, Hosting, Game, Big Data, Infrastructure) what would we need that could fall under one fo those?
Darnell Williams
@Seeker1437
Jul 08 2016 21:24
Hmm and there are GPU servers too :O
Nikita Tsukanov
@kekekeks
Jul 08 2016 21:36
I think we don't need a configured-for-a-niche server, we need a cheaper-than-dirt server
Darnell Williams
@Seeker1437
Jul 08 2016 21:46
I hear you :)
The contributions i am usually the best with are the ones that cost money anyways.
Nikita Tsukanov
@kekekeks
Jul 08 2016 21:54
What happened to that "I-a-broke-dude" thing?
Johan Larsson
@JohanLarsson
Jul 08 2016 21:57
rich and famous now
Darnell Williams
@Seeker1437
Jul 08 2016 22:26
At the time it was true hehe
and atm it is true, but That changes in less than a week
Wiesław Šoltés
@wieslawsoltes
Jul 08 2016 23:04

did your changes to CachedContentPresenter fix the problem of the properties views not displaying?

@grokys It fixed the exception, but controls after some time are not displayed at all.