Better HN
topnewbestaskshowjobs
Log inSign up

calo_star

56 karma · joined Aug 1, 2020 (6y ago) · 46 submissions

Submissions

comment 1y ago · link · parent

> but for multi-threaded code Rust uses smart pointers like C++

That's not the whole story. There's also Send and Sync marker traits, move by default semantic also makes RAII constructs like Mutex<T> less error prone to use.

comment 1y ago · link · parent

`std::optional<T>`'s style is more akin to using

  if x.is_some() {
    let x_value = unsafe { x.unwrap_unchecked() };
  }
everywhere.

3.

A living fossil: introduction to the s390x architecture [video](media.ccc.de ↗)

2 points · by calo_star · 2y ago · discuss

comment 3y ago · link · parent

Book-films!

comment 3y ago · link · parent

When can we have anything effective against tinnitus...

comment 3y ago · link · parent

No.

comment 3y ago · link · parent

Do you find any notable downsides to using Brave? I was with Kagi until they introduced limit to the 10$/month paid tier.

comment 3y ago · link · parent

> - Google has a number of "sponsored" results at the top of search results, which look identical to the actual search results, other than having a "sponsored".

That was the reason I switched away from Google. Here when I search "apache cassandra" the first result is something something free trial.

edit: I just tried with Bing it gave something similar, oh well.

comment 3y ago · link · parent

> a hilariously negative caricature of a hypothetical experience using it.

That's what Apple has shown, no?

comment 3y ago · link · parent

CoreGraphics often emphasizes it's ability to draw PDF, I guess that has to do with the Display PostScript lineage as well.

comment 3y ago · link · parent

What would be the particular difficulty with intrusive linked lists?

comment 3y ago · link · parent

It's the same in Haskell, Erlang and Elixir.

comment 3y ago · link · parent

Bing also doesn't do "site:" queries properly it seems.

comment 3y ago · link · parent

Erlang processes indeed do cooperative multitasking under the hood, something like yielding control to the scheduler roughly every 1000 function calls.

comment 3y ago · link · parent

Have they also banned TikTok?

comment 3y ago · link · parent

By training it with a LOT of data, I suppose.

comment 3y ago · link · parent

I'm rather sure that Amazon is a company that strictly makes the world a worse place.

comment 3y ago · link · parent

I was hoping to see some sparring with Zuckerberg.

comment 3y ago · link · parent

They are not relevant, the author made a totally irrational choice by benchmarking under Windows, not realizing the Deck is marketed as a Linux machine first and foremost, and they should be ashamed of themself.

comment 3y ago · link · parent

You could also just use 3-phase AC induction motor.

comment 3y ago · link · parent

One thing I love about Elixir's syntax is that virtually everything is a call, take the if statement:

  if condition do
    IO.puts "true"
    :yes
  else
    IO.puts "false"
    :no
  end 
is just a call to the *Kernel.if/2* macro:

  if(true, do: (IO.puts("true"); :yes), else: (IO.puts("false"); :no))
I was joyous when I realized I could pipe stuff into a case statement.

comment 3y ago · link · parent

Sounds like Xiaohongshu without pictures to me.

comment 3y ago · link · parent

Depending on the size of your component that can't be built in Erlang, you may be able to use NIF and throw it on the dirty scheduler.

comment 3y ago · link · parent

Not to mention that no design is absolutely safe, and if security enclaves like Pluton get exploited to run backdoor, it'll be a lot harder for end user to detect.

comment 3y ago · link · parent

Safari's UI just isn't good for me.

comment 3y ago · link · parent

Fascinating! I touched AppKit and Core Animation a long time ago and I had no idea this existed. Does this mean the gesture animations in iOS system (such as opening an app on springboard) are drawn by this?

comment 3y ago · link · parent

How do you animate paths (morphing shapes) with Core Animation?

comment 4y ago · link · parent

I don't know anything about Ruby, but I'm curious, why so?

comment 4y ago · link · parent

I would even say Elixir IS Erlang, so is LFE.

comment 4y ago · link · parent

My hot take: Anyone who's new to the BEAM/ERTS/OTP ecosystem should just go learn Elixir instead: You get to learn Erlang for free, and you get to use nicer build system, package manager etc..
12