|
MALE SHOEGAZE posted:gently caress mongo
|
# ? Jun 12, 2017 12:53 |
|
|
# ? May 25, 2024 01:06 |
|
Sapozhnik posted:that is a lie btw nobody is productive in c++ there are two important axioms of c++: 1. every language feature the committee can think of shall be included 2. the runtime cost of any language feature shall be as minimal as possible, preferably zero the rest of the language follows
|
# ? Jun 12, 2017 19:50 |
|
c++ is not poorly thought out, it is very well thought out in great detail by experts, but it sucks because of those goals
|
# ? Jun 12, 2017 19:52 |
|
JewKiller 3000 posted:c++ is not poorly thought out, it is very well thought out in great detail by experts, but it sucks because of those goals As an example: The reason we're getting co_yield and not yield as a keyword is because Solaris has a system call named "yield". Additionally, many agricultural businesses have code where "yield" is a variable name
|
# ? Jun 12, 2017 20:17 |
|
https://twitter.com/LuigiThirty/status/874354614061158400
|
# ? Jun 12, 2017 21:00 |
|
Slurps Mad Rips posted:As an example: The reason we're getting co_yield and not yield as a keyword is because Solaris has a system call named "yield". Additionally, many agricultural businesses have code where "yield" is a variable name Or they could add a reserved word _Yield (every symbol starting with an underscore followed by a capital letter or another underscore is reserved for the language impl) from the namespace they actually do own and then add a header called <coroutine> (header names with no period in them are reserved) that #defines it to yield, but I guess that would be the smart thing to do
|
# ? Jun 12, 2017 23:52 |
|
just make it a keyword that stops being a keyword if there is some other thing named "yield" in scope you already need to know what names are in scope to parse the language correctly, so it's not a huge burden
|
# ? Jun 13, 2017 02:52 |
|
Jabor posted:just make it a keyword that stops being a keyword if there is some other thing named "yield" in scope private String clazz;
|
# ? Jun 13, 2017 03:07 |
|
Jabor posted:just make it a keyword that stops being a keyword if there is some other thing named "yield" in scope please tell me you don't design languages
|
# ? Jun 13, 2017 03:19 |
|
MALE SHOEGAZE posted:gently caress mongo agreed. use marklogic
|
# ? Jun 13, 2017 03:20 |
|
carry on then posted:private String clazz; NO anyway yessss it works, back-face culling and flat shading (with light projected from the center of the camera) baked into DrawTriangle() lol. they need to be split out from there but oh well
|
# ? Jun 13, 2017 03:22 |
|
JewKiller 3000 posted:please tell me you don't design languages if your language is already definitely parseable then it's a horrible idea yeah but you already need to know what names are in scope and what they represent in order to figure out what code:
|
# ? Jun 13, 2017 03:23 |
|
JewKiller 3000 posted:please tell me you don't design languages i propose they use 'yield () -> val'
|
# ? Jun 13, 2017 03:31 |
|
This thread is a fascinating journey into The Computer Language
|
# ? Jun 13, 2017 13:40 |
|
I'm trying to grep a string "[info] 17.21.0-11-38poopbutt-SNAPSHOT" i'm doing code:
doing code:
i want to match all of "[info]" including the brackets wtf is going on?? i've had a bit to drink but this seems totally wrong DONT THREAD ON ME fucked around with this message at 01:49 on Jun 14, 2017 |
# ? Jun 14, 2017 01:46 |
|
what about \[info\]
|
# ? Jun 14, 2017 01:48 |
|
Bloody posted:what about \[info\] my post was wrong i updated
|
# ? Jun 14, 2017 01:51 |
|
god dammit nevermind; sbt colorizes things which i can tell because i am looking at the colorized output
|
# ? Jun 14, 2017 01:51 |
|
Did it work with double backslashes?
|
# ? Jun 14, 2017 02:01 |
|
any of the following should work:code:
|
# ? Jun 14, 2017 02:05 |
|
it was the colors, ya'll
|
# ? Jun 14, 2017 02:18 |
|
wow racist
|
# ? Jun 14, 2017 02:30 |
|
CPColin posted:wow racist proud member of the gnu klux klan
|
# ? Jun 14, 2017 02:49 |
|
MALE SHOEGAZE posted:god dammit nevermind; sbt colorizes things which i can tell because i am looking at the colorized output
|
# ? Jun 14, 2017 05:02 |
|
MALE SHOEGAZE posted:god dammit nevermind; sbt colorizes things which i can tell because i am looking at the colorized output ... it colorizes things when it's not printing to a tty? a bad program
|
# ? Jun 14, 2017 09:51 |
|
Shaggar posted:why in the hell would you use sbt, let alone at a command prompt? Understandably, using a command prompt on windows is absolute hell
|
# ? Jun 14, 2017 10:23 |
|
qhat posted:Understandably, using a command prompt on windows is absolute hell actually it's just win+r "cmd"
|
# ? Jun 14, 2017 10:30 |
|
MALE SHOEGAZE posted:proud member of the gnu klux klan
|
# ? Jun 14, 2017 11:19 |
|
CommunistPancake posted:actually it's just win+x "p"
|
# ? Jun 14, 2017 12:13 |
|
Soricidus posted:... it colorizes things when it's not printing to a tty?
|
# ? Jun 14, 2017 13:03 |
|
qhat posted:Understandably, using a command prompt on windows is absolute hell powers hell is dogs hit
|
# ? Jun 14, 2017 13:17 |
|
qhat posted:Understandably, using a command prompt on windows is absolute hell any command prompt is hell but hes clearly using a Linux which has the worst command prompt
|
# ? Jun 14, 2017 15:20 |
|
so im bad at sql sservercode:
so for example [1, 2, 3, 5, 6, 7, 8] will return 4, which is correct [] (no results) will return 1 thanks to the "ISNULL(@return, 1)", which is correct and [2, 3, 4, 5, 6, 7, 8] will return 9, which is wrong. it should return a 1 could someone please tell me exactly in what way i am an idiot?
|
# ? Jun 14, 2017 16:10 |
|
quick terrible programmer question: i'm working with a db that defines a (read-only) date as 3 ints (year, month, day). I cannot change this fact. i would like to define inequalities on this type that don't require complex functions that gently caress with indexing/optimisers like 'concat', or 'date' to actual parse. i would like to just do inequalities on the ints. I am assuming that all dates are valid i.e. month is never above 12, and none of the fields are 0 or below. What I have, that works is (in scala): code:
|
# ? Jun 14, 2017 16:22 |
|
why wouldn't you just parse the date?
|
# ? Jun 14, 2017 16:43 |
|
Phobeste posted:powers hell is dogs hit i don't mind it, the shell is fine and the language has warts but it's still way nicer than bash scripting. what don't you like about it?
|
# ? Jun 14, 2017 16:44 |
|
BiohazrD posted:so im bad at sql sserver not looking at your code but from your test cases your sql returns the smallest pin+1 where pin is in your set and pin+1 isnt so you should probably add a 0
|
# ? Jun 14, 2017 16:50 |
|
gonadic io posted:quick terrible programmer question: i'm working with a db that defines a (read-only) date as 3 ints (year, month, day). I cannot change this fact. i would feed the ints to a datetime object and check for inequality that way. this is probably wrong.
|
# ? Jun 14, 2017 16:53 |
|
gonadic io posted:quick terrible programmer question: i'm working with a db that defines a (read-only) date as 3 ints (year, month, day). I cannot change this fact. can you not do (a.year, a.month, a.day) < (b.year, b.month, b.day)? that should work in MySQL alternatively you could compare a.year*366+a.month*31+a.day
|
# ? Jun 14, 2017 16:55 |
|
|
# ? May 25, 2024 01:06 |
|
ultravoices posted:i would feed the ints to a datetime object and check for inequality that way. nope, that's correct. use your language's datetime instead of creating your own. alternatively, convert to a datetime in your proc before returning.
|
# ? Jun 14, 2017 17:02 |