M
MercyNews
Home
Back
نقل 100 ألف سطر من TypeScript إلى Rust باستخدام الذكاء الاصطناعي
تكنولوجيا

نقل 100 ألف سطر من TypeScript إلى Rust باستخدام الذكاء الاصطناعي

Hacker News4h ago
3 دقيقة قراءة
📋

حقائق رئيسية

  • تمكن مطور من نقل 100 ألف سطر من كود TypeScript إلى Rust بنجاح خلال شهر واحد.
  • تم إنجاز الترحيل باستخدام مساعد البرمجة بالذكاء الاصطناعي Claude Code.
  • يُظهر هذا المشروع إمكانية الذكاء الاصطناعي في تسريع تحويلات قواعد البيانات واسعة النطاق.
  • يُبرز الإنجاز كفاءة كبيرة مقارنة بطرق الترحيل اليدوية التقليدية.
  • تضمن العملية ترجمة تطبيق معقد من نموذج لغوي إلى آخر.
  • يُعد هذا الدراسة الحالة مثالاً عملياً على الدور المتزايد للذكاء الاصطناعي في تطوير البرمجيات.

ملخص سريع

لقد أكمل مطور بنجاح ترحيلًا ضخمًا لقاعدة بيانات، حيث نقل 100 ألف سطر من كود TypeScript إلى Rust في غضون شهر واحد فقط. وقد أتاح الاستخدام الاستراتيجي لـ Claude Code، وهو مساعد ذكاء اصطناعي متقدم مصمم للمهام البرمجية، هذا التحول السريع.

يُبرز المشروع تحولاً كبيراً في كيفية التعامل مع إعادة هندسة البرمجيات واسعة النطاق. ومن خلال استفادة الذكاء الاصطناعي، تمكن المطور من التعامل مع تعقيدات الترجمة بين اللغات بسرعة يصعب تحقيقها بالجهد اليدوي وحده، مما يمثل معلمًا جديدًا في هندسة البرمجيات المدعومة بالذكاء الاصطناعي.

تحدي الترحيل

إن مهمة تحويل قاعدة بيانات بـ 100 ألف سطر من لغة برمجة إلى أخرى هي في العادة مشروع ضخم. فبينما تتمتع لغتا TypeScript و Rust بالقوة، إلا أن لديهما نماذج ونظم أنواع مختلفة، مما يجعل الترجمة اليدوية عملية شاقة ومعرضة للأخطاء. شمل هذا المشروع تحديدًا تطبيقًا موجودًا كبيرًا مبنيًا على TypeScript.

يتطلب نقل هذا الحجم الكبير من الكود ليس فقط فهمًا عميقًا للغتين، بل أيضًا انتباهًا دقيقًا لضمان الحفاظ على الوظائف. سيطلب حجم المشروع الضخم عادةً فريقًا من المطورين للعمل لعدة أشهر، إن لم يكن سنوات، لإكمال الانتقال يدويًا.

  • التحويل اليدوي لـ 100 ألف سطر من الكود يستغرق وقتًا طويلاً للغاية.
  • تختلف أنظمة الأنواع ونماذج الذاكرة بين TypeScript و Rust.
  • ضمان التكافؤ الوظيفي بعد الترحيل يمثل تحديًا حاسمًا.
  • غالبًا ما تؤدي الطرق التقليدية إلى تأخيرات المشاريع وزيادة التكاليف.

الذكاء الاصطناعي كعامل محفز

لجأ المطور إلى Claude Code لتسريع عملية الترحيل. تم استخدام هذا الأداة بالذكاء الاصطناعي لفهم كود TypeScript الحالي وإنشاء كود Rust المقابل، مما يتعامل مع الجزء الأكبر من عمل الترجمة. لقد تمكنت قدرة الذكاء الاصطناعي على فهم السياق وتطبيق المنطق البرمجي من معالجة آلاف الأسطر من الكود بكفاءة.

باستخدام مساعد الذكاء الاصطناعي، تمكن المطور من التركيز على البنية الفائقة عالية المستوى والمراجعة الحرجة، بدلاً من الانغمار في بناء الجملة والعمل الروتيني للترجمة اليدوية. أثبت هذا النهج التعاوني بين الإشراف البشري وتنفيذ الذكاء الاصطناعي فعالية عالية، حيث أكمل النقل بأكمله في إطار زمني قصير بشكل ملحوظ قدره شهر واحد.

