demesisx

joined 2 years ago
MODERATOR OF
[–] [email protected] 4 points 20 hours ago (3 children)

Hot take:

The Three Amigos > Young Frankenstein

[–] [email protected] 3 points 2 days ago

Thanks for the corrections.

[–] [email protected] 4 points 2 days ago

Ahh. Thanks for this insight.

[–] [email protected] 3 points 2 days ago* (last edited 2 days ago) (4 children)

~~It certainly does.~~

~~Until last week, you absolutely NEEDED an NVidia GPU equipped with CUDA to run all AI models.~~

~~Today, that is simply not true. (watch the video at the end of this comment)~~

~~I watched this video and my initial reaction to this news was validated and then some: this video made me even more bearish on NVDA.~~

Edit: corrected and redacted.

[–] [email protected] 6 points 2 days ago

True. Thats why I tend to make small plays instead of being an absolute degenerate gambler.

[–] [email protected] 22 points 2 days ago (3 children)
[–] [email protected] 3 points 2 days ago* (last edited 2 days ago)

The reason for the correction is that the “smart money” that breathlessly invested billions on the assumption that CUDA is absolutely required for a good AI model is suddenly looking very incorrect.

I had been predicting that AMD would make inroads with their OpenCL but this news is even better. Reportedly, DeepSeek doesn’t even necessarily require the use of either OpenCL or CUDA.

[–] [email protected] 64 points 2 days ago (5 children)
[–] [email protected] 12 points 2 days ago (9 children)

Even if they get banned, any startup could replicate their work if it is truly open source. The best thing about their solution is that it breaks the CUDA monopoly that NVDA has enjoyed. Buy your puts when NVDA bounces because that stock is GOING DOWN. There’s no world where a company that makes GPU’s is worth more than both Apple and Microsoft. It’s inevitable.

[–] [email protected] 5 points 3 days ago* (last edited 3 days ago)

the whole articleThe Super Bowl is by far the biggest TV event of the year. But for movie studios eager to capitalize on the enormous power of the NFL as a marketing platform for upcoming blockbusters, it’s not the only game in town, and sports-related opportunities to impress hard-to-reach audiences don’t begin and end there.

Inevitably, there’s considerable focus on which movie ads drop during the Super Bowl, which takes place Feb. 9 this year and will be broadcast by Fox. That’s in part because of the lofty price tag associated with advertising during the game, with reports the network is commanding $7 million on average per 30-second spot.

The opportunities to capitalize on the NFL’s unparalleled popularity, however, don’t stop there. And marketers have become increasingly savvy about leveraging excitement around the playoffs, including this weekend’s league-championship games, which also promise to be an enormous attraction.

Disney has aggressively used football to promote the first major blockbuster to roll out this calendar year, the Marvel sequel “Captain America: Brave New World,” during the playoffs. Scheduled to open Feb. 14, the Anthony Mackie-starring film already received extensive advertising during earlier rounds of the playoffs ahead of a synergistic “sneak peek” during this week’s college-football championship game on Disney-owned ESPN, which averaged more than 22 million viewers, a 12% decline from last year.

Although the Super Bowl, which attracted almost 124 million viewers on NBC and its sister networks last year, dominates sports ratings, the NFL playoffs and division championships still deliver vast audiences of their own, including millions of younger men, a key demographic that’s often difficult to reach via linear TV platforms.

Notably, this weekend’s AFC championship games — defending Super Bowl champs Kansas City Chiefs vs. the Buffalo Bills on CBS and the Philadelphia Eagles vs. the Washington Commanders on Fox, both airing Sunday — will likely deliver lots of eyeballs to whatever ads studios run. Last year’s conference championship games, Kansas City vs. Baltimore on CBS and Detroit vs. San Francisco on Fox, averaged 55.5 million and 56.3 million viewers, respectively.

Ads in those games reportedly cost about $3 million each — a relative bargain compared to the Super Bowl. Although that game carries plenty of intangible benefits, including the media hoopla that surrounds the Super Bowl ads and the game’s ability to reach viewers as interested in the ads as the on-field action.

While there will be other major sporting events between now and summer, including March Madness (the NCAA basketball tournament) and NBA playoffs from April into June, nothing in sports rivals the NFL in terms of size or scale — especially in an increasingly fragmented TV environment.

Film marketers nevertheless face tough decisions on how best to allocate their budgets, since the Super Bowl offers the ability to gin up excitement about movies — often months in advance — but no assurances of success.

Last year’s lineup of Super Bowl movie ads included the eventual hits “Deadpool & Wolverine” (which bypassed in-game rates, airing a teaser spot during the pregame festivities), “Wicked” and “Twisters,” but also “The Fall Guy” and “IF,” which delivered disappointing box office returns when they opened in May.

Studios generally play their cards close to the vest on Super Bowl marketing plans until the last minute, and this year remains no exception.

Disney will be back to promote unspecified properties in Super Bowl LIX, a studio insider confirmed to TheWrap. Opening the same week as the game, “Captain America: Brave New World” is the most immediate concern — the studio is leveraging Harrison Ford turning into Red Hulk in marketing the first “Captain America” movie without Chris Evans. But other major releases due this year include another Marvel title, “Thunderbolts*,” as well as the live-action “Lilo & Stitch” in May. All are possibilities for Super Bowl spots.

