گزینه fastmath در gcc چه میکند
https://stackoverflow.com/a/22135559/10999348
https://stackoverflow.com/a/22135559/10999348
Stack Overflow
What does gcc's ffast-math actually do?
I understand gcc's --ffast-math flag can greatly increase speed for float ops, and goes outside of IEEE standards, but I can't seem to find information on what is really happening when it's on. Can
جاج های انلاین چطوری مموری مصرف شده توسط برنامه رو بررسی میکنند؟
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
Quora
What is the simplest and most accurate way to measure the memory used by a program in a programming contest environment?
Answer: I assume you want to know how online judges determine 'Memory Limit Exceeded' for a user-supplied program.
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
کتابخانه psutil پایتون
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/
یک جاج کننده کد ساده با پایتون و subprocess
https://gist.github.com/apaar97/de3ef501d5762ac8cb2f8a7343b6a29d
https://gist.github.com/apaar97/de3ef501d5762ac8cb2f8a7343b6a29d
Gist
A lightweight code checker tool in python for compiling and running Java, C & Cpp files. Handles compilation errors, runtime errors…
A lightweight code checker tool in python for compiling and running Java, C & Cpp files. Handles compilation errors, runtime errors, AC, WA and TLE - codechecker.py
چرا با ویندوز مشکل دارم:
https://stackoverflow.com/a/12231952/10999348
https://stackoverflow.com/a/12231952/10999348
Stack Overflow
Resource limits on Windows?
What are the Windows equivalents to the resource limit mechanisms exposed on Unix systems by Python's resource module, and POSIX setrlimit?
Specifically, I'm limiting processor time for a child pr...
Specifically, I'm limiting processor time for a child pr...
👎1
دستور git archive:
خروجی گرفتن از یک پروژه روی گیت
https://www.atlassian.com/git/tutorials/export-git-archive
خروجی گرفتن از یک پروژه روی گیت
https://www.atlassian.com/git/tutorials/export-git-archive
یک فایل سورس، حداکثر باید چند خط باشد؟
https://softwareengineering.stackexchange.com/questions/176999/at-what-point-range-is-a-code-file-too-big/177102
https://softwareengineering.stackexchange.com/questions/176999/at-what-point-range-is-a-code-file-too-big/177102
Software Engineering Stack Exchange
At what point/range is a code file too big?
I'm finding lots of 2-3k line files, and it doesn't really feel like they should be that big.
What is a good criteria to objectively call a source code file "too big"?, is there such thing as a m...
What is a good criteria to objectively call a source code file "too big"?, is there such thing as a m...
به جای print، اطلاعات دیباگ را با log چاپ کنید.
https://automatetheboringstuff.com/2e/chapter11/
https://automatetheboringstuff.com/2e/chapter11/
کامپایل شرطی در go
https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool
مثال از یه برنامه platform dependent که از این قابلیت استفاده کرده:
https://github.com/skratchdot/open-golang
https://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool
مثال از یه برنامه platform dependent که از این قابلیت استفاده کرده:
https://github.com/skratchdot/open-golang
GitHub
GitHub - skratchdot/open-golang: Open a file, directory, or URI using the OS's default application for that object type. Optionally…
Open a file, directory, or URI using the OS's default application for that object type. Optionally, you can specify an application to use. - skratchdot/open-golang
ابزار gb برای build کردن پروژه goی شما
https://dave.cheney.net/2015/06/09/gb-a-project-based-build-tool-for-the-go-programming-language
https://dave.cheney.net/2015/06/09/gb-a-project-based-build-tool-for-the-go-programming-language
در مورد scale کردن پروژه های اوپن سورس: نکنید.
جایگزین کردن twitter instagram facebook به این سادگی نیست.
به جاش نرم افزار خاص برای کاربرد خیلی خاص مردم خاص درست کنید.
https://www.sicpers.info/2021/07/my-proposal-for-scaling-open-source-dont/
جایگزین کردن twitter instagram facebook به این سادگی نیست.
به جاش نرم افزار خاص برای کاربرد خیلی خاص مردم خاص درست کنید.
https://www.sicpers.info/2021/07/my-proposal-for-scaling-open-source-dont/
سختگیری رو ادامه ندید(؟)
قسمتی از متنش:
Let’s start with hazing. A lot of the software industry suffers from “I had to go through this, you should too”. Look at software engineering interviews, for example. I’m not sure whether anybody actually believes “I had to deal with carefully ensuring NUL-termination to avoid buffer overrun errors so you should too”, but I do occasionally still hear people telling less-experienced developers that they should learn C to learn more about how their computer works. Your computer is not a fast PDP-11, all you will learn is how the C virtual machine works.
https://www.sicpers.info/2020/10/discipline-doesnt-scale/
قسمتی از متنش:
Let’s start with hazing. A lot of the software industry suffers from “I had to go through this, you should too”. Look at software engineering interviews, for example. I’m not sure whether anybody actually believes “I had to deal with carefully ensuring NUL-termination to avoid buffer overrun errors so you should too”, but I do occasionally still hear people telling less-experienced developers that they should learn C to learn more about how their computer works. Your computer is not a fast PDP-11, all you will learn is how the C virtual machine works.
https://www.sicpers.info/2020/10/discipline-doesnt-scale/
برنامه نویس های واقعی از پاسکال استفاده نمیکنن. (به جاش از FORTRAN استفاده میکنن)
متنش خیلی قدیمیه و به سی در مورد زبان آینده اشاره کرده!
اما ایده کلی رو میشه گرفت
https://www.codeproject.com/articles/927/real-programmers-don-t-use-pascal
متنش خیلی قدیمیه و به سی در مورد زبان آینده اشاره کرده!
اما ایده کلی رو میشه گرفت
https://www.codeproject.com/articles/927/real-programmers-don-t-use-pascal
CodeProject
Real Programmers Don't Use PASCAL
Very humorous historical text about the art of programming computers
3212477.3212479.pdf
268.1 KB
چرا C یه زبان سطح پایین خوب نیست؟
خلاصه اینکه اون abstract machineی که سی توصیف میکنه (مموری فلت و پردازندهی sequential) سالهاست که به کامپیوترهای واقعی map نمیشه. حتی اکثر برنامهنویس ها نمیدونن برنامه سیشون چطوری به سختافزار مپ میشه.
برای همین سریع تر کردن سی کار سختیه، چون گارانتیهایی که سی تو استانداردش میده کار رو برای بهینه کردن کد سخت میکنه.
همچنین نوشتن برنامه همروند با سی هم بسیار کار سختی میشه.
https://dl.acm.org/doi/10.1145/3212477.3212479
خلاصه اینکه اون abstract machineی که سی توصیف میکنه (مموری فلت و پردازندهی sequential) سالهاست که به کامپیوترهای واقعی map نمیشه. حتی اکثر برنامهنویس ها نمیدونن برنامه سیشون چطوری به سختافزار مپ میشه.
برای همین سریع تر کردن سی کار سختیه، چون گارانتیهایی که سی تو استانداردش میده کار رو برای بهینه کردن کد سخت میکنه.
همچنین نوشتن برنامه همروند با سی هم بسیار کار سختی میشه.
https://dl.acm.org/doi/10.1145/3212477.3212479
چند گیگ متن خام فارسی
https://github.com/persiannlp/persian-raw-text
https://github.com/persiannlp/persian-raw-text
GitHub
GitHub - persiannlp/persian-raw-text: Persian raw text - حدود ۸۰ گیگابایت متن خام فارسی
Persian raw text - حدود ۸۰ گیگابایت متن خام فارسی. Contribute to persiannlp/persian-raw-text development by creating an account on GitHub.
خب متوجه شدم که
اونایی که به IDE اعتقاد ندارن، برا کارشون اسم میذارن:
Unix is my IDE
https://mkaz.blog/code/unix-is-my-ide/
اونایی که به IDE اعتقاد ندارن، برا کارشون اسم میذارن:
Unix is my IDE
https://mkaz.blog/code/unix-is-my-ide/