[ / / / / / / / / / / / / / ] [ dir / animu / cafechan / doomer / magali / mde / newbrit / vichan / wmafsex ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 0fde57ae8471150⋯.png (28.36 KB, 360x367, 360:367, ClipboardImage.png) (h) (u)

[–]

 No.1014789>>1014791 [Watch Thread][Show All Posts]

 No.1014791>>1014793

File (hide): 8826a3141a9a355⋯.png (16.83 KB, 284x155, 284:155, thatsthetech.png) (h) (u)

>>1014789 (OP)

>current year sjw/tranny/corporate bullshit

>How do I go back to the reddit


 No.1014792>>1014793 >>1014795 >>1014809

sudo apt-get remove rust* libstd-rust* cargo*

sudo apt-get remove snapd* libsnapd*


 No.1014793

File (hide): 659e4b774cb8488⋯.mp4 (67.88 KB, 480x302, 240:151, nobody cares.mp4) (h) (u) [play once] [loop]


 No.1014795

>>1014792

absolutely based


 No.1014809

>>1014792

>remove

not purge if anything

also having installed anything that has unnecessary "d" on the end, like elogind


 No.1014962>>1014980

https://github.com/atilaneves/pythagoras/blob/master/simple.d

| Simple                                            | runtime     | Max RSS |
|---------------------------------------------------+-------------+---------|
| dmd simple.d | 415.472 ms | 2708 kB |
| dmd -O -release simple.d | 177.332 ms | 2772 kB |
| dmd -O -release -inline -boundscheck=off simple.d | 176.440 ms | 2732 kB |
|---------------------------------------------------+-------------+---------|
| gnat make -gnat2020 simple | 2087.180 ms | 1680 kB |
| gnat make -O3 -gnat2020 simple | 361.320 ms | 1612 kB |
| gnat make -O3 -gnatp -gnat2020 simple | 165.886 ms | 1612 kB |
from Ada, duplicating the weird 'goto'
with Ada.Text_IO; use Ada.Text_IO;

procedure Simple is
function Image (N : in Integer) return String is
S : String := Integer'Image (N);
begin
return (if N < 0 then S else S (2 .. S'Last));
end Image;

function Square (N : in Integer) return Integer is (N * N);

Count : Natural := 0;
begin
for Z in 1 .. Integer'Last loop
for X in 1 .. Z loop
for Y in X .. Z loop
if Square (X) + Square (Y) = Square (Z) then
Put_Line
("(" & Image (X) & ", " & Image (Y) & ", " & Image (Z) & ")");
Count := @ + 1;
if Count = 1000 then
goto Done;
end if;
end if;
end loop;
end loop;
end loop;
<<Done>>
end Simple;


 No.1014980

>>1014962 (cont.)

| Simple                                            | compile time | compile max RSS |
|---------------------------------------------------+--------------+-----------------|
| dmd simple.d | 170.685 ms | 25460 kB |
| dmd -O -release simple.d | 178.653 ms | 25480 kB |
| dmd -O -release -inline -boundscheck=off simple.d | 169.206 ms | 25488 kB |
|---------------------------------------------------+--------------+-----------------|
| gnat make -gnat2020 simple | 88.950 ms | 32944 kB |
| gnat make -O3 -gnat2020 simple | 84.3006 ms | 30128 kB |
| gnat make -O3 -gnatp -gnat2020 simple | 83.130 ms | 30164 kB |
so for this super trivial example, just use Ada with -O3 for your normal builds which will be twice as fast (to build) and slightly faaster (to run) vs. a non-release D build, and then pull out all the stops with a -gnatp (no checking) build for speed, which also beats D's reckless-flags runtime.

<but what about Rust

1. I don't want to install that shit

2. it would be rude to mention it in context with compile times


 No.1014999

>actually looks at the 'advanced' versions

Jesus Christ how horrifying.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
8 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / cafechan / doomer / magali / mde / newbrit / vichan / wmafsex ][ watchlist ]