But those marketing decisions aren’t strictly limited to movies, with TV and streamers recognizing the inherent power of the Super Bowl for projects with the heft to merit such exposure. Amazon, for example, used the 2022 Super Bowl to tease its “The Lord of the Rings” series, while Disney’s spots last year included FX/Hulu’s period epic“Shōgun,” which went on to dominate the Emmys and Golden Globes.

[–] [email protected] 7 points 3 days ago

I’d go with NixOS in impermanence mode coupled with home-manager and a NixOS service that does the backup “cron job” that another poster talked about (just in case).

Even if she somehow managed to brick the system, you could completely restore it within minutes to the EXACT state you left it in using just these three or four Nix tools. Hell, she could even do it herself by rebooting and selecting a previous config at the start screen. All she needs to do is be able to press down and enter.

7
UUID in Purescript (infosec.pub)
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]
 

I ran into a situation the other day where UUID was needed. Sadly, the UUID module in pursuit depends on an npm package. So, I rolled my own.

I’d be happy to hear of any holes in my implementation and any other critiques anyone has to offer.

Here’s the code:

module UUID where

import Prelude
import Data.Either (Either(..))
import Data.Int.Bits ((.|.))
import Data.Maybe (Maybe(..))
import Data.String (joinWith, length)
import Data.String.Regex (regex, test)
import Data.String.Regex.Flags (noFlags)
import Effect (Effect)
import Data.Int (floor, hexadecimal, toNumber, toStringAs)
import Effect.Random (random)
import Data.Array (replicate)

newtype UUID = UUID String

instance showUUID :: Show UUID where
  show (UUID uuid) = uuid
derive instance eqUUID :: Eq UUID
derive instance ordUUID :: Ord UUID

randomInt :: Int -> Int -> Effect Int
randomInt min max = do
  r <- random
  pure $ floor $ r * toNumber (max - min + 1) + toNumber min

padStart :: Int -> String -> String
padStart targetLength str =
  let
    paddingLength = max 0 (targetLength - length str) 
    padding = replicate paddingLength "0" 
  in joinWith "" padding <> str


parseUUID :: String -> Maybe UUID
parseUUID str = 
  case regex "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" noFlags of
    Left _ -> Nothing
    Right r -> if test r str
               then Just $ UUID str
               else Nothing

uuidToString :: UUID -> String
uuidToString (UUID uuid) = uuid

emptyUUID :: UUID
emptyUUID = UUID "00000000-0000-0000-0000-000000000000"

-- | Generate a UUID v4
genUUID :: Effect UUID
genUUID = do
  -- Generate random 16-bit integers for smaller chunks
  r1 <- randomInt 0 0xFFFF  -- First half of time_low
  r2 <- randomInt 0 0xFFFF  -- Second half of time_low
  r3 <- randomInt 0 0xFFFF  -- time_mid
  r4 <- randomInt 0 0x0FFF  -- time_hi (12 bits for randomness)
  r5 <- randomInt 0 0x3FFF  -- clock_seq (14 bits for randomness)
  r6 <- randomInt 0 0xFFFF  -- First part of node
  r7 <- randomInt 0 0xFFFF  -- Second part of node
  r8 <- randomInt 0 0xFFFF  -- Third part of node

  -- Set the version (4) and variant (10)
  let versioned = r4 .|. 0x4000  -- Set version to 4 (binary OR with 0100 0000 0000 0000)
      variant = r5 .|. 0x8000    -- Set variant to 10xx (binary OR with 1000 0000 0000 0000)

  -- Convert to hex and pad as needed
  let hex1 = padStart 4 (toHex r1) <> padStart 4 (toHex r2)  -- time_low
      hex2 = padStart 4 (toHex r3)                           -- time_mid
      hex3 = padStart 4 (toHex versioned)                    -- time_hi_and_version
      hex4 = padStart 4 (toHex variant)                      -- clock_seq
      hex5 = padStart 4 (toHex r6) <> padStart 4 (toHex r7) <> padStart 4 (toHex r8) -- node
      uuid = joinWith "-" [hex1, hex2, hex3, hex4, hex5]

  pure $ UUID uuid
  where
    toHex = toStringAs hexadecimal
 

It seems like the ultimate way to show WHY and HOW a company is poorly run… or the inverse.

 

This is an important video for the community. Charles (rightly) raises the alarm about lack of oversight on the Cardano board. Pay close attention. This is how an organization can co-opt an entire protocol.

We need to shore up this lack of community oversight ASAP.

 

cross-posted from: https://feddit.uk/post/21508057

 

#fp #functionalprogramming #purescript #scala

 

cross-posted from: https://feddit.uk/post/21298896

Not sure why they didn’t want to post it on Krita’s community channel!

 
 

I refuse to promote a project that isn’t open source. This project claims that it will go open source in 2025 upon mainnet launch.

I have therefore decided to lock this community until that very day.

view more: next ›