Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Migueldeicaza, (edited ) to random
@Migueldeicaza@mastodon.social avatar

Over on twitter there has been a bit of a back and forth on C# and Rust simple json server performance.

I know C# has gotten a ton of performance tuning on the stack, and was wondering if Swift was up to the task.

I have never done Swift on the Server before, but the results are impressive:

Swift: 64k req/sec
.NET: 61k req/sec

https://gist.github.com/migueldeicaza/d85ef9fe0ac0a14162aeff512dd9072e

Original thread:

https://x.com/migueldeicaza/status/1794361106665750860

mackuba,
@mackuba@martianbase.net avatar

@Migueldeicaza I wonder why here https://www.techempower.com/benchmarks/#hw=ph&test=json&section=data-r22 Swift/Vapor is doing much, much worse than C# or Rust?

aleck, to random
@aleck@mastodon.social avatar

After a day with 13in MacBook Air M2, I’m really amazed just how light and silent this thing is. Last MacBook I had was 2016 MBP that feels way more heavy than it really is.
This will be really nice travel companion for next decade.

image/jpeg

mackuba,
@mackuba@martianbase.net avatar

@aleck @mattiem It's like Apple said "sigh, ok… you want an ESC key? fine, you'll get an ESC key. happy now??" 😅

mackuba, to OutOfTheLoop
@mackuba@martianbase.net avatar

I'm getting the impression that there's apparently some kind of drama about the iTerm terminal app?…

mackuba,
@mackuba@martianbase.net avatar

@monocularvision That… doesn't sound bad…

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

#SwiftUI experts around the world:

Is there a way to look inside PrimitiveButtonstyle or its effect on the button and see whether it can be replicated?

Because with .plain, some things break that work with .bordered -- and a custom regular ButtonStyle also doesn't work. So the bordered one must be doing something interesting, but I can't get to the honey 🍯

mackuba,
@mackuba@martianbase.net avatar

@helge @343max @ctietze @chris FYI, this is an old handle - I've been on my own instance martianbase.net for over a year now since that old one shut down unexpectedly :)

todd, to random
@todd@tapbots.social avatar

I’d like to report a UFO sighting.
https://journa.host/@w7voa/112487661786051480

mackuba,
@mackuba@martianbase.net avatar

@todd wow :0 👽

wonkcosmo, to random
@wonkcosmo@masto.ai avatar

Mastodon is a weird place. Most of the time it feels like it’s just a buncha folks who would rather cruise around on horse drawn buggys. It’s really no surprise why this place didnt take off the way we hoped. Then again that was Eugens whole point.

mackuba,
@mackuba@martianbase.net avatar

@wonkcosmo Oh trust me, Bluesky is also flooded with folks who hate whatever the newest AI development is 😅

marioguzman, to random
@marioguzman@mastodon.social avatar

I just can’t with her.

I lay on my bed to watch TikTok before starting dinner and this is where she decides to lay down?! 🤦🏻‍♂️

(Apologies for the apparent crack)
¯_(ツ)_/¯

mackuba,
@mackuba@martianbase.net avatar

@marioguzman "What? This is my place now, tough luck." 😼

tolmasky, to random
@tolmasky@mastodon.social avatar

When Swift came out I commented that I thought it was a bad sign that the “community dialogue” went from how to make cool animations to “how do I get the types to work when parsing json”. Ever since ESM (but not just due to ESM), I feel like something similar happened to JS. We’re spending so much time on abstract import bullshit (import maps, mjs, json imports) or typescript compiler blah blah when publishing. This is a natural consequence of the non-app developers leading language development.

mackuba,
@mackuba@martianbase.net avatar

@dpp @tolmasky @helge I think because ARC was added on iOS in parallel and it worked well there, so they've decided why not put it on macOS too?

mackuba,
@mackuba@martianbase.net avatar

@tolmasky @helge @dpp well, it's solving most of the issue, while not adding the overhead of the GC that's running in the background, stopping things etc., and the used memory that's lying around longer than it needs to…

mackuba,
@mackuba@martianbase.net avatar

@dpp @helge @tolmasky the main issue with MRC was that you had to remember to write it everywhere and not make mistakes while writing it, so ARC solves that, no?

thisismissem, to bluesky
@thisismissem@hachyderm.io avatar

So, kinda like mentioned people only posts, ish.

mackuba,
@mackuba@martianbase.net avatar

@thisismissem Well, with the added feature that you can't accidentally add someone to the conversation by mentioning them in a private message, like in Mastodon's mentioned people only posts ;)

mackuba,
@mackuba@martianbase.net avatar

@josh @thisismissem They definitely want to use some existing solution (they've mentioned MLS), but it will take a lot of time to research and implement and test properly, and they wanted to have something in the meantime because a lot of people want it and they want it now

caseyliss, to random
@caseyliss@mastodon.social avatar

Well, hello, old friend. 🥴

mackuba,
@mackuba@martianbase.net avatar
mackuba, to bluesky
@mackuba@martianbase.net avatar

#Bluesky launched DMs! 👀 (not federated or encrypted yet, just a v1) https://bsky.app/profile/bsky.app/post/3kt3y33tk4w2m

Took them like a month to build it all from start to finish :0

mackuba,
@mackuba@martianbase.net avatar

@Ciantic Yeah, and the UI parts at least can mostly be reused when they implement some better version later

solnic, to random
@solnic@hachyderm.io avatar

Watching "Gang of None? Design Patterns in Elixir" keynote and it's a good reminder that OO creates problems that you literally do not have to have when programming. Just use functional paradigm. Preferably with a functional language.

mackuba,
@mackuba@martianbase.net avatar

@solnic gonna add this to the watch list… but I don't expect to be convinced 🙃

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • tacticalgear
  • mdbf
  • InstantRegret
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • Durango
  • cubers
  • ngwrru68w68
  • anitta
  • cisconetworking
  • GTA5RPClips
  • modclub
  • tester
  • khanakhh
  • everett
  • provamag3
  • osvaldo12
  • Leos
  • normalnudes
  • ethstaker
  • megavids
  • lostlight
  • All magazines