Ali AL-mousa retweeted
1 billion loop iterations. 4 languages.
I wrote the same code in js, python, go, and c. Timed executions on a digital ocean dedicated cpu vm, and here are the visualized results.
Not all programming languages are created equal!
Readers added context they thought people might want to know
The JS/Node benchmark has an unoptimized loop. When fixed, it is second fastest behind only C/gcc.
x.com/benjdicken/sta…
Ali AL-mousa retweeted
You asked for it, so here it is.
Visualizing CPU cache speeds relative to RAM.
Cache optimization is important too!
Ali AL-mousa retweeted
مزن فتحت برنامج التدريب (في عدة أقسام)
للمهتمين في برنامج التدريب الصيفي في فريق هندسة البرمجيات الرجاء التقديم هنا
apply.workable.com/mozn-ai/j…
Ali AL-mousa retweeted
هذا رابط السلايدات للي سأل عنها
lafikl.github.io/intro-slide…
لقاء جديد!🤩
مجتمع التقنيه.. انضموا إلينا في لقاء مميز بعنوان :
From novice to expert: navigating your journey in tech
أول لقاء في سلسلة #Tech_Talks يقدمه خالد لافي @iklafi
📍المكان: مزن
🗓️التاريخ: الثلاثاء 27 فبراير
🕒الوقت: 7:30pm
للتسجيل:
form.typeform.com/to/Do7QhGd…
Ali AL-mousa retweeted
Why is Kafka fast?
There are many design decisions that contributed to Kafka’s performance. In this post, we’ll focus on two. We think these two carried the most weight.
1️. The first one is Kafka’s reliance on Sequential I/O.
2️. The second design choice that gives Kafka its performance advantage is its focus on efficiency: zero copy principle.
The diagram below illustrates how the data is transmitted between producer and consumer, and what zero-copy means.
🔹Step 1.1 - 1.3: Producer writes data to the disk
🔹Step 2: Consumer reads data without zero-copy
2.1: The data is loaded from disk to OS cache
2.2 The data is copied from OS cache to Kafka application
2.3 Kafka application copies the data into the socket buffer
2.4 The data is copied from socket buffer to network card
2.5 The network card sends data out to the consumer
🔹Step 3: Consumer reads data with zero-copy
3.1: The data is loaded from disk to OS cache
3.2 OS cache directly copies the data to the network card via sendfile() command
3.3 The network card sends data out to the consumer
Zero copy is a shortcut to save multiple data copies between the application context and kernel context.
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
Ali AL-mousa retweeted
How Do C++, Java, Python Work?
The diagram shows how the compilation and execution work.
Compiled languages are compiled into machine code by the compiler. The machine code can later be executed directly by the CPU. Examples: C, C++, Go.
A bytecode language like Java, compiles the source code into bytecode first, then the JVM executes the program. Sometimes JIT (Just-In-Time) compiler compiles the source code into machine code to speed up the execution. Examples: Java, C#
Interpreted languages are not compiled. They are interpreted by the interpreter during runtime. Examples: Python, Javascript, Ruby
Compiled languages in general run faster than interpreted languages.
Over to you: which type of language do you prefer?
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
Ali AL-mousa retweeted
احب اضيف المواقع التالية ..
ِAtcoder, topcoder, kattis (archive), onlinejudge (formerly uva), poj
و لمشاكل اخرى مختلفة عن نمط الcompetitve programming ممكن الاطلاع على
advent of code
Project Euler
كودرهب قد تكون الاسهل بينها جميعا
اللي يبغى يتدرب ويحل مسائل برمجية اكثر هذي مواقع تقدر تدرب عليها
موقع coderhub.sa موقع عربي واسطوريي
موقع codeforces.com التوقع انه الافضل + موقع hackerrank.com
في كثير مواقع غيرها لكن هذي اللي انا اتدرب عليها
Ali AL-mousa retweeted
تبارك #جامعة_الملك_عبدالعزيز لطلابها وطالباتها خريجي الدفعة الأولى من المعسكر الصيفي للذكاء الاصطناعي الذي نظمته "#سدايا" و "#كاوست"
Ali AL-mousa retweeted
النشرة الرابعة: عن قراءة الأوراق البحثية للمبرمجين.. لماذا يجب أن تقرأ الاوراق البحثية كممارس لعلوم الحاسب؟
newsletterbylinker.substack.…
Ali AL-mousa retweeted
من منطلق حرصنا على المساهمة في تحسين قدرات سوق العمل، وقعنا اليوم مذكرة تفاهم مع @MarnPlatform في مؤتمر #ليب23 الدولي.
Ali AL-mousa retweeted
في خطوة رائعة لإتاحة التقنية للجميع، مشروع Open Assistant يسعى لتدريب نموذج محادثة مشابه لـ ChatGPT مفتوح المصدر والبيانات وقابل للدمج مع تطبيقات أخرى ويمكنه البحث في الانترنت وتخصيصه حسب الحاجة. حالياً في مرحلة جمع البيانات. التفاصيل في الموقع:
open-assistant.io/
1⃣
Ali AL-mousa retweeted
Replying to @alrajhibank
حيالله عملاء مصرف الراجحي💙
جمعنا كل بطاقاتكم المفضلة في تطبيق واحد📱
Ali AL-mousa retweeted
بدء اللقاء الثاني من @JedTechMeetup برعاية كريمة من @SallaApp مع حشد رائع من الحضور! 💚
كل التحيّة إلى:
— مؤسس اللقاء العظيم @salzhrani
— مقدّم اللقاء الرائع @AlooooshM
— أ. نسرين محمود من فريق سلًة القديرين 👏
كان لقاء مميز اليوم. استمتعت بالتقديم ومتابعة المحاضرات و لقاء اشخاص مميزين. متطلع للقاء القادم ويعطيكم العافية جميعا على المساهمة في نجاح الأمسية بحضوركم ومشاركاتكم والقادم أجمل ان شاء الله
@JedTechMeetup
كل الشكر لشركة سلة على رعاية هذا اللقاء
Ali AL-mousa retweeted
تصحيح الرابط
techniya.com/jeddahtechmeetu…
Ali AL-mousa retweeted
⚡ الأربعاء القادم ⚡
برعاية سلٌة
@SallaApp
#لقاء_جدة_التقني
سيتحدث كل من
@nafie_alhelaly
عن قواعد البيانات
@Abdullah_Wex
عن تحليل النصوص
@mokh08
الخدمات السحابية
🗓️ 25 يناير 2023
🕛 7:30 - 10:00 م
➡️ للتفاصيل:
techniya.com/jeddahtechmeet…
Ali AL-mousa retweeted
كتبت موضوع عن النموذج ChatGPT الذي ملأ الدنيا ضجيجاً. لم أكن أنوي ذلك في البداية، ولكن رأيت بأهميته بعد زيادة المتحدثين عن هذه التقنية وافتقار المحتوى العربي لشرح وافٍ عنها. هنا في الجزء الأول شرح موضوعي للتقنية، أتمنى أن يكون مفيداً.
qunaieer.com/my-answer-to-ch…
Ali AL-mousa retweeted
🚨 للمهتمين 🚨
نبحث عن متحمّسين 🔥 لمشاركة المعرفة والخبرة عبر أحاديث خفيفة (10-15 دقيقة) بمجالات متعلّقة بالتقنية وريادة الأعمال الرقمية، في #جدة #الرياض #الخبر هذا الشهر.
فضلاً التواصل بموجز المشاركة المقترحة على الرسائل الخاصة أو البريد الإلكتروني:
➡️ [email protected]
Ali AL-mousa retweeted
العمل على مشاريع ذات عمق اعلى من عملك اليومي ليس ممتعة فقط .. لكن مفيدة جدا في الاضافة الى عملك و ايضا عند التنقل من عمل تقني لأخر سواء كان في هذا السوق او خارجه
وش تحتاج تعرف كمبرمج؟ إذا كنت تعمل كمبرمج وتريد الإرتقاء بمستواك البرمجي فهذه المقالة كتبت لأجلك!
newsletterbylinker.substack.…





