يمثل استخدام أدوات الذكاء الاصطناعي مثل Claude Code تحولاً جوهريًا في كيفية تعامل المطورين مع ترحيلات قواعد البيانات واسعة النطاق ومهام إعادة الهندسة.

رؤى تقنية رئيسية

يؤكد الترحيل الناجح على التطور المتزايد للذكاء الاصطناعي في تطوير البرمجيات. أدوات مثل Claude Code ليست مجرد محركات إكمال تلقائي؛ بل قادرة على فهم قواعد البيانات بأكملها، وتحديد الأنماط، وترجمة المنطق بين لغات برمجة مختلفة. تُعد هذه القدرة مفيدة بشكل خاص للمشاريع التي تتضمن كودًا قديمًا أو تحديث اللغة.

بينما تعامل الذكاء الاصطناعي مع الترجمة، ظلت دور المطور حاسمًا للتحقق من صحة كود Rust الذي تم إنشاؤه وضمان أنه يتوافق مع الأسلوب الأصلي وعالي الأداء. يجمع هذا النموذج الهجين بين سرعة الأتمتة والتفكير النقدي للمهندس المتمرس، مما يؤدي إلى نتيجة عالية الجودة تلبي المتطلبات الوظيفية والأداءية.

  • يمكن للذكاء الاصطناعي تحليل وترجمة هيكلات الكود المعقدة.
  • يضمن الإشراف البشري جودة وصحة الكود.
  • تُظهر العملية كفاءة في سير عمل التطوير الحديث.
  • يمكن لتلك الأدوات خفض عائق اعتماد لغات برمجة جديدة.

الآثار على التطوير

لدي هذا الإنجاز آثار أوسع على صناعة البرمجيات. فهو يشير إلى أن ترحيلات قواعد البيانات واسعة النطاق قد تصبح أكثر جدوى وأقل إثارة للقلق، مما يشجع الشركات على تحديث أكوادها التقنية. يمكن أن تساعد القدرة على نقل الكود بسرعة بين اللغات الفرق في اعتماد لغات مثل Rust لفوائدها في سلامة الذاكرة والأداء دون التكلفة المحظورة لإعادة الكتابة اليدوية الكاملة.

ومع استمرار تطور مساعدي البرمجة بالذكاء الاصطناعي، من المرجح أن يتوسع دورهم في دورة حياة التطوير. قد تصبح أدوات قياسية للمهام تتراوح من إنشاء الكود والتصحيح إلى التوثيق وإعادة الهندسة. تُعد هذه الدراسة الحالة مثالاً مقنعاً على كيف يمكن للذكاء الاصطناعي تعزيز القدرات البشرية، مما يؤدي إلى ابتكار أسرع وأنظمة برمجيات أكثر مرونة.

النظرة إلى الأمام

إن نقل 100 ألف سطر من TypeScript إلى Rust في شهر باستخدام Claude Code هو شهادة على إمكانية الذكاء الاصطناعي في هندسة البرمجيات الحديثة. فهو يوضح أنه مع الأدوات المناسبة، يمكن إنجاز حتى أكثر مشاريع نقل الكود طموحًا بكفاءة ملحوظة.

نظرة إلى الأمام، من المرجح أن يصبح دمج مساعدي الذكاء الاصطناعي في سير عمل التطوير أكثر سلاسة. لا يُظهر هذا الحالة انتصارًا تقنيًا فحسب، بل يشير أيضًا إلى مستقبل حيث يتعاون المطورون والذكاء الاصطناعي بشكل وثيق لبناء والحفاظ على أنظمة البرمجيات المعقدة، مما يدفع حدود ما هو ممكن في هذا المجال.

الأسئلة الشائعة

ما هو حجم مشروع ترحيل الكود؟

شمل المشروع نقل 100 ألف سطر من الكود من TypeScript إلى Rust. يمثل هذا قاعدة بيانات كبيرة تتطلب عادةً استثمارًا كبيرًا من الوقت والموارد للترحيل يدويًا.

كيف تم إنجاز الترحيل بهذه السرعة؟

