These are chat archives for AvaloniaUI/Avalonia

8th
Jul 2016
Darnell Williams
@Seeker1437
Jul 08 2016 00:49 UTC
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 UTC
@Seeker1437 is that a dedicated server?
Matthijs ter Woord
@mterwoord
Jul 08 2016 11:15 UTC
for perf tests you want a controlled environment, not one that receives (potentially high) load
Steven Kirk
@grokys
Jul 08 2016 11:56 UTC
exactly...
Andrey Kunchev
@donandren
Jul 08 2016 13:59 UTC
@kekekeks I've made PR for the Avalonia designer with some improvements
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:46 UTC
@donandren Why aren't you scanning for actual "static getters" markup extensions?
Andrey Kunchev
@donandren
Jul 08 2016 15:56 UTC
it's nto hardcoded
This message was deleted
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:57 UTC
Why is there a list then?
Andrey Kunchev
@donandren
Jul 08 2016 15:57 UTC
sorry
i though for something else
because there need to be intelisense for {Static Converters.SomeConverter}
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:58 UTC
Yep, it needs to be provided by some custom code
Andrey Kunchev
@donandren
Jul 08 2016 15:58 UTC
and for {Binding COnverter=Converters.SomeCOnverter
Nikita Tsukanov
@kekekeks
Jul 08 2016 15:58 UTC
Which needs the info from designer process, BTW
Andrey Kunchev
@donandren
Jul 08 2016 15:59 UTC
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 UTC
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 UTC
argh, the purpose of your code kinda escapes me
Andrey Kunchev
@donandren
Jul 08 2016 16:07 UTC
I wanted only the static classes props and that,s enough for me now
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:07 UTC
What are you trying to autocomplete?
Andrey Kunchev
@donandren
Jul 08 2016 16:07 UTC
Static
Type
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:08 UTC
{Sta to {Static?
Andrey Kunchev
@donandren
Jul 08 2016 16:08 UTC
Binding covertorparameter
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:09 UTC
Or {Static myns.MyTy to {Static myns.MyTypeName}?
Andrey Kunchev
@donandren
Jul 08 2016 16:09 UTC
Nope after that static conv:converter.a
Yes correct
And enums in static
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:09 UTC
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 UTC
Yes
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:10 UTC
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 UTC
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 UTC
There are other thing harcoded as the xmlns attribute
Yes with attribute will be much better
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:13 UTC
Well, we'd better add AvaloniaIdeCompletionHintAttribute
Andrey Kunchev
@donandren
Jul 08 2016 16:13 UTC
Thumbs up
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:13 UTC
@grokys what do you think about that?
Steven Kirk
@grokys
Jul 08 2016 16:15 UTC
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 UTC
would it just be added to markup extensions?
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:26 UTC
For now it will be
ExpectsTypeIdentifier and ExpectsStaticProperty
Steven Kirk
@grokys
Jul 08 2016 16:28 UTC
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 UTC
It won't
But completion engine needs to know what particular string property actually means
Steven Kirk
@grokys
Jul 08 2016 16:36 UTC
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 UTC
We do have "TypeExtension", you know
Which wants type string
Steven Kirk
@grokys
Jul 08 2016 16:38 UTC
that's probably a bug - shouldn't it be of type Type?
string TypeName
Steven Kirk
@grokys
Jul 08 2016 16:39 UTC
yes, i saw
Nikita Tsukanov
@kekekeks
Jul 08 2016 16:39 UTC
Which is settable
Steven Kirk
@grokys
Jul 08 2016 16:40 UTC
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 UTC
So completion engine should check if property type is Type
Steven Kirk
@grokys
Jul 08 2016 16:41 UTC
yeah, that would make sense to me
Steven Kirk
@grokys
Jul 08 2016 16:41 UTC
ha!
Steven Kirk
@grokys
Jul 08 2016 17:37 UTC
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 UTC
@grokys nice work, after today's changes Avalonia runs noticeably faster for me
Steven Kirk
@grokys
Jul 08 2016 20:21 UTC
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 UTC
nope
it was also an optimization, but today template changes probably are making it boosted
Steven Kirk
@grokys
Jul 08 2016 20:21 UTC
ah ok cool!
what are you writing with avalonia btw?
Andrey Kunchev
@donandren
Jul 08 2016 20:22 UTC
app for sports for trainers and analyzers
Steven Kirk
@grokys
Jul 08 2016 20:23 UTC
cool, open source?
Andrey Kunchev
@donandren
Jul 08 2016 20:23 UTC
nope :( commersial
Steven Kirk
@grokys
Jul 08 2016 20:23 UTC
nice ;)
Nikita Tsukanov
@kekekeks
Jul 08 2016 20:24 UTC

nope  commersial

It's actually better than OSS

Andrey Kunchev
@donandren
Jul 08 2016 20:24 UTC
it has pretty custom interface basically everything is custom drawn
Nikita Tsukanov
@kekekeks
Jul 08 2016 20:24 UTC
More chances to hit production
Steven Kirk
@grokys
Jul 08 2016 20:24 UTC
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 UTC
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 UTC
that would be great
Darnell Williams
@Seeker1437
Jul 08 2016 20:51 UTC
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 UTC
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 UTC

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 UTC
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 UTC
ah I see what you mean
Nikita Tsukanov
@kekekeks
Jul 08 2016 21:19 UTC
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 UTC
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 UTC
Hmm and there are GPU servers too :O
Nikita Tsukanov
@kekekeks
Jul 08 2016 21:36 UTC
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 UTC
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 UTC
What happened to that "I-a-broke-dude" thing?
Johan Larsson
@JohanLarsson
Jul 08 2016 21:57 UTC
rich and famous now
Darnell Williams
@Seeker1437
Jul 08 2016 22:26 UTC
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 UTC

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.