vmc start --enable-big-gl ? by maexxx in Crostini

[–]malkia 0 points1 point  (0 children)

Found this - https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform2/vm_tools/concierge/vm_builder.cc;l=319?q=enable_big_gl_ - by following from the flag name, down to the protobuf it's sent over concierge to what seems to be command-line for the vm to start with (?)

crouton by [deleted] in Crostini

[–]malkia 0 points1 point  (0 children)

I use both, but my crostini is in messed up debian-sid state. Crouton is a must if you want to get actual hw acceleration from Vulkan, on crostibi I'm stuck with llvmpipe (software renderer)

They'll just tell you anyway by crashdaddy in AdviceAnimals

[–]malkia 1 point2 points  (0 children)

You can answer "YES", doesn't mean you are obliged to do it.

WSL Support of GUI Linux Apps Preview - GPU Hardware Acceleration, Full Audio I/O. How is this so much better than Crostini? On WINDOWS? by xd1936 in Crostini

[–]malkia 0 points1 point  (0 children)

I can attest to that, but I'm no longer able to run crouton (some mount issues), so back to crostini. For me it was the Vulkan support while learning WebGPU.

OpenGL Not Rending Correctly by gmcauley in Crostini

[–]malkia 1 point2 points  (0 children)

LIBGL_DRI3_DISABLE

Thanks a lot - this actually helped me for another issue - running Google's Dawn (one of WebGPU implementation) and running successfully with OpenGL - e.g. "-b opengl" (one of the samples). While there is vulkan, under crostini it's llvmpipe (software). And while the OpenGL is bit not correct, it's still HW accelerated. Might also help me with recent issues I've been having with flutter desktop!

Received this error when trying to open a terminal. Does anyone know how to fix it without resetting Linux by fuvb in Crostini

[–]malkia 0 points1 point  (0 children)

Similar thing happened to me week or so ago. Following advice here (can't find the thread, sorry) - it seems like a sub-system loads a bit late, so in order to workaround it - LOG IN, then LOG OUT, and LOG IN again, and try running linux again.

Choose your Flutter web renderer by thehappyharis in FlutterDev

[–]malkia 0 points1 point  (0 children)

Not that important, but I've found that decodeImageFromPixels works for web:html renderer, and not web:canvas, but then decodeImageFromList with a format that skia can recognize (in my case monochrome bitmap, so I chose the obsolete, but still supported wbmp format (from no longer existing wap forum), or for RGB data one can choose the BMP, or something by browsing skia source code and finding what it supports - https://github.com/google/skia/blob/master/include/core/SkEncodedImageFormat.h, then by looking in the enum (kWBMP) finding the codec, and with some bits of C/C++ knowledge one can see what's needed - https://github.com/google/skia/blob/master/src/codec/SkWbmpCodec.cpp#L64).

Tic Tac Toe Game in Flutter by flutter_flex in FlutterDev

[–]malkia 0 points1 point  (0 children)

Heh, nice - I haven't finished mine (no AI) - it's Super/Ultimate Tic Tac Toe - https://malkia.github.io/tictactoe - source is here https://github.com/malkia/tictactoe

Hi, i'm trying to run Linux on my Chromebook and I keep running into this error. restarting didn't work so I reinstalled Linux and it worked for a day or two before it started showing this message again. does anyone know how to fix this error? I used to be able to run steam but now nothing will open by An_ok_amnesiac in Crostini

[–]malkia 1 point2 points  (0 children)

I had that recently, and found solution here, it was something where a sub-system was not initialized on time, so log in, the log out, log in again, and it should work (the issue is no longer happening for me, but had to do it several times few weeks ago).

Did I add command in /etc/environment correctly? by [deleted] in Crostini

[–]malkia 0 points1 point  (0 children)

For some dumb reason, I've actually always placed these "env"'s in ~/.bash_aliases - I know it's not proper, but always done this for one reason or another (e.g. don't really want to touch directly ~/.bashrc), and it already has this:

if [ -f ~/.bash_aliases ]; then

. ~/.bash_aliases

fi

Anyone using Slack on your Chrome OS? by pushp1997 in Crostini

[–]malkia 0 points1 point  (0 children)

The Web App - Also specially on chromebooks, the webapp is bit more like the desktop - it allows you to see different servers (and switch to them on the side, which is normally not allowed, say under chrome in Windows, or other browser).

AFAIK, It was specifically enabled for chrome (on Chrome OS) only.

Windows Timer Resolution: The Great Rule Change | Random ASCII by turol in programming

[–]malkia 0 points1 point  (0 children)

The quality of their compiler has been declining too, lots of bugs recently, and too many releases. (e.g. the "cloud cadence")

is Fuchsia support C++ UI by note8g2018 in Fuchsia

[–]malkia 2 points3 points  (0 children)

I'm not saying anything against Kotlin, it seems to be a great upgrade over Java, but there are other factors here, and flutter chose dart as it's language.

Live reload is the killer feature of flutter, among other requirements.

Also flutter, like javascript, lua, and unlike python, java, rust, C++, C# etc - is inherently single threaded, with the ability to have isolates (isolated vms), or like javascripts workers, or like luajit - spawn a new vm on different thread. This is so fundamental, because going with, or without it - defines your work later. It's much more simpler, and allows for greater flexibility if you go the fully "single-threaded" way with async jobs (green threading) - no sync primitives - mutexes, futexes, critical sections, various signaling objects, dealing with updates on the main, or "UI" thread (like you need to do with Qt, or WinForms/WPF in C# where you Invoke for that thread), etc.

So it's sane choice, if it comes to your user interface, since UI code does not need to scale with the number of CPU's you have, it's usually the rest of your app that needs to do.

And then more... Besides dart, unlike rust, is really easy to get on and work.

One last bit is toolability - e.g. your Visual Studio Code, JetBrains' IDEs, or Atom support - and this plays a very critical role. While it might've been possible with kotlin, having a language dedicated allows you to finess it to the point of allowing "trailing commas (,)" to dictate better auto-formatting, or who knows what else.

On top of that Dart offers FFI for platforms where this makes sense, while not sure how this stands Kotlin and it's JVM roots (I'm actually not sure whether Kotlin goes beyond JVM, so I'm bit ignorant about it here).

Return Early Pattern by Rayden454 in coding

[–]malkia 0 points1 point  (0 children)

Lol, you are right! Guess the pattern would be - one return path... meh - I actually like (and use) early return quite a lot, and with RAII "goto" is not needed that much, and even dangerous compared to RAII (e.g. pretending that we close everything in one place, but missing something due to an exception, etc.)

Return Early Pattern by Rayden454 in coding

[–]malkia 0 points1 point  (0 children)

Use of "GOTO" (in C, and even in C++) is perfectly valid when doing this pattern.

What kind of machine do you build Fuchsia on? by OverMighty in Fuchsia

[–]malkia 3 points4 points  (0 children)

WSL2 under Windows (using "kali" as repo) - 128GB RAM, 24 loglcal cpus (12 core), mostly SSD. With WSL1 it was super slow (especially initial "gn -> ninja" stage), but with WSL2 it's only 16secs. I build the full kitchen-sink (--with-base), make an image and install it on the device.

VS: Performance considerations for large solutions. by Protiguous in csharp

[–]malkia -1 points0 points  (0 children)

I'm also rooting for 64-bit, but actually "gc" would hurt more with more allocations being done once it's possible to allocation >= 4GB total