Portál AbcLinuxu, 10. června 2025 10:01


Rust 1.28

Byla vydána verze 1.28 programovacího jazyka Rust (Wikipedie). Podrobnosti v poznámkách k vydání. Vyzkoušet Rust lze například na stránce Rust by Example.

2.8.2018 21:11 | Ladislav Hagara | Nová verze


Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

Komentáře

Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře. , Tisk

Vložit další komentář

2.8.2018 22:16 debian
Rozbalit Rozbalit vše Re: Rust 1.28
Odpovědět | Sbalit | Link | Blokovat | Admin
hide@hide:~$ cd rust/
hide@hide:~/rust$ vim hello.rs
hide@hide:~/rust$ rustc hello.rs 
hide@hide:~/rust$ ./hello 
Hello World!
hide@hide:~/rust$ ldd hello
	linux-gate.so.1 (0xb76e6000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7692000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7688000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7668000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb764a000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7470000)
	/lib/ld-linux.so.2 (0xb76e8000)
hide@hide:~/rust$ vim main.c
hide@hide:~/rust$ gcc main.c -o main
hide@hide:~/rust$ ldd main
	linux-gate.so.1 (0xb7788000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7588000)
	/lib/ld-linux.so.2 (0xb778a000)
hide@hide:~/rust$ cat hello.rs
// This is a comment, and will be ignored by the compiler
// You can test this code by clicking the "Run" button over there ->
// or if prefer to use your keyboard, you can use the "Ctrl + Enter" shortcut

// This code is editable, feel free to hack it!
// You can always return to the original code by clicking the "Reset" button ->

// This is the main function
fn main() {
    // The statements here will be executed when the compiled binary is called

    // Print text to the console
    println!("Hello World!");
}

hide@hide:~/rust$ cat main.c
#include <stdio.h>

int main(int argc, char **argv)
{
	puts("Hello world!");
	return 0;
}
hide@hide:~/rust$ 

xsubway avatar 3.8.2018 09:21 xsubway | skóre: 13 | blog: litera_scripta_manet
Rozbalit Rozbalit vše Re: Rust 1.28
Více závislostí, více ... :-)
3.8.2018 13:45 ChronicPain | blog: chronicPain
Rozbalit Rozbalit vše Re: Rust 1.28
feťák
http://www.klaus.sk/ – energeticky úsporné vykurovacie systémy
3.8.2018 12:42 BoneFlute | skóre: 3
Rozbalit Rozbalit vše Re: Rust 1.28
Odpovědět | Sbalit | Link | Blokovat | Admin
Držím jim palce. Za posledních deset let je to snad první opravdu moderní jazyk.
3.8.2018 13:03 Kate | skóre: 9
Rozbalit Rozbalit vše Re: Rust 1.28
golang se nekvalifikuje? :)
3.8.2018 14:27 BoneFlute | skóre: 3
Rozbalit Rozbalit vše Re: Rust 1.28
golang je dobrý a praktický jazyk. Ale ne moderní.
little.owl avatar 3.8.2018 15:21 little.owl | skóre: 22 | blog: Messy_Nest | Brighton/Praha
Rozbalit Rozbalit vše Re: Rust 1.28
To je otazka vasi definice moderni.
A former Red Hat freeloader.
3.8.2018 15:39 BoneFlute | skóre: 3
Rozbalit Rozbalit vše Re: Rust 1.28
Samozřejmě.
little.owl avatar 3.8.2018 14:02 little.owl | skóre: 22 | blog: Messy_Nest | Brighton/Praha
Rozbalit Rozbalit vše Re: Rust 1.28
Tech je vice nez dost, o moderni jazyky neni a nebyla nouze. Problem je se prosadit a vytvorit souvisejici ekosystem.
A former Red Hat freeloader.

Založit nové vláknoNahoru


ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.