2151
16

Jul 1, 2024

Aman Salykov writes:

This blog post is the result of my attempt to implement high-performance matrix multiplication on CPU while keeping the code simple, portable and scalable. The implementation follows the BLIS design, works for arbitrary matrix sizes, and, when fine-tuned for an AMD Ryzen 7700 (8 cores), outperforms NumPy (=OpenBLAS), achieving over 1 TFLOPS of peak performance across a wide range of matrix sizes.

By efficiently parallelizing the code with just 3 lines of OpenMP directives, it’s both scalable and easy to understand. The implementation hasn’t been tested on other CPUs, so I would appreciate feedback on its performance on your hardware. Although the code is portable and targets Intel Core and AMD Zen CPUs with FMA3 and AVX instructions (i.e., all modern Intel Core and AMD Zen CPUs), please don’t expect peak performance without fine-tuning the hyperparameters, such as the number of threads, kernel, and block sizes, unless you are running it on a Ryzen 7700(X). Additionally, on some Intel CPUs, the OpenBLAS implementation might be notably faster due to AVX-512 instructions, which were intentionally omitted here to support a broader range of processors. Throughout this tutorial, we’ll implement matrix multiplication from scratch, learning how to optimize and parallelize C code using matrix multiplication as an example.

Read Beating NumPy's matrix multiplication in 150 lines of C code

2152
3

The site seems very locked down lol, i guess they really want me to pay $300 for semi high resolution images, so i want to scrape the previews instead. it's probably some sort of script since with noscript on the site doesn't even load. It's even beaten my 'absolute enable right click' Extension , and while i can still get the right click going and take a screenshot, i have no option to open the image itself in a new window.

Next up was a simple scraping extension, one i use regularly is webscraper but it's a huge process to use and can snag super easily, so i tried this one called Download All images

That one didn't grab anything besides headers and icons and seemed to have gotten me IP banned. Thankfully i have a vpn and they didn't even revoke my gallery access and i'm back at it again.

I have tried commercial scraping software before but the problem is, afaik these are very big on following robots.txt and that makes a lot of sites unscrapable.

So you've all heard my dilemma, and i'm curious, cause at this point it's a game. How would you all approach this? what software would you use?

2153
9

Since the inception of the Swift language, XCTest has been the preferred testing framework for the majority of Swift developers. However, deeply rooted in Objective-C, its API design heavily borrows from the traditions of that language, failing to fully reflect the modern best practices of Swift programming. In some respects, this has even become a barrier to further development. To overcome these limitations, Apple officially introduced Swift Testing at WWDC 2024—a new testing framework specifically designed for the Swift language. This framework has been integrated into Xcode 16 and positioned as the official testing tool of choice. In this article, we will delve into the features, usage, and unique aspects of the Swift Testing framework, analyzing how it helps developers write test codes faster (Swifter) and more in line with Swift programming habits (Swifty).

2154
14

Piped link: https://piped.video/watch?v=3so7xdZHKxw

Radiance Cascades are an innovative solution to global illumination from the devs of Path of Exile 2.

I think this video is informative and describes the new approach in a way that’s easy to follow. It’s simple with impressive results.

Link to paper:
https://drive.google.com/file/d/1L6v1_7HY2X-LV3Ofb6oyTIxgEaP4LOI6/view?usp=sharing

A more impressive demo:
https://youtu.be/6O9-BUDk_-c?si=j-cyMMPyjIBthDYw
https://piped.video/watch?v=6O9-BUDk_-c

2155
13

cross-posted from: https://feddit.de/post/13720140

For example, there is Material Notes which has a editor toolbar with bold, ~~indented~~, ~~stroke~~, etc. But this is rendered, exported to json or syntax like Markdown. This app too, in which i write this on lemmy, does the same. We have ☐, ☒, •, ‣ in Unicode, 𝗕𝗼𝗹𝗱, 𝑖𝑛𝑑𝑒𝑛𝑡, s̵t̵r̵o̵k̵e̵, so why not use this?

Basically, what i'm looking for is a text editor with editor toolbar/keystrokes for Android or Linux, which adds unicode symbols for rich text. It would make reading plain text notes/todo lists cross-device simpler. Yes, there's UnicodePad and Charmap but that's not the same.

2156
46

hello,

