These are chat archives for AvaloniaUI/Avalonia

5th
Aug 2016
Steven Kirk
@grokys
Aug 05 2016 00:07
coool, travis passing on linux and osx!
Jared Hester
@cloudRoutine
Aug 05 2016 02:21
has anyone been working on a terminal emulator in avalonia?
Steven Kirk
@grokys
Aug 05 2016 08:24
not that i know of!
danwalmsley
@danwalmsley
Aug 05 2016 08:29
@cloudRoutine if you implement one id be very interested to see that
Jared Hester
@cloudRoutine
Aug 05 2016 08:34
i won't be able to get started until F# dotnetcore support is officially released :grinning:
danwalmsley
@danwalmsley
Aug 05 2016 08:41
are you thinking of a port or from scratch?
Jared Hester
@cloudRoutine
Aug 05 2016 09:11
scratch, can't think of any that i like enough to port
Steven Kirk
@grokys
Aug 05 2016 09:12
i was thinking that at some point it'd be awesome to have an intereactive C# repl in the devtools - would be great to have something that could handle that too!
Jared Hester
@cloudRoutine
Aug 05 2016 09:14
fixing the garbage F# REPL is the first order of business
ehh
woefully mediocre*
danwalmsley
@danwalmsley
Aug 05 2016 09:31
finally got AvalonStudio to run under bash
image.png
have to fix a few things to get it fully working, but not looking too bad
I think running under skia might make it look nicer
@grokys to use skia do I just install Avalonia.Skia.Desktop?
danwalmsley
@danwalmsley
Aug 05 2016 09:49
ok got that to work
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 10:11
@danwalmsley i think SkiaSharp does not have binaries for linux :(
danwalmsley
@danwalmsley
Aug 05 2016 10:25
on windows
@wieslawsoltes did you do some work on skia set foregroundbrush for FormattedText?
almost everything seems to be perfect on skia now but foreground brush
image.png
it should have looked like ...
image.png
danwalmsley
@danwalmsley
Aug 05 2016 10:31
maybe you can point me to the skia code responsible for setting foreground brush
?
I think the bug is that it doesn't support multiple calls,
i.e. it should override the color in the second call
danwalmsley
@danwalmsley
Aug 05 2016 10:36
actually looks like the bug is here:
GetNextForeground brush
it would select the first one that covers that range, not the most specific
suggests that it just applies the brush and skips to end of line
its not taking into account there might be multiple colours in a single formatted text.
danwalmsley
@danwalmsley
Aug 05 2016 10:50
@grokys recent builds this has been cropping up again...
image.png
   at SharpDX.Result.CheckError()
   at SharpDX.Direct2D1.RenderTarget.EndDraw(Int64& tag1, Int64& tag2)
   at Avalonia.Direct2D1.Media.DrawingContext.Dispose()
   at Avalonia.Media.DrawingContext.Dispose()
   at Avalonia.Rendering.RendererMixin.Render(IRenderTarget renderTarget, IVisual visual)
   at Avalonia.Controls.Platform.DefaultTopLevelRenderer.<>c__DisplayClass0_0.<Attach>b__2(Rect rect)
   at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
but if I can fix the skia text coloring I wont need it sharpdx anymore ;)
Steven Kirk
@grokys
Aug 05 2016 10:57
well nothing has changed there so i don't think it's "cropping up again" - more it's an intermittent error
i've never seen it myself
one thought: are you putting your machine to sleep or something when it happens?
danwalmsley
@danwalmsley
Aug 05 2016 11:02
no, its usually when its been left idle for a while
I hadn't seen it for months now
but could be due to anniversary update
@grokys were you involved in skia formatted text implementation?
Steven Kirk
@grokys
Aug 05 2016 11:03
no, i've not been involved in skia at all
danwalmsley
@danwalmsley
Aug 05 2016 11:03
ok cool, if I can get some help to fix that one issue, I can switch to skia fulltime
Steven Kirk
@grokys
Aug 05 2016 11:04
i think it will be a while before you can switch to skia fulltime
there's a lot missing afaik
and we're waiting on skiasharp for a lot fo it
danwalmsley
@danwalmsley
Aug 05 2016 11:06
yeh, first look, was pretty complete
definitely ahead of Linux backend now
danwalmsley
@danwalmsley
Aug 05 2016 11:53
maybe its just cos its all new
but the skia version of Avalon studio seems way more responsive
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 11:56

@wieslawsoltes did you do some work on skia set foregroundbrush for FormattedText?

@danwalmsley No I didn't.

