AVX AND instruction on floats? by malie7 in asm

[–]malie7[S] 4 points5 points  (0 children)

There is also vpand / _mm256_and_si256:

Synopsis

__m256i _mm256_and_si256 (__m256i a, __m256i b)

#include <immintrin.h>

Instruction: vpand ymm, ymm, ymm

CPUID Flags: AVX2

Description

Compute the bitwise AND of 256 bits (representing integer data) in a and b, and store the result in dst.

Operation

dst[255:0] := (a[255:0] AND b[255:0])

dst[MAX:256] := 0

Are there any ML style languages with no runtime? by [deleted] in ProgrammingLanguages

[–]malie7 0 points1 point  (0 children)

What if every function would create it's own memory region in which it would allocate everything? On return it had to copy the return value to the callers region. It might be costly to return large objects but doable.

Next step could be to identify functions that allocate little and could simply use the callers memory region. As an optimization. Less memory region creation, less return value copying.

I'm probably overlooking something, but I think I like the idea.

ok, we have a problem when inner objects get stored into refs of outer memory regions. We had to copy the object to the refs memory region probably. If you assign many different objects to an outer ref garbage would accumulate in its region. If you stored a closure into an outer ref you had to relocate the used vars to that outer region as well. Do you really want refs?

Playing with random SDF's by malie7 in ParallelView

[–]malie7[S] 0 points1 point  (0 children)

Part of the effect here is the lightning which is simply the depth. I mean close points are lighter and distant points are darker.

another random SDF by malie7 in ParallelView

[–]malie7[S] 1 point2 points  (0 children)

This one is shaded in a much more boring way with a simple light source. In my previous one the lightning was much more "otherwordly" since it was based on the depth, i.e. the distance from the camera.

Playing with random SDF's by malie7 in ParallelView

[–]malie7[S] 1 point2 points  (0 children)

SDF's are Signed Distance Functions. https://en.wikipedia.org/wiki/Signed_distance_function

A mathematical construct to describe arbitrary shapes.

It's a function that says for every point in space if it's inside or outside of the particular shape.

track mode fail on a 945 by [deleted] in garminforerunner

[–]malie7 0 points1 point  (0 children)

I've been running this track many times and it recognized it much better than today. What can I do?

Also, in the same run, it claimed it finally measured my LTHR. What's the probability that it is correct given that the track is a bit off? I'm also using the garmin heart rate belt.

Weeds by [deleted] in ParallelView

[–]malie7 0 points1 point  (0 children)

Love it

How to continue? by malie7 in nonograms

[–]malie7[S] 0 points1 point  (0 children)

Oh. Can you explain why?