ساحة تجارب Go
ساحة تجارب Go
بُنيت هذه الجولة على ساحة تجارب Go، وهي خدمة ويب تعمل على خوادم golang.org.
تستقبل الخدمة برنامجًا بلغة Go، وتترجمه وتربطه وتشغّله داخل بيئة معزولة، ثم تُعيد المخرجات.
توجد قيود على البرامج التي يمكن تشغيلها في ساحة التجارب:
- يبدأ الوقت في ساحة التجارب عند 2009-11-10 23:00:00 UTC (تحديد دلالة هذا التاريخ تمرين للقارئ). وهذا يسهّل تخزين البرامج مؤقتًا بمنحها مخرجات حتمية.
- توجد أيضًا حدود لوقت التنفيذ ولاستخدام وحدة المعالجة المركزية والذاكرة، ولا يمكن للبرنامج الوصول إلى مضيفي الشبكة الخارجيين.
تستخدم ساحة التجارب أحدث إصدار مستقر من Go.
اقرأ "داخل ساحة تجارب Go" لمعرفة المزيد.
النص الأصلي بالإنجليزية
The Go Playground
This tour is built atop the Go Playground, a web service that runs on golang.org's servers.
The service receives a Go program, compiles, links, and runs the program inside a sandbox, then returns the output.
There are limitations to the programs that can be run in the playground:
- In the playground the time begins at 2009-11-10 23:00:00 UTC (determining the significance of this date is an exercise for the reader). This makes it easier to cache programs by giving them deterministic output.
- There are also limits on execution time and on CPU and memory usage, and the program cannot access external network hosts.
The playground uses the latest stable release of Go.
Read "Inside the Go Playground" to learn more.
هذا الدرس للقراءة فقط؛ جرّب المثال في الدرس التالي.