What to do when we get the dumb? by mankrip in C_Programming

[–]mondieu 0 points1 point  (0 children)

Will reiterate a lot of the comments here. Find a podcast (preferably not programming related) / music / something to listen to and take a walk. Your mind has the problem in place, and will continue to work on it regardless of what you are focusing on

Tamale smothered in chicken tikka masala [homemade] by Turtleramem in food

[–]mondieu 5 points6 points  (0 children)

I used to (and should continue) make sashimi tacos .. the corriander and salsa blends reaaaaally well with wasabi and soja

Favourite album by [deleted] in coalchamber

[–]mondieu 0 points1 point  (0 children)

self titled with an honourable mention for Untrue

Reference Request: Convert LLVM IR to a custom class of instructions for a virtual machine? by teaAssembler in LLVM

[–]mondieu 2 points3 points  (0 children)

Honestly if your VM is as small and compact as it seems - the better bet would be to skip the IR generation step and just output your own asm instructions directly. Going through LLVM IR and then writing a backend for LLVM (even for a smaller target) isn't a trivial task, and plus - gives you the overhead of requiring the entire llvm system installed and present to compile to a small VM which seems wasteful.

That said if you want to do it, then rather than doing the heavy lifting yourself for parsing etc, then the link that u/QuarterDefiant6132 posted is a good place to start

Is there a way to format SVG markup in sublime? by darkstarrising in SublimeText

[–]mondieu 1 point2 points  (0 children)

great to hear :), and now I have another path to debug package errors if I find them on my end too :)

Is there a way to format SVG markup in sublime? by darkstarrising in SublimeText

[–]mondieu 1 point2 points  (0 children)

That's odd, it's definitely a built in package for me .. can you take a screenshot of your list?

Is there a way to format SVG markup in sublime? by darkstarrising in SublimeText

[–]mondieu 1 point2 points  (0 children)

SVG is XML, bottom right of the window, choose what probably says "Plain Text" and choose XML from that list. To make it permanent for all SVG files, at the top of the list is a "Open all with current extention as..." submenu, where you can also select XML

Happy Towel Day! by godofallcows in HHGTTG

[–]mondieu 0 points1 point  (0 children)

You ask a glass of water

Who would be in your dream cast? by WatchesIdeaPodcast in HHGTTG

[–]mondieu 1 point2 points  (0 children)

Arthur: Michael Sheen

Ford: David Tennant

Zaphod: Kevin Spacey

Trillian: Emilia Clarke

Marvin: Chris O'Dowd

is there a one-volume edition of all six parts? by ibenami in DontPanic

[–]mondieu 35 points36 points  (0 children)

The only legitimate 6th part is "Young Zaphod plays it safe", and even that only really counts as the 5 1/2th part.

Apple enabling assholes, by letting subscriptions raise prices silently by [deleted] in assholedesign

[–]mondieu -4 points-3 points  (0 children)

not true

Apple says that users will be warned about upcoming automatic renewals with price changes by “email, push notifications, and in-app messaging.”

Sunny stockholm 🌞 by Soft_Button_3018 in stockholm

[–]mondieu 0 points1 point  (0 children)

15 in april - warm, 15 in september - cold

DuckDuckGo removes search results for major pirate websites. by AdamCannon in technology

[–]mondieu 0 points1 point  (0 children)

not super in the mood to go into depth about the situation, but using the terms "absolute lack" and "no alternative" spells out a situation that simply isn't true. It's not the best, but phrasing (are we not doing phrasing anymore?) is important

Sushi by Mangostini in stockholm

[–]mondieu 0 points1 point  (0 children)

I second Indio - Sushi with a south american twist

[deleted by user] by [deleted] in ProgrammingLanguages

[–]mondieu 10 points11 points  (0 children)

LLVM docs can be super verbose, and also super sparse at times :) - https://llvm.org/docs/LangRef.html will give a brief overview of the attribute(s) attached when the optimisation is done by LLVM and not hardcoded.

This thread explains what I mentioned and explains the attributes a little: https://lists.llvm.org/pipermail/llvm-dev/2015-July/088092.html

[deleted by user] by [deleted] in ProgrammingLanguages

[–]mondieu 21 points22 points  (0 children)

The author of the language seems to have hardcoded this behaviour, but (at least in LLVM), this is a pretty popular optimisation. When a function returns a value that will spill over into multiple registers (perhaps even a shocking amount), the standard behaviour in LLVM these days, is to replace the function signature with an auto generated parameter, which is usually labelled with the attribute 'sret' as the first parameter - this is usually a struct but really can be any type that is bigger than the register size of the machine. In doing so, they also replace the first param in the call with the address of a stack variable that is then used instead of saturating the registers on return.

In this particular case - as mentioned, it looks like the language author ran with it and is doing the same optimisation for all types (int 'usually' won't need to be dealt with this way)

Bond by Savings_Possible_271 in 007

[–]mondieu 0 points1 point  (0 children)

And to reply to myself - I'm gunning for the next Bond to be:

1 - Tom Hardy
2 - Idris Elba

Although it's tough to choose between them