Yes, THIS!
~2 years ago I've done a test where I've asked the LLM a coding related task:
"There is a bug in the code, Can you find it?"
...but there was no bug. Guess what the LLM did... 💩
Yes, THIS!
~2 years ago I've done a test where I've asked the LLM a coding related task:
"There is a bug in the code, Can you find it?"
...but there was no bug. Guess what the LLM did... 💩
Some #Rust string literal #trivia - the following are equal:
let s = "one line string";
let s = "one line \
string";
And these ones are also equal:
let lines = "a\nmultiline\nstring";
let lines = "a
multiline
string";
and now my favorite... 🥁
let lines = "a\n\
multiline\n\
string";
EGAIR | A proposal to regulate #AI in #EU
"We are a group of artists, creatives, publishers and associations from all over #Europe united in bringing to the public attention how our data and intellectual properties are being exploited without our consent, on a scale never seen before. Such an unprecedented situation has led us to join our forces to reach out to the European Institutions and have our voices heard[...]"
1/2
All these "state management" solutions of the "modern web" like #Redux, Zustand or whatever try to solve state management in UI apps by introducing unfathomable amount of complexity...
...when in reality all you need is #Bevy's #ECS. ¯\_(ツ)_/¯
✨
Flawless:
"Flawless is an execution engine for durable computation. It will run your code until completion even in the presence of hardware or software failure."
"Workflows in #flawless are written in #Rust, in fact they are just regular Rust functions. This means that they can contain arbitrary logic. But instead of native code, the functions are compiled to #WebAssembly and executed in a completely deterministic environment [...]"
@alcinnz Ha, thank you for the link, Adrian!🙂
I've just watched the whole thing - what a deep dive!
> I like that Sebastian Lague included his failures...
Yes, totally agree! Very humble. In the end, we are all human and struggling with things is just part of the process of creating something.
Implementing Drag & Drop is hard!
*click*?.... No, there was movement!
What should happen if people, during drag, accidentally push another secondary (mouse) button? Should the drag & drop process "abort", "pause" or "finish"?
In the case of "pause":
How can someone resume the drag & drop process then?
What should happen, if the mouse is out of the workspace area or another object is between the dragged object and cursor?
So many states and workflows to consider...
> "There are over 600 lines of test code for every line of code in SQLite. Tests cover 100% of branches (and 100% MC/DC) in the library. The test suite [includes] fuzz tests, boundary value tests, regression tests, and tests that simulate operating system crashes, power losses, I/O errors, and out-of-memory errors."
Let's go! 🚀
> "Note that a declared type of “FLOATING POINT” would give INTEGER affinity, [...], due to the “INT” at the end of “POINT”."
Hilarious!😅
Oh nooees!!😢 #Bevy 0.15 breaks #UI tests.😭 Layouts are not calculated anymore in tests.
It apparently requires a different setup of the `World`, but I'm not sure how to set it up.
I've used CameraPlugin, WindowPlugin, UiPlugin etc., but it still doesn't work (works in 0.14 though).
I've seen this setup from Bevy repo, but it seems a bit too granular for me (I prefer using bunch of Plugins):
Have to look more deeply into it tomorrow.
3. Me suspecting UiPlugin (because where to render?)
4. `Go To Definition` of UiPlugin
5. Seeing the following definition:
pub struct UiPlugin {
/// If set to false, the UI's rendering systems won't be added to the `RenderApp` and no UI elements will be drawn.
/// The layout and interaction components will still be updated as normal.
pub enable_rendering: bool,
...
}
Hm, well that `enable_rendering` seems "suspicious" to me, so let's deactivate that and see what happens...
2/?
6. Set `enable_rendering` to false:
app.add_plugins(MinimalPlugins.set(ScheduleRunnerPlugin::run_once()))
.add_plugins((
TransformPlugin,
HierarchyPlugin,
WindowPlugin::default(),
UiPlugin {
enable_rendering: false,
..default()
},
DefaultPickingPlugins::default(),
))
.add_plugins(NodeSelectionPlugin);
7. Execute test...
3/4
Ah, YES!! I've finally been able to fix my weird bug I'd run into after upgrading my #Bevy toy project from 0.12 -> 0.15! :awesome:
I've almost gotten insane!😖
Very happy now!😊
I've suggested some more examples in migration guide from 0.14 -> 0.15 (which was the reason for my app breaking):
https://github.com/bevyengine/bevy-website/issues/1920
Hopefully others are now less likely to run into this (it's so gnarly, because no compile error). 🤞
See below for my toy project if you're interested 😄
#Bevy is just AMAZING (see also next posts🧵)! :awesome:
1. Want to unit test #UI Plugin.
2. Following setup runs into infinite loop:
let mut app = App::new();
app.add_plugins(MinimalPlugins.set(ScheduleRunnerPlugin::run_once()))
.add_plugins((
TransformPlugin,
HierarchyPlugin,
WindowPlugin::default(),
UiPlugin::default(),
DefaultPickingPlugins::default(),
));
1/?
Physical vs. Logical coordinates are so CONFUUUUUUSIIIING!!
AAHHH!!! Send HALP!
🥴
12 Days of Shitmas 💩
@garrett Aw, so glad you like it!😊
Yes, i know, right!?
I can't really put into words why I like this channel so much.
It's storytelling, design, innovation, philosophy and an eye for quality packaged into something one can call...art! ✨
@alcinnz Nice, thank you for the list.
The following is not educating about computing & technology, but architecture & design (I assume you're also interested in design, so you might like it as well):
Channel is called DamiLee:
https://inv.nadeko.net/channel/UCJ_2hNMxOzNjviJBiLWHMqg
Her storytelling is very inspiring and her videos give off such positive vibes!
First video I've seen of her was:
Can this house slow down time?
https://inv.nadeko.net/watch?v=d7XKX2WsEnA
#Bevy's Next Generation Scene/UI System - by cart
"So you're in computer science, but don't have a smartphone!? That's weird!"
...is the same as saying:
"So you're a doctor, but you don't smoke cigarettes!? That's weird!"
It is everything but weird!
Make It Yourself:
"Across the world creative people are making high quality things of all kinds and sharing their work freely with all of humanity.
Make it Yourself is a digital book that showcases this incredible talent, bringing together over 1000 useful DIY projects to demonstrate just what is possible when you make things yourself.
Each featured item links directly to their original project websites, where you’ll find everything needed to make them."
Software Engineer with an incredible thirst for knowledge, who shares that knowledge with others, so that they can become their best selfs.Interested in #Rust, #WebAssembly, #TypeScript, #OpenSource, #WebDev, #WebDesign and a lot of other interesting stuff.Let's have some deep conversations about interesting topics. 🙂 I'm open-minded, but also hold strong opinions.Dare to think for yourself.Be kind.Strive for excellence.(moved from mastodon.technology - on Mastodon since Feb 2019)
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.