danwalmsley
@danwalmsley
Aug 05 2016 12:03
@wieslawsoltes ok cheers no worries
ah I think it was @donandren maybe?
danwalmsley
@danwalmsley
Aug 05 2016 12:10
@wieslawsoltes thanks didn't know you could do that
ok yeh @donandren you SetForeground brush implementation, isn't working as id expected, let me know when your around, I'm sure there must be a quick fix ;)
great work on skia though, iv been blown away how good it is so far
Steven Kirk
@grokys
Aug 05 2016 12:20
the skia version of Avalon studio seems way more responsive
faster than d2d you mean? i'd be very surprised if that were the case because afaik it's using s/w rendering
or do you mean faster than cairo? that would make sense...
danwalmsley
@danwalmsley
Aug 05 2016 12:28
I don't know if its actually rendering faster, but perception is that it feels snappier
fonts are a bit blurry though
I'm comparing to d2d
Matthijs ter Woord
@mterwoord
Aug 05 2016 12:28
blurry because of AA?
danwalmsley
@danwalmsley
Aug 05 2016 12:28
its probably my perception just because its new
@mterwoord I'm not sure, on D2D backend I get crisp fonts, on skia slightly blurry
Matthijs ter Woord
@mterwoord
Aug 05 2016 12:29
i'd say AA differences?
D2D uses cleartype normally i think
danwalmsley
@danwalmsley
Aug 05 2016 12:30
yeah probably
Jeremy Koritzinsky
@jkoritzinsky
Aug 05 2016 14:03
@danwalmsley I'll start working on the SharpDX exception (more so how to recover from it) next time I have some free time.
danwalmsley
@danwalmsley
Aug 05 2016 14:19
@jkoritzinsky thanks
there is no repro, its really rare, but I think if you can catch the exception, and restart render loop then it will fix
Jeremy Koritzinsky
@jkoritzinsky
Aug 05 2016 14:31
That's the plan.
Steven Kirk
@grokys
Aug 05 2016 15:27
ok, i've been working on getting the mono build experience better in #661. Could someone give it a try and tell me if I've missed anything? I've updated the build instructions and removed the separate travis mono solution (we now have a Mono solution platform)
having ubuntu on windows makes this ssoooooo much easier!
switchaluphagus
@switchaluphagus
Aug 05 2016 16:22

Hello everyone. Sorry to post this here, I normally do not like to post work opportunities within discussion threads such as this however it was recommended to be by a member of your community to post here. I am the VP of Engineering for Synergy Sports Technology and we are interested in working with some individuals with Avalonia experience and supporting the community.

We have a project starting in a few days and we are looking to add a couple more individuals to our team for the next 6 months or more. If you have an interest in learning more about our project and working with us in some manner ping me offline from this channel at b.shepherd@synergysportstech.com Here is a bit more about us… http://corp.synergysportstech.com/the-company

Thank you all for your contribution to a great project, and I apologize if this post is out of line for this community.

