News for hackers. Stuff that matters.

calo_star

Re:Great things about Rust that aren't just performance on Sunday January 12, 2025 @01:49PM (#42675768)
> 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.

Re:C++ Is an Absolute Blast on Tuesday December 24, 2024 @07:38PM (#42506026)
`std::optional<T>`'s style is more akin to using

  if x.is_some() {
    let x_value = unsafe { x.unwrap_unchecked() };
  }
everywhere.
Re:Nanofiche: Small Storage, for Forever on Sunday October 22, 2023 @06:58PM (#37979834)
Book-films!
When can we have anything effective against tinnitus...
Do you find any notable downsides to using Brave? I was with Kagi until they introduced limit to the 10$/month paid tier.
> - 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.

Re:Apple Vision Pro: Apple’s first spatial computer on Monday June 05, 2023 @09:28PM (#36206899)
> a hilariously negative caricature of a hypothetical experience using it.

That's what Apple has shown, no?

Re:Next Computers on Monday May 08, 2023 @08:10PM (#35868647)
CoreGraphics often emphasizes it's ability to draw PDF, I guess that has to do with the Display PostScript lineage as well.
Re:Microsoft is to enable Rust use for Windows 11 kernel on Friday April 28, 2023 @05:03PM (#35747084)
What would be the particular difficulty with intrusive linked lists?
Re:Ruby's Switch Statement Is More Flexible Than You Thought on Wednesday April 26, 2023 @12:52PM (#35716687)
It's the same in Haskell, Erlang and Elixir.
Bing also doesn't do "site:" queries properly it seems.
Re:Elixir and Rust is a good mix on Thursday April 13, 2023 @11:30PM (#35565215)
Erlang processes indeed do cooperative multitasking under the hood, something like yielding control to the scheduler roughly every 1000 function calls.
Re:Italian privacy regulator bans ChatGPT on Friday March 31, 2023 @07:35PM (#35395237)
Have they also banned TikTok?
Re:Understanding ChatGPT on Sunday March 26, 2023 @02:14PM (#35317565)
By training it with a LOT of data, I suppose.
Re:Dpreview.com is coming to an end on Tuesday March 21, 2023 @11:36PM (#35256498)
I'm rather sure that Amazon is a company that strictly makes the world a worse place.
I was hoping to see some sparring with Zuckerberg.
Re:Van Gogh, AMD’s Steam Deck APU on Monday March 06, 2023 @05:20PM (#35048575)
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.
You could also just use 3-phase AC induction motor.
Re:Elixir for Humans Who Know Python on Saturday February 25, 2023 @05:43PM (#34941211)
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.
Sounds like Xiaohongshu without pictures to me.
Re:Erlang's not about lightweight processes and message passing on Saturday January 28, 2023 @01:29AM (#34555707)
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.
Re:How the Xbox 360 knows if your hard-drive is genuine on Tuesday January 24, 2023 @09:57PM (#34513822)
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.
Safari's UI just isn't good for me.
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?
How do you animate paths (morphing shapes) with Core Animation?
Re:Why I Program in Erlang on Wednesday November 02, 2022 @02:44AM (#33432066)
I don't know anything about Ruby, but I'm curious, why so?
Re:Why I Program in Erlang on Wednesday November 02, 2022 @02:39AM (#33432049)
I would even say Elixir IS Erlang, so is LFE.
Re:Why I Program in Erlang on Tuesday November 01, 2022 @08:23PM (#33429834)
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..

Older »