Chieh-Hsien Chen represents everything that a captain must be for a baseball team. Being named Premier12 2024 MVP is recognition of his leadership on and off the field. Now, he has left his mark on Premier12 history, becoming the third MVP in the history of the tournament.
#Premier12
Yu-Min Lin on how the @premier12 gold transforms baseball in his country:
“It changes a lot. Now every Taiwan player — young guys, old guys — knows we can be champions too. We’re not just a normal country, a small country. Small countries can be world champions.”
Have you ever wanted to train LLMs in pure C without 245MB of PyTorch and 107MB of cPython? No? Well now you can! With llm.c:
https://t.co/PoGTZIwASL
To start, implements GPT-2 training on CPU/fp32 in only ~1,000 lines of clean code. It compiles and runs instantly, and exactly matches the PyTorch reference implementation.
I chose GPT-2 to start because it is the grand-daddy of LLMs, the first time the LLM stack was put together in a recognizably modern form, and with model weights available.
I love reading such detailed technical articles, those guys took Kafka apart and managed to understand the cause of their 3 seconds write latency in Kafka producers. Turns out it was caused by the flush/commit of the ext4 file system journal metadata. Of course doesn't mean ext4 is bad it's just not a fit for Kafka's workload. So they end up switching to XFS and improve the writes by 82%!
The way they discovered this is interesting, all the tooling they wrote for Java/Kernel is just amazing, recommend you guys checking it out.
full article
https://t.co/WxcsWoHPgm
I'll make a video covering this in details once I get a chance, I want to learn more about XFS and ext4, my knowledge there is limited.
I did a brief summary on the article on my second channel for those interested https://t.co/CZFOsrNxL9
看到隊長在ig po出影片比較他當年在Paris-Nice同路段攻擊的比較影片
Alberto Contador's instagram:
Same race, same stage, same climb and same strategy.
https://t.co/zC10LUCM2h
https://t.co/vQvblWkWdC
https://t.co/xWlONHpnSJ
Which ORM is better for your .NET project?
I'm sure the answer will surprise you. 🔥
Let's compare EF Core and Dapper:
- Level of abstraction
- Performance
- Features
1. 𝗟𝗲𝘃𝗲𝗹 𝗼𝗳 𝗔𝗯𝘀𝘁𝗿𝗮𝗰𝘁𝗶𝗼𝗻
EF Core abstracts away the underlying database structure. This lets you work with your data using a more object-oriented approach. EF can be easier to work with if you're new to databases or dealing with a complex data model.
Dapper is a more lightweight ORM that provides a minimal abstraction over your database. You'll have more control over the SQL queries, which can be helpful if you want to optimize the performance of your queries. You must understand the underlying database structure well and be comfortable working with raw SQL queries.
2. 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲
Dapper provides less abstraction and can be faster than EF Core when executing complex queries.
Dapper runs SQL queries you provide from your code, whereas EF Core generates them based on the data model you've defined.
Although EF 8 has raw SQL support, similar to Dapper. Performance isn't on par yet.
The performance difference between EF Core and Dapper is not always significant. In some cases, EF Core can be just as fast as Dapper.
3. 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀
EF Core includes support for a wide range of features:
- LINQ queries
- Migrations
- Multiple database providers
- Change tracking (unit of work)
Dapper is a more focused tool designed for working with SQL databases. The main feature is mapping SQL queries to POCOs. But you can also execute stored procedures and functions.
Is it even worth comparing them?
Yes, because it's important to understand the differences.
But here's what I do in my applications.
I choose to work with both EF Core and Dapper.
For example, you can write most of your queries with EF. Then, you can reach for Dapper if you need to squeeze out more performance.
Dapper is still more powerful for UPDATE and DELETE queries, so there's an advantage.
P.S. If you want to accelerate your .NET and software architecture skills, consider joining The .NET Weekly - my newsletter with 42,000+ engineers.
Subscribe here → https://t.co/U6GD8Dsdiq
What do you think about using EF Core and Dapper together?
I’m thrilled to announce the tech preview of Skip: dual-platform app development in Swift.
You write a modern iOS app in Swift and SwiftUI. Skip’s Xcode plugin generates a native Android Kotlin and Compose version!
Docs: https://t.co/9O7v6HS0CJ
Video: https://t.co/tHNWpj1QlJ