استخدم المطور مساعد ذكاء اصطناعي يسمى Claude Code لتنفيذ الجزء الأكبر من عمل الترجمة. سمح هذا للمطور بإكمال الترحيل بأكمله في شهر واحد فقط، وهو إطار زمني يصعب تحقيقه بالجهد اليدوي وحده.

ماذا يعني هذا لمستقبل تطوير البرمجيات؟

يشير هذا الإنجاز إلى أن أدوات الذكاء الاصطناعي أصبحت قادرة بشكل متزايد على التعامل مع المهام البرمجية المعقدة. فإنه يشير إلى مستقبل يمكن فيه للذكاء الاصطناعي المساعدة بشكل كبير في إعادة هندسة الكود والتحديث وترحيل اللغة، مما يجعل مثل هذه المشاريع أكثر سهولة وكفاءة.

ما هي فوائد الانتقال من TypeScript إلى Rust؟

على الرغم من عدم تفصيل ذلك في المصدر، إلا أن الانتقال إلى Rust غالبًا ما يُ pursued لضمانات سلامة الذاكرة الخاصة به، وأدائه العالي، وقدرته على منع الأخطاء الشائعة في وقت التجميع، مما يمكن أن يكون حاسمًا للتطبيقات على مستوى النظام.

Continue scrolling for more

الذكاء الاصطناعي يحول البحث والبراهين الرياضية
Technology

الذكاء الاصطناعي يحول البحث والبراهين الرياضية

لقد انتقل الذكاء الاصطناعي من وعد متقطع إلى واقع ملموس في الرياضيات، حيث تستخدم نماذج التعلم الآلي الآن لدعم استنباط براهين أصلية. يجبر هذا التطور على إعادة تقييم طرق البحث والتدريس في هذا التخصص.

Just now
4 min
410
Read Article
Europe must stop ‘dreaming’ about defence without US, Rutte warns
World_news

Europe must stop ‘dreaming’ about defence without US, Rutte warns

Nato chief says continent cannot afford to replace American security umbrella

28m
3 min
0
Read Article
Real_estate

Zoom's 'hidden gem' investment in Anthropic could be worth $2 billion to $4 billion, analysts say

Anthropic revealed that Zoom Ventures had invested in the AI startup in May 2023.

30m
3 min
0
Read Article
Billie Eilish Concert Doc Release Pushed to May; James Cameron Says ‘We’re Dialing in Cool, New 3D Tech’
Technology

Billie Eilish Concert Doc Release Pushed to May; James Cameron Says ‘We’re Dialing in Cool, New 3D Tech’

James Cameron revealed on Monday that the release of the Billie Eilish 3D concert documentary “Billie Eilish: Hit Me Hard and Soft,” which he co-directed with Eilish, has been pushed two more months to May 8 via Paramount. “We’re refining the cut; dialing in cool, new 3D tech; adding some special behind-the-scenes we know you’ll […]

42m
3 min
0
Read Article
Jensen Huang says it's 'ridiculous' to say Nvidia's $2 billion investment in CoreWeave is another circular deal
Technology

Jensen Huang says it's 'ridiculous' to say Nvidia's $2 billion investment in CoreWeave is another circular deal

Nvidia CEO Jensen Huang Markus Schreiber/AP Nvidia CEO Jensen Huang pushed back on criticism of the chipmaker's investment structures. Huang said its latest investment in CoreWeave was not a circular deal. Chipmakers' investments in leading tech companies, which are also customers, have raised worries about an AI bubble. Nvidia CEO Jensen Huang is done with the questions about circular financing. Huang called it "ridiculous" to suggest that Nvidia's latest deal, a $2 billion investment in CoreWeave, is the latest circular deal between AI chipmakers and tech companies, a trend that has sparked some concern among some investors. "These are generational companies — the investments that we make is confidence in them," Huang told Bloomberg News. "But it's a small percentage of the amount of money that they ultimately have to go raise, and so the idea that it is circular is — it's ridiculous." As part of the arrangement, Nvidia is expanding its previous investment in the cloud company by buying $2 billion worth of its shares. According to a joint statement, the money will assist CoreWeave's "procurement of land, power, and shell to build AI factories." The future AI factories will then be powered by Nvidia's chips. Huang portrayed the latest deal and past arrangements with the likes of OpenAI, Anthropic, and Elon Musk's xAI as just a small portion of what the companies need to raise to finance their massive AI expansion plans. For example, OpenAI is committed to spending roughly $1.4 trillion over the next eight years, largely on data centers. "Whatever we decide to invest is a small percentage, very small percentage of the overall amount of infrastructure, capital they're going to have to raise," Huang told CNBC in a separate interview. This is far from the first time Nvidia has bristled at concerns about its deals. In November, the world's largest company by market cap sent a letter to Wall Street analysts in response to investor Michael Burry of "The Big Short" fame, who has questioned whether Nvidia was on solid financial footing. "Nvidia's underlying business is economically sound, our reporting is complete and transparent, and we care about our reputation for integrity," the memo said. Burry has said he stands behind his analysis of the company, comparing it to one of Silicon Valley's giants before the Dotcom crash. "I am not claiming Nvidia is Enron," he wrote on his Substack. "It is clearly Cisco." Read the original article on Business Insider

