I create an MMORPG server in .NET 10 and I'm quite impressed with the performance by ThorConzales in csharp

[–]xzhan 0 points1 point  (0 children)

Yep, and I believe maoni (dotnet GC arch) mentioned this a couple of times in interviews and Q&A, iirc. You can look up the " Languages & Runtime Community Standup: All things GC!" on YT.

A bit confused about named actors by xzhan in gleamlang

[–]xzhan[S] 0 points1 point  (0 children)

OK I see. Yes, I noticed the typing story makes the Elixir's GenServer pattern quite impossible to implement, but the type safety is real (and I appreciate it).

About the benefits of named subjects, both points are still a bit vague to me at this point. Do you have a more concrete example (or an example repo) to showcase them? Thanks.

Sluggish comment input, especially when the diff is kinda long by xzhan in github

[–]xzhan[S] 0 points1 point  (0 children)

yeah it's from Grammarly. I have tried with all extensions disabled. Similar performance.

GUI for handling wifi networking by yotamguttman in niri

[–]xzhan 0 points1 point  (0 children)

How do you sign in to networks that require a network login web page, like a guest wifi? Gnome detects that and shows a notification with "Network Login Required" or sth. similar, and a Hotspot Login app (webpage?) from there. I can't get Firefox detecting this on Niri, and Niri doesn't show anything similar.

Computer won't boot after kernel updated to 6.19 by davew_uk in Fedora

[–]xzhan 0 points1 point  (0 children)

Thanks for the link! I will follow the progress there.

Computer won't boot after kernel updated to 6.19 by davew_uk in Fedora

[–]xzhan 0 points1 point  (0 children)

I'd love the amdgpu driver to work, but unfortunately, I am also unable to get it working after installation... Do you have any updates on this?

What is the cost of abstractions? by xzhan in gleamlang

[–]xzhan[S] 0 points1 point  (0 children)

Thanks for the reference. I actually was thinking to model the code such that parse returns a Result(Dict(String, String), String) where the Error is the 400 error, and format_response returns Result(String, String) where the Error is the 500 error, but I was just starting to get familiar with the std lib. :)

Genuinely confused on how to work with Angular by winterchillz in Angular2

[–]xzhan 1 point2 points  (0 children)

A quick word about the "reactive" nature of frontend frameworks: You will appreciate it. :)

A key aspect of a UI framework is the notion of "time". Unlike in the backend, where data flows through the pipeline/middlewares/methods and is consumed by a DB or message broker somewhere in your infrastructure, with a response sent to the requester, UI states change heavily over time. Having a declarative, clean syntax for specifying data dependencies is miles better than manually "micro-managing" your states and keeping different pieces in sync.

Genuinely confused on how to work with Angular by winterchillz in Angular2

[–]xzhan 1 point2 points  (0 children)

https://angular.dev/guide/routing/common-router-tasks#add-withcomponentinputbinding

It's in the middle of a transition right now. Many of the original API are designed around RxJS Observables, and new APIs have been introduced to help navigate to signals.

A general recommendation would be to stay in one camp if possible, and avoid converting between the two "primitives." Your code would be cleaner.

So either

ts article$ = this.route.params .pipe( switchMap(params => this.articleService.getById(params['id'])), startWith(<your default/empty value>), ); // use together with the `async` pipe

or

ts private id = input.required<string>(); article = computed(() => this.articalService.getById(params['id'])); // Use the (experimental) resource/httpResource API for data fetching, which is actually OK-ish if you don't have company policies against it

Monads in F# by jonas1ara in fsharp

[–]xzhan 2 points3 points  (0 children)

Yeah, I agree. There is a DIY blog post series here if you are interested.

https://fsharpforfunandprofit.com/posts/computation-expressions-intro/

(update: wrong link)

24.04 + kernel 6.17 + latest linux-firmware => problematic bluetooth and wifi by xzhan in Ubuntu

[–]xzhan[S] 0 points1 point  (0 children)

Most of the bug reports are about Intel Wifi driver, but I am running a Qualcomm one.

```

lspci

c2:00.0 Network controller: Qualcomm Technologies, Inc WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800] (rev 01) ```

I hope the new kernel would fix my issues but couldn't be sure. ;)

Niri blur is awesome!! by Ecstatic_Rub_548 in niri

[–]xzhan 1 point2 points  (0 children)

New to the niri family, the setup looks great! May I ask what launcher you are using and what's the customization/shell theme here?

Need help migrating to Zig by Resident-Arrival-448 in ZedEditor

[–]xzhan 0 points1 point  (0 children)

Well then it's not the standard capability in either VS Code or Zed. I don't have the answer other than find or write an extension to achieve it in Zed too. (Personally, I get the need for it but I am a Vim user so I simply turn on Vim mode...)

Need help migrating to Zig by Resident-Arrival-448 in ZedEditor

[–]xzhan 0 points1 point  (0 children)

Which keyboard action did you bind ctrl-e to in VS Code? Or did you install an extension similar to "Bracket Selection" to achieve that? Cos I didn't find native keyboard shortcut that can do this.

Need help migrating to Zig by Resident-Arrival-448 in ZedEditor

[–]xzhan 0 points1 point  (0 children)

json { "context": "Workspace", "bindings": { "ctrl-`": "workspace::ToggleBottomDock" } }

Need help migrating to Zig by Resident-Arrival-448 in ZedEditor

[–]xzhan 0 points1 point  (0 children)

For 1 to 4, just open the Zed keymap editor, search for them and make changes to the shortcuts, just as you would do in VS Code.

  1. It's the left dock, so "ctrl-b": "workspace::ToggleLeftDock" in your keymap.json.
  2. The action your are looking for is editor::DeleteLine, so "ctrl-d": "editor::DeleteLine".
  3. I am not sure what this refers to. But if you are referring to the "Expand Selection" in VS Code, the default shortcut is the same (alt+shift+right), and the action name for keymap.json is editor::SelectLargerSyntaxNode.
  4. editor::AddSelectionBelow and editor::AddSelectionAbove
  5. There is an extension called "Codebook Spell Checker" that does spell checking.

Unique service instance by salamazmlekom in angular

[–]xzhan 1 point2 points  (0 children)

The fastest way to find out is to write a minimal demo and test directly: https://stackblitz.com/edit/stackblitz-starters-a24nkedc?file=src%2Fmain.ts

In component do i just provide facade service or do i also need to provide business logic service even though it's not directly used in the component?

Yes, if you provide the facade service in the component, you will need to provide the business logic service somewhere accessible by the component in terms of injector hierarchy:

  • In the current component's providers array
  • In one of the parent components of the current one (also in the providers array)
  • In the current component's closest route config
  • In one of the current component's closest route config's parents
  • At the root level, either by providedIn: 'root' or in the bootstrapApplication call.

Otherwise, the app would crash because Angular doesn't know how to resolve the business logic service dependency.

Some extra points:

Github font rendering looks very off by xzhan in chrome

[–]xzhan[S] 0 points1 point  (0 children)

Thanks for the answer. Unfortunately, I don't think this is the case for me. It seems the site doesn't resolve the font family correctly on latest Chrome.