Re: Commercial video processing app in D (experience report)
On Thursday, 5 May 2016 at 18:33:44 UTC, TheGag96 wrote: On Wednesday, 27 April 2016 at 12:42:05 UTC, thedeemon wrote: (snip) Sorry to bump this thread, but how did you handle multiple windows using DlangUI? (As in, were you able to prevent input on the main window while another one was open, etc.) I know Vadim/buggins is working on improving that right now but I'd like to know if there's a clean way to handle more than one window already. In our case there is one main window and a few other windows get opened one at a time (Platform.instance.createWindow with WindowFlag.Modal), increasing number of open windows to 2, and sometimes native dialogs are invoked in addition to the 2 DLangUI windows. I remember there was some glitches like if you press Enter in OS-native file dialog and it gets closed then an odd Enter key press message may be received by DLangUI window, but we used one simple trick: before opening some modal window change focus in current window to something harmless. After that everything worked quite well. But we're not using more than one active (i.e. not shadowed by a modal one) window at a time, so don't meet with issues you might meet there.
Re: GSoC 2016 - Precise GC
On Wednesday, 4 May 2016 at 12:42:30 UTC, jmh530 wrote: On Wednesday, 4 May 2016 at 02:50:08 UTC, Jeremy DeHaan wrote: I'm not sure, but one would think that @safe code wouldn't need any extra information about the union. I wouldn't know how to differentiate between them though during runtime. Probably someone with more experience with the compiler would know more about that kind of thing. You can identify safe functions with https://dlang.org/phobos/std_traits.html#isSafe or https://dlang.org/phobos/std_traits.html#functionAttributes All I meant was that I don't know enough about what the compiler does with built in types to make this work. It almost sounds like we would need a safe union and unsafe union type and do some extra stuff for the unsafe union, but I'm just starting to learn about this stuff.
Re: Live streaming of DConf 2016: confirmed
On Friday, 6 May 2016 at 01:49:14 UTC, Joakim wrote: On Friday, 6 May 2016 at 01:37:10 UTC, mate wrote: On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: [...] Yes, you can get new stream URLs from the JSON metadata for each video. For example, the first video is at http://www.ustream.tv/recorded/86352137, so load up http://api.ustream.tv/videos/86352137.json and look for the flv URL with the tcdn.ustream.tv domain. Copy it, remove the forward slashes before the back slashes, and paste it into VLC. Thanks for the technique. But it does not seem to work. I extracted the following from the json, which gives me an HTTP 403 forbidden error: http://tcdn.ustream.tv/video/86352137?preset_id=1&e=1462512507&h=1f78b567afc5eda10df1be84e0786704&source=api Your link works for me in VLC, are you trying to download it or something? The video is dark for first five seconds, but you can hear crowd audio right away. Oh yes it works on VLC on Android! Sorry. It does not on VLC (nor via browser) on my laptop. Below is a UNIX command to extract the flv URL from the JSON’s. wget -O- 2>/dev/null http://api.ustream.tv/videos/86352137.json | grep -o 'flv":"[^"]*' | cut -d\" -f3 | tr -d Thanks.
Re: Live streaming of DConf 2016: confirmed
On Friday, 6 May 2016 at 01:37:10 UTC, mate wrote: On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: [...] Yes, you can get new stream URLs from the JSON metadata for each video. For example, the first video is at http://www.ustream.tv/recorded/86352137, so load up http://api.ustream.tv/videos/86352137.json and look for the flv URL with the tcdn.ustream.tv domain. Copy it, remove the forward slashes before the back slashes, and paste it into VLC. Thanks for the technique. But it does not seem to work. I extracted the following from the json, which gives me an HTTP 403 forbidden error: http://tcdn.ustream.tv/video/86352137?preset_id=1&e=1462512507&h=1f78b567afc5eda10df1be84e0786704&source=api Your link works for me in VLC, are you trying to download it or something? The video is dark for first five seconds, but you can hear crowd audio right away.
Re: Live streaming of DConf 2016: confirmed
On Friday, 6 May 2016 at 01:09:07 UTC, Joakim wrote: On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the other three. Use those video players' dialogs to open a network stream and paste in these URLs to watch the talks from yesterday. [...] Thank you. It worked on my Android phone (with the sound) within the first hour they were posted. Now trying to view the streams is failing. Have the links expired? Yes, you can get new stream URLs from the JSON metadata for each video. For example, the first video is at http://www.ustream.tv/recorded/86352137, so load up http://api.ustream.tv/videos/86352137.json and look for the flv URL with the tcdn.ustream.tv domain. Copy it, remove the forward slashes before the back slashes, and paste it into VLC. Thanks for the technique. But it does not seem to work. I extracted the following from the json, which gives me an HTTP 403 forbidden error: http://tcdn.ustream.tv/video/86352137?preset_id=1&e=1462512507&h=1f78b567afc5eda10df1be84e0786704&source=api
Re: Live streaming of DConf 2016: confirmed
On Thursday, 5 May 2016 at 22:21:58 UTC, mate wrote: On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the other three. Use those video players' dialogs to open a network stream and paste in these URLs to watch the talks from yesterday. [...] Thank you. It worked on my Android phone (with the sound) within the first hour they were posted. Now trying to view the streams is failing. Have the links expired? Yes, you can get new stream URLs from the JSON metadata for each video. For example, the first video is at http://www.ustream.tv/recorded/86352137, so load up http://api.ustream.tv/videos/86352137.json and look for the flv URL with the tcdn.ustream.tv domain. Copy it, remove the forward slashes before the back slashes, and paste it into VLC.
Re: Live streaming of DConf 2016: confirmed
On Thursday, 5 May 2016 at 10:59:29 UTC, Joakim wrote: On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: [...] Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the other three. Use those video players' dialogs to open a network stream and paste in these URLs to watch the talks from yesterday. [...] Thank you. It worked on my Android phone (with the sound) within the first hour they were posted. Now trying to view the streams is failing. Have the links expired?
Re: Commercial video processing app in D (experience report)
On Wednesday, 27 April 2016 at 12:42:05 UTC, thedeemon wrote: (snip) Sorry to bump this thread, but how did you handle multiple windows using DlangUI? (As in, were you able to prevent input on the main window while another one was open, etc.) I know Vadim/buggins is working on improving that right now but I'd like to know if there's a clean way to handle more than one window already.
Re: It's alive! D building D building D, all on Android
Quite nice!
Re: It's alive! D building D building D, all on Android
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with a handful of failures across three modules exclusively testing C/C++ ABI compatibility. That's really awesome news -- congratulations! :-)
Re: It's alive! D building D building D, all on Android
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with a handful of failures across three modules exclusively testing C/C++ ABI compatibility. This is awesome! Fits very well into my vision of "D Everywhere!" Regards, Kai
Re: It's alive! D building D building D, all on Android
Thank you very much!! Fantastic job!
Re: It's alive! D building D building D, all on Android
On Thursday, 5 May 2016 at 08:17:07 UTC, Joakim wrote: After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with a handful of failures across three modules exclusively testing C/C++ ABI compatibility. Great work!
Re: Live streaming of DConf 2016: confirmed
Joakim writes: >>> Sound doesn't work in the official Ustream Android app either for >>> the Dconf stream, as I noted. My guess would be that the HTML5 >>> player and the Android app try to use whatever audio codecs are >>> built into Android, instead of the app using its own codecs, and >>> the codec chosen by the Dconf livestream is not normally supported >>> on Android for whatever reason. >> >> Also, no audo with iPhone or OS X. Even downloaded Ustream app. >> Must be an upstream problem. Looks like Kai is giving a nice talk >> though. > > Doeme on the irc channel #D found an archived Ustream link that works > on VLC and MX Player on Android, I extracted the other three. Use > those video players' dialogs to open a network stream and paste in > these URLs to watch the talks from yesterday. Yup, listening to yesterday's keynote now with VLC. Still no audio for the live stream. Does anybody have audio working live? What are you using to listen with?
Re: Live streaming of DConf 2016: confirmed
On Wednesday, 4 May 2016 at 14:16:20 UTC, Dan Olson wrote: Joakim writes: On Wednesday, 4 May 2016 at 09:13:12 UTC, Dženis Kiderič wrote: On Wednesday, 4 May 2016 at 09:04:38 UTC, Dicebot wrote: On Wednesday, 4 May 2016 at 08:33:47 UTC, Joakim wrote: There appears to be a problem with the sound on Ustream with Android, at least for me: there is none. I've tried it on a Sony phone and a Samsung tablet, both with the HTML5 player in the browser and the Android app. All other streams work, which suggests it's a problem with the Dconf stream. My guess is that the Dconf stream is using an audio codec that Ustream doesn't support on Android, and it's silently failing, in more ways than one. If anyone else can reproduce this and maybe try to fix it by changing the audio codec, if possible, that'd be great. Have reported it to A/V team, will see if they can fix it timely. Can it be html5 ? https://support.ustream.tv/hc/en-us/articles/208999037-New-Ustream-Player-Overview Sound doesn't work in the official Ustream Android app either for the Dconf stream, as I noted. My guess would be that the HTML5 player and the Android app try to use whatever audio codecs are built into Android, instead of the app using its own codecs, and the codec chosen by the Dconf livestream is not normally supported on Android for whatever reason. Also, no audo with iPhone or OS X. Even downloaded Ustream app. Must be an upstream problem. Looks like Kai is giving a nice talk though. Doeme on the irc channel #D found an archived Ustream link that works on VLC and MX Player on Android, I extracted the other three. Use those video players' dialogs to open a network stream and paste in these URLs to watch the talks from yesterday. Andrei's keynote, Ali, and first half of Luis's talk - http://tcdn.ustream.tv/video/86352137?preset_id=1&e=1462456858&h=2bce1d511ca41cc6e047dcfa00bcaf2d&source=api Remaining 20 mins. of Luis's talk - http://tcdn.ustream.tv/video/86356923?preset_id=1&e=1462459599&h=2368da51796310f9af4a95552c989458&source=api Ethan and Kai's talks - http://tcdn.ustream.tv/video/86359657?preset_id=1&e=1462459842&h=c9e2e39e844a72053bd5b7cb080a5935&source=api Steve and the lightning talks - http://tcdn.ustream.tv/video/86364066?preset_id=1&e=1462460121&h=90fd544b33445b05148ef9662f23bf20&source=api
DConf 2016 speakers: please add your slides to slideshare.net
Upload, then issue a pull request like this: https://github.com/dlang/dconf.org/pull/120. Thanks! -- Andrei
Re: It's alive! D building D building D, all on Android
On Thu, May 5, 2016 at 10:17 AM, Joakim via Digitalmars-d-announce wrote: > > After a sleepless night of trying to build the latest ldc master branch > 2.070.2 on my Android tablet a couple nights ago, almost the full > druntime/phobos standard library test suite passes (only one assert in > std.conv) and the same for the dmd test suite, with a handful of failures > across three modules exclusively testing C/C++ ABI compatibility. > > The 2.070 frontend is written in D, ie ddmd, and also natively compiled on > the Android tablet by ldc 2.068 (alpha build available here, first download > link - https://github.com/joakim-noah/android/releases/tag/polish), hence D > (2.068) building D (2.070) building D (tests, apps, etc.). :) Of course ldc > 2.068 was itself built natively on Android, using the Termux Android app and > the dev tools that it comes with > (https://play.google.com/store/apps/details?id=com.termux&hl=en). Using ldc > and Termux, it's possible to build an Android app from scratch _on_ your > Android device, by following these instructions: > > https://github.com/termux/termux-packages/issues/63#issuecomment-184115581 > > It only took a single night of tweaking to build this because of all the > great work many contributors have put in over the past year. First, there's > all the work that Walter, Daniel, and others have put into C++ integration, > as ldc is now a moderately large mixed D/C++ codebase (Dscanner counts 62.5k > klocs of D in the ddmd frontend, plus ldc's C++ layer and how many ever > umpteen lines are invoked in llvm's C++ codebase). > > Dan got the full ldc testsuite working on the Raspberry Pi a couple weeks ago > (https://github.com/ldc-developers/ldc/issues/1283), in the process fixing > several ARM codegen issues that were hitting Android/ARM also. Finally, > there's all the great work put into ldc recently by Johan, kinke, Dan, > Rainer, and of course David and Kai, to integrate the new D frontend with > llvm and get ldc working on new platforms. > > I'll look at getting JNI working next, along with finishing up a translated > C++/OpenGL ES 2.0 sample app > (https://github.com/googlesamples/android-ndk/tree/master/Teapot). A > linux->Android cross-compiler will need the in-progress work to cross-compile > reals, have to look into that. Once those issues are rounded up, I'll > release a ldc 1.0.0 beta for Android sometime this month. Congratulations, to you and all those involved! Thanks so much for your time. This is really important work. Cheers, R
It's alive! D building D building D, all on Android
After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with a handful of failures across three modules exclusively testing C/C++ ABI compatibility. The 2.070 frontend is written in D, ie ddmd, and also natively compiled on the Android tablet by ldc 2.068 (alpha build available here, first download link - https://github.com/joakim-noah/android/releases/tag/polish), hence D (2.068) building D (2.070) building D (tests, apps, etc.). :) Of course ldc 2.068 was itself built natively on Android, using the Termux Android app and the dev tools that it comes with (https://play.google.com/store/apps/details?id=com.termux&hl=en). Using ldc and Termux, it's possible to build an Android app from scratch _on_ your Android device, by following these instructions: https://github.com/termux/termux-packages/issues/63#issuecomment-184115581 It only took a single night of tweaking to build this because of all the great work many contributors have put in over the past year. First, there's all the work that Walter, Daniel, and others have put into C++ integration, as ldc is now a moderately large mixed D/C++ codebase (Dscanner counts 62.5k klocs of D in the ddmd frontend, plus ldc's C++ layer and how many ever umpteen lines are invoked in llvm's C++ codebase). Dan got the full ldc testsuite working on the Raspberry Pi a couple weeks ago (https://github.com/ldc-developers/ldc/issues/1283), in the process fixing several ARM codegen issues that were hitting Android/ARM also. Finally, there's all the great work put into ldc recently by Johan, kinke, Dan, Rainer, and of course David and Kai, to integrate the new D frontend with llvm and get ldc working on new platforms. I'll look at getting JNI working next, along with finishing up a translated C++/OpenGL ES 2.0 sample app (https://github.com/googlesamples/android-ndk/tree/master/Teapot). A linux->Android cross-compiler will need the in-progress work to cross-compile reals, have to look into that. Once those issues are rounded up, I'll release a ldc 1.0.0 beta for Android sometime this month.
Re: dmd 1.075 and 2.060 release
On Wednesday, 4 May 2016 at 13:26:30 UTC, WebFreak001 wrote: cool! you realize, that's release from 2012 ? :) -- Alexander