44m
3 min
0
Read Article
watchOS 26.2.1 now available for Apple Watch, here’s what’s new
Technology

watchOS 26.2.1 now available for Apple Watch, here’s what’s new

Apple has just released watchOS 26.2.1, a new software update for Apple Watch users. Here’s what the update includes. more…

45m
3 min
0
Read Article
World_news

Google Books has been effectively killed by the last algorithm update

Article URL: https://old.reddit.com/r/google/comments/1qn1hk1/google_has_seemingly_entirely_removed_search/ Comments URL: https://news.ycombinator.com/item?id=46769201 Points: 3 # Comments: 0

47m
3 min
0
Read Article
How to generate AI images using ChatGPT
Technology

How to generate AI images using ChatGPT

Since March 2025, ChatGPT has been capable of generating images. Following a period where it briefly wasn't available to free users, you now don't even pay for one of OpenAI's subscriptions to use this feature. And while making images inside of ChatGPT is easy, there are some nuances worth explaining. For example, did you know you can ask ChatGPT to edit photos you've taken? It's more powerful than you might think. Here’s everything you need to know about generating AI images with ChatGPT. How to create images with ChatGPT using text prompts To begin making an image in ChatGPT, you can start by typing in the prompt bar. Igor Bonifacic for Engadget You can start generating images in ChatGPT simply by typing in the prompt bar what you want to see. There's no need to overthink things; as long as you have some version of "generate an image" followed by a description of your idea, ChatGPT will do the rest. Depending on the complexity of the prompt and whether you pay for ChatGPT, it may take a minute or two for the chatbot to complete your image request. Sometimes the process can take longer if OpenAI's servers are experiencing greater traffic than usual. At the end of last year, OpenAI updated the model powering image generation to make it faster, as well as better at rendering text and following instructions. At the same time, it added a dedicated "Images" section to ChatGPT's sidebar. Here you can see all the images you've made, alongside sample prompts and suggestions for styles to try out, making it a great place to start if you've never used an image generator before. How to create images with ChatGPT using existing photos You can also upload images to ChatGPT. Igor Bonifacic for Engadget In addition to generating images from text prompts, ChatGPT can modify existing photos or images you upload. This is my preferred way of making images with ChatGPT; I don't need to describe the composition, I can use an existing one to guide the chatbot. To use an existing image as a starting point for a new generation, follow these steps: Tap the "+" icon, located to the left of the prompt bar. Select Add photos & files. Select the image you want ChatGPT to edit. If uploading an image from your phone, you'll first need to grant ChatGPT access to your camera roll. Write a prompt describing the changes you want. If generating from the Images section, tap "Add photos" instead. Keep in mind any photos you upload to OpenAI's servers may be used by the company to train future models. You can opt out of allowing your data to be used for training by following these steps: Open the sidebar menu. On mobile, tap the two lines on the top left of the interface; on desktop, click instead on the OpenAI logo. Tap your name to access account settings. Tap Data controls. Toggle off Improve the model for everyone. How to edit the images ChatGPT generates ChatGPT gives you a few different ways to edit images. Igor Bonifacic for Engadget If you're unhappy with ChatGPT's output, you have two options. You can either prompt it to create an entirely new image, or edit parts of the picture it just generated. As always, the process for both involves simply typing what you want in the prompt bar. On mobile, OpenAI gives users a few different ways of accomplishing the same task. To generate an entirely new image: Tap the three dots icon below the image ChatGPT created. Select Retry. To edit part of an existing image generation: Tap the image ChatGPT created. Tap Select area. Use your finger to mask the section of the image you want ChatGPT to tweak. The slider on the left allows you to adjust the size of the masking brush. On desktop, masking is also available if you click on an image and then click on the paintbrush icon on the top right. Describe what you want ChatGPT to add, remove or replace through the prompt bar. ChatGPT can also blend one of your photos with an image it has generated. To do this: Tap an image ChatGPT created. Tap Blend in a photo. Upload the photo you wish Like all AI systems, ChatGPT is non-deterministic, meaning even if you prompt it in the same way multiple times, it won't generate the exact same response each time. Tips to create better images with ChatGPT The best advice I can offer is to be specific when prompting ChatGPT. The more detail you can provide when describing what you want from it, the better the results. And remember: ChatGPT can hallucinate — as you may have noticed from one of the example pictures I included above. In the image of the tortoiseshell cat, not only is the tortie not sitting on the window sill as instructed, it's sitting on a table that doesn't make much sense. So, most of all, be patient. Prompting an AI model is not exact science, and it can take a few tries before it creates the result you want. FAQs How do you access ChatGPT? ChatGPT is available on the web, desktop and mobile. To access it on your computer, open your preferred browser and navigate to chatgpt.com. OpenAI also offers dedicated Mac and Windows apps you can download from the company's website. On iOS and Android, you'll need to download the ChatGPT app from either the App Store or Google Play before you can start using the chatbot. Since ChatGPT runs on OpenAI's servers, as long as you can access the chatbot, you'll be able to use it to create images no matter the age of your phone or computer. Can ChatGPT generate images for free? Yes, ChatGPT can generate images for free, as long as you create an OpenAI account. However, there is a daily rate cap and GPT-5 will take longer to make a free image. Following March 27, 2025, OpenAI briefly limited free users to three image generations per day. The company has since relaxed that restriction, though it doesn't list a specific limit on its website. In my experience, you'll be able to generate about six to seven images every 24 hours. OpenAI offers three different subscription plans, each with their own set of image generation perks. ChatGPT Go, which costs $8 per month, offers "more image creation." ChatGPT Plus, which costs $20 per month, offers "expanded and faster image creation." ChatGPT Pro, which costs $200 per month, offers "unlimited and faster image creation." Note: ChatGPT Go will be included in OpenAI's forthcoming ads pilot, which will see the company display sponsored content alongside organic responses from ChatGPT. The company does not plan to display ads to Plus and Pro users. Can ChatGPT generate an existing photo? No. For copyright reasons, ChatGPT can't replicate photos or exact real world events. For example, when I asked it to recreate the photo of Zinedine Zidane's iconic 2006 World Cup headbutt, ChatGPT refused. "I can make an artistic reinterpretation inspired by the emotion or energy of that moment — for example, a stylized painting showing the tension and intensity of competition, without depicting real individuals," it told me. This article originally appeared on Engadget at https://www.engadget.com/ai/how-to-generate-ai-images-using-chatgpt-120000560.html?src=rss

48m
3 min
0
Read Article
World_news

House of Lords Votes to Ban UK Children from Using Internet VPNs

Article URL: https://www.ispreview.co.uk/index.php/2026/01/house-of-lords-votes-to-ban-uk-children-from-using-internet-vpns.html Comments URL: https://news.ycombinator.com/item?id=46769131 Points: 5 # Comments: 1

52m
3 min
0
Read Article
MCP unites Claude chat with apps like Slack, Figma, and Canva
Technology

MCP unites Claude chat with apps like Slack, Figma, and Canva

Anthropic's Claude got a bit livelier today thanks to a new extension to MCP, the open-source protocol that allows AI agents to easily access tools and data across the internet. Users will now be able to interact with apps directly inside the Claude chatbot, letting you draft and format Slack messages to colleagues and create presentations for clients in Canva without having to switch tabs. As of today, Anthropic said tools like Asana, Figma, Slack, and Canva will "open as interactive apps right inside of chat." While users could previously connect tools like Slack and Asana to the AI assistant, doing so meant getting text back. The company … Read the full story at The Verge.

53m
3 min
0
Read Article
🎉

You're all caught up!

Check back later for more stories

العودة للرئيسية