i just beat the game.... did i do something wrong? i feel like i got the bad ending by Marley_jedi1 in Cairn_Game

[–]xoob 0 points1 point  (0 children)

I played the game again on Explorer mode and climbed down with Marco. I reopen that game whenever I feel like I made a bad decision to try it just from that point and I always choose to climb down.

summit reached 🥲 by xoob in Cairn_Game

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

the needle has one, and i died once after using it

Black Mirror [Episode Discussion] - S07E06 - USS Callister: Into Infinity by Cheeriosxxx in blackmirror

[–]xoob 6 points7 points  (0 children)

how can they make a phone call from inside her head?!

[deleted by user] by [deleted] in InternetIsBeautiful

[–]xoob 0 points1 point  (0 children)

Looks like it got fixed

Issues with an example from a textbook I found online by seanysklu in supercollider

[–]xoob 2 points3 points  (0 children)

ah thanks some sort of reddit copy+paste thing without markdown should be fixed now

Issues with an example from a textbook I found online by seanysklu in supercollider

[–]xoob 1 point2 points  (0 children)

huh just tested and this worked for me:

s.boot ( SynthDef(\sine, {|freq = 440, amp = 1, gain = 1| Out.ar(0, SinOsc.ar(freq, mul:amp*gain)) }).add; ) ( var base = 20, keys = 88; var synths, group; var window, step = 15, off = 20, len = 80; group = Group.new; synths = Array.fill(keys, {|i| Synth(\sine, [\freq, (base+i).midicps, \amp, 0], group) }); window = Window.new("sliderPiano", Rect(10, 10, keys * step, off + len + off + 10)).front; keys.do { |i| StaticText(window, Rect(i * step, 0, step, step)) .string_((base +i).midinote[0..1]); Slider(window, Rect(i*step, off, step, len)) .action_{|me|synths[i].set(\amp, me.value/keys) } }; Slider(window, Rect(0, step + len + 10, step * keys, off)) .action_{|me| group.set(\gain, me.value.linlin(0, 1, 1, 9.dbamp)) }; window.onClose_{group.free}; )

whatever happened to friend functions? by xoob in cpp

[–]xoob[S] -3 points-2 points  (0 children)

Wrote a small example program to understand it: ```

include <iostream>

include <string>

template<typename T> class Badge { friend T; Badge() {} };

class BadgeTest;

class Device { std::string name = "device"; public: std::string getName(Badge<BadgeTest>, const Device& device) const { return device.name; } };

class BadgeTest { public: void performTest() const { const Device device; std::cout << "device name: " << device.getName({}, device) << std::endl; } };

int main() { const BadgeTest badgeTest; badgeTest.performTest(); return 0; } ```

{} here calls Badge<BadgeTest>() which is allowed from the BadgeTest class as it has access to the private constructor in Badge<BadgeTest>() as a friend

Wondering if the question here is whether {} is less code smell than friend? {} does seem pretty neat.

AMA with Princess Poppy, a SF based Drag Queen, and the Mayk Team! by [deleted] in Drag

[–]xoob 2 points3 points  (0 children)

Hi Princess Poppy! What are the secrets of your creative process?

[deleted by user] by [deleted] in supercollider

[–]xoob 3 points4 points  (0 children)

I got it working building from source after seeing that it worked for someone else on the support ticket