<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Safety on TrustLang</title>
		<link>https://trust-lang.net/en/tags/safety/</link>
		<description>Recent content in Safety on TrustLang</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="https://trust-lang.net/en/tags/safety/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Guarantees and safety</title>
				<link>https://trust-lang.net/en/docs/safety/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://trust-lang.net/en/docs/safety/</guid>
				<description>&lt;p&gt;This section brings together the &lt;em&gt;TrustLang&lt;/em&gt; capabilities that are responsible for the &lt;strong&gt;safety and&#xA;quality&lt;/strong&gt; of programs: safe memory management, protection from data races, correctness control at&#xA;compile time and formal verification.&lt;/p&gt;&#xA;&lt;p&gt;Each capability is described in detail &lt;strong&gt;in exactly one place&lt;/strong&gt; (the source page) and is only&#xA;mentioned here with a summary and a link. Detailed lists of options/diagnostics are not duplicated —&#xA;their source is the tool&amp;rsquo;s help (&lt;code&gt;trust --help&lt;/code&gt;, &lt;code&gt;trust -Whelp&lt;/code&gt;, LSP hovers).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Stack overflow protection (stack check)</title>
				<link>https://trust-lang.net/en/docs/safety/stack_check/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://trust-lang.net/en/docs/safety/stack_check/</guid>
				<description>&lt;p&gt;&lt;em&gt;TrustLang&lt;/em&gt; has built-in &lt;a href=&#34;https://github.com/afteri-ru/stack-check&#34;&gt;stack overflow protection&lt;/a&gt;. Before calling a protected function, the free space on the thread stack is checked, and if it is insufficient — instead of abnormal termination of the whole application (&lt;code&gt;segmentation fault&lt;/code&gt;), a &lt;strong&gt;program exception &lt;code&gt;stack_overflow&lt;/code&gt;&lt;/strong&gt; is created, which can be caught and handled inside the application, after which program execution continues.&lt;/p&gt;&#xA;&lt;p&gt;A detailed description of the implementation and usage methods will be here.&lt;/p&gt;&#xA;&lt;p&gt;For now you can look at usage examples: &lt;a href=&#34;https://trust-lang.net/en/playground/?file=fibonacci&#34;&gt;recursive computation of Fibonacci numbers&lt;/a&gt; and &lt;a href=&#34;https://trust-lang.net/en/playground/?file=prime&#34;&gt;recursive primality check&lt;/a&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
