@sehe huh, having a universal Conceal group is annoying :( if there was some 'transparent' concealing I could have identifier1 be concealed as identifier₁ and <= as ≤ with both looking like their original groups (resp. identifier and operators)
@VermillionAzure this is not about guessing, these are instructions: does the first error: point to that code, and if so what does it say
@Mikhail Directly representing the disjoint types of Scheme's type system
Scheme R7RS's standard dictates that every Scheme Object have a type that is disjoint from all others. Thus, I'll be directly encoding the type into the boost::variant for close 1:1 conformance
In other words, an object should only be a Number and nothing else, not a port, or a string or a bytevector or a list
I have tried to perform this arithmetic expression from command line but it doesn't give me valid output. How do I perform the expression in the below code using the simplest skills of C++?
#include <iostream>
using namespace std;
int main()
{
cout << " 4 * (1.0 - 1/3 + 1/5 - 1/7 + 1/9 - 1/...
@VermillionAzure By golly. That's open-ended. You can search the transcript :) I've said a great many things. (Including, for example, not liking Karma anywhere near as much as Qi)
@sehe Or, rather, how would you build the AST with Boost.Qi? Right now, I'm probably going to attach emitters with references to an external AST that they'll keep an iterator to so that they can continue to add to the tree as the syntax comes in
...I think next time that happens, I'll tell OP that of course their program isn't working, you're supposed to give the compiler a text file, not an image of text.
@VermillionAzure lex was AT&T code (exactly what GNU was against). Flex was developed with US government funding. It has always carried a BSD-style license, but arguably even that minimal restriction probably isn't quite legal (but it's so minimal I'm pretty sure nobody's contested it, and it'd be hard to establish standing in court to contest it either).
Can somebody give the detailed command line arguments to run fortify scans through command prompt? Is it different for different languages? if so then please give the commands for different languages. secondly, where should the code which needs to be scanned, be present? In bin folder? Or is it l...
@VermillionAzure in that case, go with your desired AST. Any implementation is going to be "trivial". Don't fear that. I'd say, if your desired AST revolves around static polymorphism (e.g. variant) go for Spirit. All other cases: roll your own.
@R.MartinhoFernandes I would suggest that if you can introduce bugs into a simple concatenation loop then programming might not be for you. — Elliott7 hours ago
ergh... so we use this citrix snx cli tool to connect to a vpn. I want to set up a cron job to keep it connected (it times out after a while) but you can't just pass it password via cli, so I am wrapping it in an except script. This also allows me to handle if I am already connected and silently do nothing. Problem is, even though the underling vpn client is saying it's connected, it seems once the except script ends, the client closes it's connection too :S
@Borgleader Since only one mutable borrow can exist at any given time and while so no immutable borrows can exist, it is trivially impossible for two operations to happen concurrently with one of them being a mutation.
As long as all relevant operations take place within that subset of then language, yes.
unsafe allows you to remove and add mut as it pleases you, so there's that.
It's NOT smart enough to skip "This". It skips that because your pattern starts with a mandatory (. So, it's already past This before it starts to match, and it doesn't stop until it reaches the $ (end of input), because that's also in your pattern. — sehe1 min ago
@LucDanton Berlin used to be a much smaller area in the middle of what is today Berlin. Around the 1900s the surrounding towns got subsumed into Berlin. Each of those surrounding towns had a Berliner Str.
@R.MartinhoFernandes maybe I’m using the map wrong, but once again only one Grande Rue (or Grand'Rue for that matter). coincidentally doesn't look to be anywhere near the old city as with the Rue de Paris. I’m going to guess that that the cities have very different attitudes re: renaming streets
Hans Albrecht von Barfus (1635 – December 27, 1704) was a field marshal in the service of Brandenburg and Prussia, serving briefly as prime minister under King Frederick I.
== Military career ==
Barfus was born in 1635 to a cuirassier captain and his wife. He served alongside the Swedes in 1656 during the Second Northern War (as a lieutenant), and, now serving the Elector of Brandenburg, quickly rose through the ranks, eventually being granted a colonelcy. By the time of the Siege of Vienna he was a major-general, and served under King John of Poland during that campaign.
When the Elector died...
I'm in the process of puzzling together a patchwork of gitlab YAML, multirunner defs, various knit-together docker files and adhoc shell scripts (most of which are inconsistently versioned by baking them into docker images)
@thecoshman What else is new. I happen to not dislike that job. I think it gives a lot of satisfaction when you're done cleaning up.
Maybe your system is emulating AltGr+k as Ctrl+Alt+k, and the browser/Lounge JS is only checking for "ctrl_bit and k" instead of "only_ctrl_bit and k".
say I have /a/foo.sh/b/foo.sh and /c/foo.sh ie, three folders all with a file called foo.sh... how can I diff them all? I know I could use ls */foo.sh to list them all... but then maybe use xargs to pass that list to diff?
And I noticed that clang 3.9 was packaged also. Is there a way to get notified when they package 4.0?
generally you just install clang and they handle the updating, but that just recently switched from installing 3.6 to 3.8, so I had to manually tell it to use 3.9 which will make me miss 4.0
> If you want, put in four years at a college (or more at a graduate school). This will give you access to some jobs that require credentials, and it will give you a deeper understanding of the field, but if you don't enjoy school, you can (with some dedication) get similar experience on your own or on the job.
Ah no. The state-saving is merely a fringe detail. The point is injecting a stateful lambda in your stream insertions (see the application in the first pastebin)
You don't want to see the surrounding code. It's the most obtuse bit of code I wrote in 2 months. And it comes with a few dozen test cases to test all these funny concurrency/shutdown edge cases
In fairness, that post_periodic_task serves as the workhorse for all our legacy "background scheduling" tasks. Originally they all came with manual (pthreads) threading and buggy shutdown logic (or lack thereof).
Two years down the road, I'm finally ready to absorb it and brave enough to start tackling this in my work codebase.
There's still one gotcha with the coroutines that I wish I had uncovered before implementing it: Coroutines risk violating the invariants that we had for using a few libraries with thread-specific instances.
It's not an issue, it's just an error waiting to be made (we can't use such resources across potential coro resumes because it could resume on a different thread)
@R.MartinhoFernandes Hmm, ok so the rules essentially constrain what you can do code wise and that makes it safe. I was just skeptical that they could actually enforce that properly but I guess the seemingly "too simple" rules actually manage too. I'm chalking it up to lack of experience on my part then, thanks. :)
@StackedCrooked Anything that schedules continuations across multiple threads, yes. The difference, of course, being that stackful Coroutines effectively hide it going on, making it easy(er) to fall into the trap
yeah, that's essentially saying "don't use thread locals". It's sane advice for free threaded workers. But the matter is, we used thread-locals for good reason (not well-behaved thirdparty libraries)
you can somewhat prevent bugs by tying the continuation to specific threads when it relies on thread locals but can't migrate them. but that will cost you when doing load balancing