درمورد محدودیت های پایتون در threading
یا همون GIL
https://pythonspeed.com/articles/python-gil
و داکیومنت رسمی:
https://wiki.python.org/moin/GlobalInterpreterLock
یا همون GIL
https://pythonspeed.com/articles/python-gil
و داکیومنت رسمی:
https://wiki.python.org/moin/GlobalInterpreterLock
Python⇒Speed
When Python can’t thread: a deep-dive into the GIL’s impact
Python’s Global Interpreter Lock (GIL) stops threads from running in parallel or concurrently. Learn how to determine impact of the GIL on your code.
👍1
درمورد Go به نظرم زیبا بود:
All the complexity that doesn't live in the language now lives in your codebase. All the invariants you don't have to spell out using types, you now have to spell out using code: the signal-to-noise ratio of your (very large) codebases is extremely poor.
https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang
All the complexity that doesn't live in the language now lives in your codebase. All the invariants you don't have to spell out using types, you now have to spell out using code: the signal-to-noise ratio of your (very large) codebases is extremely poor.
https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang
fasterthanli.me
Lies we tell ourselves to keep using Golang
In the two years since I've posted I want off Mr Golang's Wild Ride, it's made the rounds time and time again, on Reddit, on Lobste.rs, on HackerNews, and elsewhere. And every time, it elicits the ...
🔥3😱1
این برنامه نویس ها که میگن تو پایتون از map و filter استفاده نکنید و خیلی فانکشناله و به جاش list comprehension استفاده کنید
میدونن خود list comprehension از کجا اومده؟
از هسکل!
میدونن خود list comprehension از کجا اومده؟
از هسکل!
👍5😁3
درمورد PHD و مرز دانش
https://matt.might.net/articles/phd-school-in-pictures/
https://matt.might.net/articles/phd-school-in-pictures/
👍1
مجموعه ابزار expect برای unix که با tcl نوشته شده:
https://www2.lib.uchicago.edu/keith/tcl-course/topics/expect.html
https://www2.lib.uchicago.edu/keith/tcl-course/topics/expect.html
نوشتههای ترمینالی
مجموعه ابزار expect برای unix که با tcl نوشته شده: https://www2.lib.uchicago.edu/keith/tcl-course/topics/expect.html
حالا به چه درد میخوره؟
اینکه بتونین یه برنامه interactive رو مثل یه برنامه batch معمولی تست/خودکارسازی کنید.
Good Unix programs are written as tools, and are meant to be programmed with. The primary mechanism for hooking tools together is the pipe, combined with the standard input / standard output filter model (though pipes can also work with more file descriptors). However, there is a class of Unix programs that can't be hooked together this way: programs which talk directly to a terminal device (i.e., interactive programs).
خوندن ویکیپدیاش هم خالی از لطف نیست:
https://en.wikipedia.org/wiki/Expect
اینکه بتونین یه برنامه interactive رو مثل یه برنامه batch معمولی تست/خودکارسازی کنید.
Good Unix programs are written as tools, and are meant to be programmed with. The primary mechanism for hooking tools together is the pipe, combined with the standard input / standard output filter model (though pipes can also work with more file descriptors). However, there is a class of Unix programs that can't be hooked together this way: programs which talk directly to a terminal device (i.e., interactive programs).
خوندن ویکیپدیاش هم خالی از لطف نیست:
https://en.wikipedia.org/wiki/Expect
Wikipedia
Expect
extension to the Tcl scripting language
روی این یه فریم ورک تست هم اومده که تست هایی که با expect نوشتیم رو اجرا کنه
به اسم Dejagnu
اموزش خوب خیلی سخت ازش پیدا میشه.
این دو تا رو داشته باشید:
اموزش pdf مختصر (و تا حدی مفید):
https://web.archive.org/web/20120322145747/https://www.kalycito.com/documents/Quick_Start_DejaGNU.pdf
آموزش خود gnu در قالب یه فایل پیوسته و قابل خوندن (فایل htmlش سخته واقعا هی جا به جا بشی)
https://www.gnu.org/software/dejagnu/manual/index.html
اینم توضیحات خوبی داده:
https://www.math.utah.edu/docs/info/dejagnu_1.html
به اسم Dejagnu
اموزش خوب خیلی سخت ازش پیدا میشه.
این دو تا رو داشته باشید:
اموزش pdf مختصر (و تا حدی مفید):
https://web.archive.org/web/20120322145747/https://www.kalycito.com/documents/Quick_Start_DejaGNU.pdf
آموزش خود gnu در قالب یه فایل پیوسته و قابل خوندن (فایل htmlش سخته واقعا هی جا به جا بشی)
https://www.gnu.org/software/dejagnu/manual/index.html
اینم توضیحات خوبی داده:
https://www.math.utah.edu/docs/info/dejagnu_1.html
www.gnu.org
DejaGnu
Next: Introduction, Up: (dir) [Contents][Index]
نوشتههای ترمینالی
حالا به چه درد میخوره؟ اینکه بتونین یه برنامه interactive رو مثل یه برنامه batch معمولی تست/خودکارسازی کنید. Good Unix programs are written as tools, and are meant to be programmed with. The primary mechanism for hooking tools together is the pipe, combined…
الان دارم نگاهش میکنم یکی از گزینه های خیلی خوب برا تست نوشتن پروژه های کامندلاینیه =)
در مورد زبان برنامه نویسی ایده آل
https://www.avestura.dev/blog/ideal-programming-language
دید فانکشنال و خوبی داره
https://www.avestura.dev/blog/ideal-programming-language
دید فانکشنال و خوبی داره
Avestura's Blog
An opinion on what's a good general-purpose programming language
What features should a programming language have to be ideal, in my opinion?
چطور ناامید نشیم و سورس کد های بزرگ و پیچیده رو بفهمیم و مشارکت کنیم
https://matnbaz.net/blog/contributing-to-complex-projects
https://matnbaz.net/blog/contributing-to-complex-projects
متنباز
مشارکت در پروژههای پیچیده – متنباز
این پست یک راهنما برای درک پروژههای بزرگ و نحوه مشارکت در آنهاست.
👍4
آموزش/توضیح یک سری دستور لینوکس
https://github.com/arm-on/linuxessentials
نه به درد cheat sheet میخوره نه آموزش،
بیشتر اینطوریه که از روش بخونید ببینید کدوما رو بلد نیستید برید یاد بگیرید چون چیزای خوبی رو انتخاب کرده و پوشش داده
https://github.com/arm-on/linuxessentials
نه به درد cheat sheet میخوره نه آموزش،
بیشتر اینطوریه که از روش بخونید ببینید کدوما رو بلد نیستید برید یاد بگیرید چون چیزای خوبی رو انتخاب کرده و پوشش داده
GitHub
GitHub - arm-on/linux-essentials: The most important commands used to master the essentials of the linux operating system
The most important commands used to master the essentials of the linux operating system - GitHub - arm-on/linux-essentials: The most important commands used to master the essentials of the linux op...
👍1
نوشتههای ترمینالی
برای آشنایی اولیه با ترمینال لینوکس این دستورات رو پیشنهاد میکنم یاد بگیرید https://www.hostinger.com/tutorials/linux-commands
اموزش لینوکس زیاد گذاشتم تو چنل احتمالا
اما این که الان میذارم فارسی و تا حد خوبی دقیق و تازهکار راه اندازه.
https://raw.githubusercontent.com/saharshaker/DanceWithLinux/master/Dance%20with%20Linux%2011.22.pdf
از کلیات لینوکس و چراییش میگه و درمورد shell و اصول خیلی اولیه از اسکریپت نویسی به زبون جالب و ساده
صفحه توضیح کتاب هم اینجاست:
saharshaker.com/dance-with-linux/
(دقت داشته باشید که این کتاب آزاد منتشر شده و شما هم میتونید shareش کنید)
اما این که الان میذارم فارسی و تا حد خوبی دقیق و تازهکار راه اندازه.
https://raw.githubusercontent.com/saharshaker/DanceWithLinux/master/Dance%20with%20Linux%2011.22.pdf
از کلیات لینوکس و چراییش میگه و درمورد shell و اصول خیلی اولیه از اسکریپت نویسی به زبون جالب و ساده
صفحه توضیح کتاب هم اینجاست:
saharshaker.com/dance-with-linux/
(دقت داشته باشید که این کتاب آزاد منتشر شده و شما هم میتونید shareش کنید)
سحر شاکر
کتاب Dance with Linux آپدیت بهمنماه
گاهی اوقات آدم دوست دارد یکجوری علایقش را نشان دهد و جالبتر اینکه شروع کند به یاد دادن چیزهایی که به آنها علاقه دارد و از دلایل دلباختناش بگوید. افراد بیشتری را با دنیایی که دوستش دارد آشنا کند. از وقتی که با دنیای اپنسورس آشنا شدم و مهمتر از آن فلسفۀ…
👍4
نوشتههای ترمینالی
اموزش لینوکس زیاد گذاشتم تو چنل احتمالا اما این که الان میذارم فارسی و تا حد خوبی دقیق و تازهکار راه اندازه. https://raw.githubusercontent.com/saharshaker/DanceWithLinux/master/Dance%20with%20Linux%2011.22.pdf از کلیات لینوکس و چراییش میگه و درمورد shell…
درمورد مقاله ی کلیسای جامع و بازار
متن انگلیسیش:
https://creatingaction.stanford.edu/pdf/cathedral-bazaar.pdf
صفحه ویکیپدیا:
https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar
و ترجمه فارسیش توسط علی مولایی عزیز
https://molaei.org/the-cathedral-and-the-bazaar/
متن انگلیسیش:
https://creatingaction.stanford.edu/pdf/cathedral-bazaar.pdf
صفحه ویکیپدیا:
https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar
و ترجمه فارسیش توسط علی مولایی عزیز
https://molaei.org/the-cathedral-and-the-bazaar/
نوشتههای ترمینالی
https://wiki.python.org/moin/PythonVsHaskell
توضیح موناد با list comprehension پایتون
https://lukeplant.iss.one.uk/blog/posts/understanding-monads-via-python-list-comprehensions/
https://lukeplant.iss.one.uk/blog/posts/understanding-monads-via-python-list-comprehensions/
Luke Plant's home page
Understanding Monads Via Python List Comprehensions
An attempt to explain monads and their usefulness in Haskell, assuming only some simple knowledge of Python.
اینم جالب بود
قابلیت های عجیب زبان های مختلف
https://stackoverflow.com/questions/1995113/strangest-language-feature
قابلیت های عجیب زبان های مختلف
https://stackoverflow.com/questions/1995113/strangest-language-feature
Stack Overflow
Strangest language feature
What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered?
Please only one feature per answer.
Please only one feature per answer.
👍4🤯1
بیاید بدترین زبون برنامه نویسی دنیا رو بسازیم
https://youtu.be/vcFBwt1nu2U
https://youtu.be/vcFBwt1nu2U
YouTube
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
There's something good you can say about every programming language. But that's no fun. Instead, let's take the worst features of all the languages we know, and put them together to create an abomination with the worst syntax, the worst semantics, the worst…
🔥3
Forwarded from Programming Resources via @like
Static web publishing for Front-End Developers. Simple, single-command web publishing. Publish HTML, CSS, and JS for free, without leaving the command line.
با این برنامه که به سادگی توی ترمینال نصب میشه میتونید با یه کامند ساده پروژهتون که static عه و شامل html و css و js میشه رو به راحتی روی یه دامنه که به surge.sh ختم میشه بیارین بالا.
#static #web #deploy #publish #frontend #front #end #front-end #command #cli #terminal
@pythony
https://surge.sh
با این برنامه که به سادگی توی ترمینال نصب میشه میتونید با یه کامند ساده پروژهتون که static عه و شامل html و css و js میشه رو به راحتی روی یه دامنه که به surge.sh ختم میشه بیارین بالا.
#static #web #deploy #publish #frontend #front #end #front-end #command #cli #terminal
@pythony
https://surge.sh
👍2
جزو زیباترین مطالبی که خوندم:
مقایسه جنریک های راسط و cpp
https://www.tangramvision.com/blog/c-rust-generics-and-specialization
یه نکته جالبش:
مبحث specialization توی template های cpp
یعنی اینکه یه تایپ خاص میتونه یه پیاده سازی مشخص داشته باشه به جای پیاده سازی عمومی.
مثلا vector<bool> جوری پیاده سازی شده که هر المنت یه بیت بگیره به جای یه بایت که توی ارایه میگرفت.
داک:
https://en.cppreference.com/w/cpp/container/vector_bool
مقایسه جنریک های راسط و cpp
https://www.tangramvision.com/blog/c-rust-generics-and-specialization
یه نکته جالبش:
مبحث specialization توی template های cpp
یعنی اینکه یه تایپ خاص میتونه یه پیاده سازی مشخص داشته باشه به جای پیاده سازی عمومی.
مثلا vector<bool> جوری پیاده سازی شده که هر المنت یه بیت بگیره به جای یه بایت که توی ارایه میگرفت.
داک:
https://en.cppreference.com/w/cpp/container/vector_bool
Tangramvision
C++ & Rust: Generics and Specialization - Tangram Visions Blog
Generics are an incredibly important part of programming when using a statically typed language like C++ or Rust. Let's learn why!
Forwarded from Pi Developer
نویسه جدید: تبدیل کردن مسائل به یکدیگر
https://heydaris.com/fa/blog/reduction
توی این نویسه با مفهوم Reduction و مفهوم Oracle آشنا میشیم و خیلی کوتاه و مختصر به کاربردهاشون میپردازیم.
ممنون میشم اگر به اشتراک بذارید.
https://heydaris.com/fa/blog/reduction
توی این نویسه با مفهوم Reduction و مفهوم Oracle آشنا میشیم و خیلی کوتاه و مختصر به کاربردهاشون میپردازیم.
ممنون میشم اگر به اشتراک بذارید.
👍2