I got into learning Perl because some people on IRC said so. at first I wasn't interested in Perl because I already know Python and Python can almost do anything Perl can. I still gave it a try to kinda have some experience learning new language. I am on chapter 3 right now and would make another post about my progress.

https://blob.perl.org/books/beginning-perl/3145_Chap03.pdf

2157
20

Just learned that Wikimedia has a project called Wikifunctions. I'm a big fan of Wikipedia and associated projects, and on its face sounds like a cool site. I do wonder how this would work in practical terms though, like how could it actually be used?

2158
17

I'm at work in a slow moment with only my phone and pydroid, I wanted to see if there was anything I could learn and mess around with while I'm here

2159
14
2160
146
  • The developer of the 'node-ip' project made the GitHub repository read-only after disputing the severity of a reported vulnerability (CVE-2023-42282).
  • The vulnerability involved incorrect identification of private IP addresses in non-standard formats, but the developer argued it had a dubious security impact.
  • The situation highlights ongoing issues with unverified CVE reports causing unnecessary panic and frustration for open-source project maintainers.
2161
16
submitted 2 years ago* (last edited 2 years ago) by MortySmith@programming.dev to c/programming@programming.dev
2162
6
New UUID Formats (www.ietf.org)

This document presents new time-based UUID formats which are suited for use as a database key.

2163
29

This specification defines the UUIDs (Universally Unique IDentifiers) and the UUID Uniform Resource Name (URN) namespace. UUIDs are also known as GUIDs (Globally Unique IDentifiers). A UUID is 128 bits long and is intended to guarantee uniqueness across space and time. UUIDs were originally used in the Apollo Network Computing System and later in the Open Software Foundation's (OSF) Distributed Computing Environment (DCE), and then in Microsoft Windows platforms.

2164
118
2165
15

tl;dr technical about about the upcoming sched_ext interface in Linux 6.11, used for running out-of-tree CPU schedulers on the fly

2166
85

Fullstack GUI library for web, desktop, mobile, and more. In Rust using a HTML + CSS renderer built on top of Servo.

2167
46

I've seen these posts

But actually I haven't been able to figure out exactly how to get the posts a user has made in lemmy. I've seen this page but I think this is for a different lemmy instance, I'm not sure https://join-lemmy.org/api/interfaces/GetPosts.html

Can anyone point me to a documentation on how to make this?

2168
193

The project home page.

The Github

Looks just like VS Code and I think it's still built on electron so take that as you will.

2169
40
2170
27
submitted 2 years ago* (last edited 2 years ago) by bullshitter@lemmy.ml to c/programming@programming.dev

I want to create an incremental search function for a language. It has to show the same result when I use either Devnagri or English ( how it sounds) For example : 'Kya' should show क्या , 'क्या' should show क्या

Please suggest some guide or tutorial, I am okayish in programming and open to learning

Cheers.

2171
10
submitted 2 years ago* (last edited 2 years ago) by fatbobman@programming.dev to c/programming@programming.dev

At WWDC 2024, Apple once again introduced a series of remarkable new APIs for SwiftUI’s ScrollView component. These new features not only enhanced developers’ ability to control scrolling behaviors but also reflected the ongoing evolution of the SwiftUI framework’s design philosophy. This article will explore these latest scroll control APIs and review the development of all significant APIs related to scroll control since the inception of SwiftUI. Through this micro view, we will reveal the changes in SwiftUI’s design style over the past few years and the underlying macro design trends.

2172
76
2173
61

I've encountered this many times where I simply don't understand the context and use of an API based of the API documentation unless I can find an example that already utilizes it in a working project. The first thing that comes to mind is Py Torch. I've tried to figure out how some API features work, or what they are doing in model loader code related to checkpoint caching but failed to contextualize. What harebrain details are obviously missing from someone who asks such a silly question?

2174
28

A new ADP Research Institute report shows employment for software developers has declined from January 2018. Data elsewhere show fewer opportunities for people to fill software development and tech roles after the US labor market is no longer as hot as it was a few years ago.

"The tech job market has undeniably slowed since the end of 2022, cooling after a few years of rapid hiring during the pandemic recovery," Daniel Zhao, Glassdoor's lead economist, said in a written statement. "Rising interest rates, the end of pandemic-era trends and a slowing economy overall has crimped demand for tech workers."

2175
-11
view more: ‹ prev next ›

Programming

28322 readers
767 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS