در مورد thread ها توی rust
توی خطهای اولش چقدر دقیق و عالی مفاهیم ترد رو توضیح داده که کلی geeks for geeks و منابع OS اینقدر خوب نگفته بودن.
مخصوصا چیزهایی که در مورد runtime گفته بود.
https://doc.rust-lang.org/book/ch16-01-threads.html
توی خطهای اولش چقدر دقیق و عالی مفاهیم ترد رو توضیح داده که کلی geeks for geeks و منابع OS اینقدر خوب نگفته بودن.
مخصوصا چیزهایی که در مورد runtime گفته بود.
https://doc.rust-lang.org/book/ch16-01-threads.html
سینتکس do در هسکل چطوری کار میکنه؟
https://en.wikibooks.org/wiki/Haskell/do_notation
و
https://stackoverflow.com/a/40832398/10999348
https://en.wikibooks.org/wiki/Haskell/do_notation
و
https://stackoverflow.com/a/40832398/10999348
en.wikibooks.org
Haskell/do notation
Using do blocks as an alternative monad syntax was first introduced way back in the Simple input and output chapter. There, we used do to sequence input/output operations, but we hadn't introduced monads yet. Now, we can see that IO is yet another monad.
کانکارنسی در راسط.
به همراه بک گراندی از ownership (که خیلی خیلی مفیده)
https://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html
به همراه بک گراندی از ownership (که خیلی خیلی مفیده)
https://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html
برفدانه کخ
به نظرم فراکتالهای خیلی قشنگن، کشیدنشون هم تمرین خیلی جذابی برای برنامه نویسی بازگشتیه.
رسم با پایتون و turtle:
https://www.geeksforgeeks.org/koch-curve-koch-snowflake/
به نظرم فراکتالهای خیلی قشنگن، کشیدنشون هم تمرین خیلی جذابی برای برنامه نویسی بازگشتیه.
رسم با پایتون و turtle:
https://www.geeksforgeeks.org/koch-curve-koch-snowflake/
GeeksforGeeks
Koch Curve or Koch Snowflake - GeeksforGeeks
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
اینم لینک rosetta code:
البته که راه انداختن گرافیک برای زبان های مختلف به سادگی نصب turtle پایتون نیست. =)
https://rosettacode.org/wiki/Koch_curve
البته که راه انداختن گرافیک برای زبان های مختلف به سادگی نصب turtle پایتون نیست. =)
https://rosettacode.org/wiki/Koch_curve
ابزار radare2 یه جعبه ابزار کامل کار با باینریه.
حالا یه UI بسیار زیبا با اسم cutter براش نوشتن که کلی کار رو ساده میکنه.
اگه با زبانهای کامپایلری کار میکنید، حتما ببینیدش.
https://github.com/radareorg/cutter
حالا یه UI بسیار زیبا با اسم cutter براش نوشتن که کلی کار رو ساده میکنه.
اگه با زبانهای کامپایلری کار میکنید، حتما ببینیدش.
https://github.com/radareorg/cutter
چگونه یک memory allocator بنویسیم:
https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator
https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator
Tumblr
Memory Allocators 101 - Write a simple memory allocator
Code related to this article: github.com/arjun024/memalloc
This article is about writing a simple memory allocator in C.
We will implement malloc(), calloc(), realloc() and free().
This is a beginner...
This article is about writing a simple memory allocator in C.
We will implement malloc(), calloc(), realloc() and free().
This is a beginner...
Forwarded from جالینوکس
YouTube
ساختار ماژولها در پایتون: چند تا نکته دربارهٔ ایمپورت و نوشتن لایبرریها
درباره rvalue و lvalue در سی و سیپلاسپلاس
https://www.internalpointers.com/post/understanding-meaning-lvalues-and-rvalues-c
https://www.internalpointers.com/post/understanding-meaning-lvalues-and-rvalues-c
Internal Pointers
Understanding the meaning of lvalues and rvalues in C++
A lightweight introduction to a couple of basic C++ features that act as a foundation for bigger structures.
نوشتههای ترمینالی
تفاوت expression و statement (احتمالا نادقیق) هر دستوری توی زبانهای برنامهنویسی statement هست. هر چیزی مثل a=2 یا print یا return اما هر چیزی که قابل محاسبه به یک value باشه میشه expression. مثلا if (true){ int a = 3; } // statement int a = ( 1…
آیا همه function call ها expression هستند؟
حتی اونها که تایپ برگشتی void دارند؟
بله همشون.
فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد.
https://stackoverflow.com/a/56817959
حتی اونها که تایپ برگشتی void دارند؟
بله همشون.
فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد.
https://stackoverflow.com/a/56817959
Stack Overflow
Void function call as expressions
It's clear from the C standard that general function calls are expressions from the definition:
An expression is a sequence of operators and operands that specifies computation of a value, or that
An expression is a sequence of operators and operands that specifies computation of a value, or that
نوشتههای ترمینالی
آیا همه function call ها expression هستند؟ حتی اونها که تایپ برگشتی void دارند؟ بله همشون. فقط اونها که تایپ برگشت void دارن رو نمیشه یه کارهایی باهاشون کرد مثلا assign کرد. https://stackoverflow.com/a/56817959
در نهایت میرسیم به این که چرا نباید void برگردونن توابع و باید واقعا یه value مثل unit (در اسکالا) برگردونن که یه مقدار ولیده.
نه یه تایپ که هیچ مقداری نداره.
نه یه تایپ که هیچ مقداری نداره.
Dynamic voltage and frequency scaling (DVFS)
https://whatis.techtarget.com/definition/dynamic-voltage-and-frequency-scaling-DVFS
https://whatis.techtarget.com/definition/dynamic-voltage-and-frequency-scaling-DVFS
WhatIs.com
What is dynamic voltage and frequency scaling (DVFS) ? - Definition...
What is dynamic voltage and frequency scaling (DVFS)? This definition explains what DVFS is and how it's used to optimize power usage and performance in a variety of products.