Steven Kirk
@grokys
Aug 05 2016 16:48
it's great to hear that people are looking for developers with avalonia experience!
although kinda scary pressure for me :)
danwalmsley
@danwalmsley
Aug 05 2016 17:01
@wieslawsoltes did you get skia working on Bash on Windows yet?
I compiled and tried to run skia test app
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:01
no
I could not compile SkiaSharp
danwalmsley
@danwalmsley
Aug 05 2016 17:01
but I just get some problem trying to initialse display adaptor
I only got as far as compiling skia
Steven Kirk
@grokys
Aug 05 2016 17:02
skiasharp doesn't work on linux yet does it?
at least the nuget package
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:02
You have to compile it yourself :(
danwalmsley
@danwalmsley
Aug 05 2016 17:02
have you compiled skia itself before?
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:02
no
Steven Kirk
@grokys
Aug 05 2016 17:02
ahhh ok
danwalmsley
@danwalmsley
Aug 05 2016 17:02
compiling skia was really easy
but I don't know about skiasharp
Steven Kirk
@grokys
Aug 05 2016 17:03
this may interest you guys AvaloniaUI/Avalonia#662
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:03
this one is huge!
danwalmsley
@danwalmsley
Aug 05 2016 17:03
awesome!
Steven Kirk
@grokys
Aug 05 2016 17:03
it was really simple - i knew it would be but i was hoping someone would step up to do it...
danwalmsley
@danwalmsley
Aug 05 2016 17:04
looks like Linux is getting some attention before release @grokys ?
Steven Kirk
@grokys
Aug 05 2016 17:04
yeah...
it needed some!
and getting it running without a VM/dual boot just made it a lot easier for me!
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:05
@grokys You can add some info to release notes that Avalonia works on Bash for Windows :)
danwalmsley
@danwalmsley
Aug 05 2016 17:05
The main issue with gtk for me is, that everything renders different size from Windows
Steven Kirk
@grokys
Aug 05 2016 17:05
yeah, i've no idea why that is
does it render too big on linux too or is it just a windows thing?
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:06
@danwalmsley Maybe fonts are missing ?
danwalmsley
@danwalmsley
Aug 05 2016 17:06
its only a problem on Linux....
hang on let me get you a good screen shot so I can show you what I mean
Steven Kirk
@grokys
Aug 05 2016 17:06
no it's ok i've seen it
danwalmsley
@danwalmsley
Aug 05 2016 17:07
its either fonts are bigger and so cause their parents to get bigger, or we are rendering some containers at wrong size too
on Avalon studio I could only see top half of toolbar
Steven Kirk
@grokys
Aug 05 2016 17:08
oh maybe i haven't seen it...
i've just seen that fonts are large
but the layout system should handle that as long as you've not got fixed sizes anywhere
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:09
2016-08-05_19-07-59.png
this is Gtk/Cairo vs D2D on windows
danwalmsley
@danwalmsley
Aug 05 2016 17:10
wow your are like identical
maybe its a font issue then
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:12
I have set font sizes for all of my UI elements, maybe that's the difference
2016-08-05_19-15-47.png
and this is Gtk/Cairo running on Bash For Windows (left) vs D2D on windows (right)
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:29
2016-08-05_19-29-00.png
This looks much better
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 17:47
Cairo-BashForWindows.png
Cairo.png
Skia.png
Direct2D.png
Using latest Avalonia build.
Steven Kirk
@grokys
Aug 05 2016 17:52
cool!
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:19
Guys, do you think we could run with 8MB SDRAM and 1MB of NAND flash?
uGFX is awful
danwalmsley
@danwalmsley
Aug 05 2016 18:20
what processor?
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:20
Cortex M4
danwalmsley
@danwalmsley
Aug 05 2016 18:20
no way
id love it if we could
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:20
I'm considering to run CoreRT on that thing
It's actually possible to do
danwalmsley
@danwalmsley
Aug 05 2016 18:20
yeh,
@Seeker1437 ran it on a raspberry pi and it took like an hour just to load the window for xamltest app
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:21
Someone had already done it with CoreRT and unikernel
So CPU doesn't need to have a MMU
danwalmsley
@danwalmsley
Aug 05 2016 18:21
cortex m4 runs between 168mhz and 206mhz depending which one you have, its single core
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:22
yep
The point is that it has a libc implementation
danwalmsley
@danwalmsley
Aug 05 2016 18:22
if you find a way to optimize it and make it run that would be amazing
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:22
And some kind of OS with threading support
danwalmsley
@danwalmsley
Aug 05 2016 18:22
FreeRTOS you can use
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:22
We are currently using chibios
danwalmsley
@danwalmsley
Aug 05 2016 18:22
that is also good
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:23
because it actually has a working HAL
danwalmsley
@danwalmsley
Aug 05 2016 18:23
prob slightly better
you know Avalon studio can build all this stuff for those devices
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:23
Implementing syscalls for newlib shouldn't be much of an issue
danwalmsley
@danwalmsley
Aug 05 2016 18:23
;)
iv got a syscalls.c ;)
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:23
Meh, I'm fine with Visual Studio + Resharper
danwalmsley
@danwalmsley
Aug 05 2016 18:24
but most of them just have blank implementation
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:24
Visual C++ for IoT does a pretty good job of using openocd
danwalmsley
@danwalmsley
Aug 05 2016 18:24
how did you get visual studio to compile and debug on stm32?
openocd right
Nikita Tsukanov
@kekekeks
Aug 05 2016 18:24
Makefile project + Visual C++ for IoT
I'm using stock makefile from chibios example
and some powershell scripts to wire up that with MSBuild
Also had to add some code to dump INCDIR to a file, so VS could read correct include dir list
For intellisense and stuff
danwalmsley
@danwalmsley
Aug 05 2016 19:56
image.png
@grokys this is on linux
gtk / cairo
looking good now, except the paths are not getting drawn correctly
in my toolbar icons
Wiesław Šoltés
@wieslawsoltes
Aug 05 2016 19:57
maybe its related to this AvaloniaUI/Avalonia#663
danwalmsley
@danwalmsley
Aug 05 2016 19:58
ah looks like it
@grokys can we merge #663?
Steven Kirk
@grokys
Aug 05 2016 20:00
If it fixes something for you, yeah. I'm not at my computer now though. Do you want to merge it?
danwalmsley
@danwalmsley
Aug 05 2016 20:01
ok yeah, cheers
Jeremy Koritzinsky
@jkoritzinsky
Aug 05 2016 20:07
I really do enjoy seeing both AppVeyor and Travis passing
danwalmsley
@danwalmsley
Aug 05 2016 20:09
@jkoritzinsky can appveyor build mono? or is that why we have to use Travis?
I'm trying to set up CI for AvalonStudio
Jeremy Koritzinsky
@jkoritzinsky
Aug 05 2016 20:16
AppVeyor is Windows only (and I think .NET only so no Mono on Windows)
That's why we use Travis
Ethan Smith
@ethanhs
Aug 05 2016 21:40
@danwalmsley Yes appveyor can. Their build workers provide Mono 4.0.2 SR2
danwalmsley
@danwalmsley
Aug 05 2016 21:53
@ethanhs thanks
Ethan Smith
@ethanhs
Aug 05 2016 21:54
np :) I'm eager for the beta release of AvalonStudio
danwalmsley
@danwalmsley
Aug 05 2016 21:54
just been debugging it on Linux with @jameswalmsley
just got a few more features to polish and finish off
fancy helping out?
Ethan Smith
@ethanhs
Aug 05 2016 21:54
Sure...
James Walmsley
@jameswalmsley
Aug 05 2016 21:55
blob
Debugging on Linux (Ubuntu)....