|
And here I am thinking that C++11 and beyond bloated the language a bit.
|
# ? Jul 18, 2018 20:38 |
|
|
# ? Jun 8, 2024 12:54 |
|
Khorne posted:And here I am thinking that C++11 and beyond bloated the language a bit. I''m not sure if the author of the paper is aware of this, but there is a very easy to use library that just loving does all this webview stuff for you - the CEF (https://bitbucket.org/chromiumembedded/cef). Example applications that use CEF include Adobe Acrobat, Steam, Battle.NET, Unreal Engine, Unity, Discord.... It works on Mac/PC/Linux, and in addition to working with C/C++, also has bindings for Python, Java, .NET, Ruby, Go, Swift, Delphi....
|
# ? Jul 18, 2018 22:56 |
|
ryde posted:Just curious, are there reasons beyond console SDKs and time investment, or is there some fundamental problems with Rust that make it a subpar option for games? The fundamental problem with Rust is that it is not the language their game engine is already written in.
|
# ? Jul 19, 2018 00:03 |
|
ryde posted:Just curious, are there reasons beyond console SDKs and time investment, or is there some fundamental problems with Rust that make it a subpar option for games? It's not the wrong answer to "which language should I port my poo poo to, since I totally have the time and opportunity", it's just an annoying answer to every other question.
|
# ? Jul 19, 2018 00:08 |
|
A Practical Lesson On E-Mail Address Validation https://twitter.com/errbufferoverfl/status/1019766775561445376 thread
|
# ? Jul 19, 2018 22:00 |
|
Gmail could have used this instead of + addresses then? https://twitter.com/errbufferoverfl/status/1019776223713538048
|
# ? Jul 19, 2018 22:15 |
|
I'm technically correct and super smug about it, also i wish anyone would actually accept my email address for anything at all
|
# ? Jul 19, 2018 22:54 |
|
I spend all my free time writing angry emails to people whose software doesn't accept my email addresses with extra "@" signs in them enclosed in double quotes. Unfortunately none of those emails are ever received because i send them all from an email address that is composed entirely of punctuation characters, vertical tabs, and probably that one that makes the computer beep as well. "It's in the RFCs" I howl to an uncaring, poorly implemented void
|
# ? Jul 19, 2018 22:59 |
|
MrMoo posted:Gmail could have used this instead of + addresses then? Tested sending to myemail@gmail.com(test). It came through, but the to-field didn't include the (test) bit so you couldn't use it for figuring out which service sold your email.
|
# ? Jul 19, 2018 23:01 |
|
calling up my senator to demand that RFCs be made legally binding
|
# ? Jul 19, 2018 23:05 |
|
I'm gonna build a webserver into a teapot, stick an antenna and a battery on it, and launch it into orbit somewhere between Earth and Mars. If you can find it, you can request a page from it, but it'll only ever respond with a 418 error code.
|
# ? Jul 19, 2018 23:40 |
|
I'd throw at that gofundme
|
# ? Jul 20, 2018 00:12 |
|
TooMuchAbstraction posted:I'm gonna build a webserver into a teapot, stick an antenna and a battery on it, and launch it into orbit somewhere between Earth and Mars. If you can find it, you can request a page from it, but it'll only ever respond with a 418 error code. If you can figure out the solar power situation, you could probably re-house a CubeSat pretty easily.
|
# ? Jul 20, 2018 00:29 |
|
TooMuchAbstraction posted:I'm gonna build a webserver into a teapot, stick an antenna and a battery on it, and launch it into orbit somewhere between Earth and Mars. If you can find it, you can request a page from it, but it'll only ever respond with a 418 error code. HTTP 418 I'm Russell's teapot*
|
# ? Jul 20, 2018 00:30 |
|
Jeb Bush 2012 posted:calling up my senator to demand that RFCs be made legally binding Doomed to be blocked by the International Federation of American Homing Pigeon Fanciers over RFC 1149 I'm afraid.
|
# ? Jul 20, 2018 02:21 |
|
itskage posted:I started making my employees use the code spell checker extension in vs code and it's great... I recently got the devs in my department to do the same and yeah it's pretty great, it's surprisingly clever at knowing what to check and what to leave, it's a clear a lot of thought went into it.
|
# ? Jul 20, 2018 08:35 |
|
Hey GWH, I found a property name just now that should make you feel better by comparison: IsHavingUpdateRights
|
# ? Jul 20, 2018 17:16 |
TooMuchAbstraction posted:I'm gonna build a webserver into a teapot, stick an antenna and a battery on it, and launch it into orbit somewhere between Earth and Mars. If you can find it, you can request a page from it, but it'll only ever respond with a 418 error code. my crowning achievement in my career thus far is implementing an endpoint that will return HTTP 418 in an Actual Real App and getting it through code review
|
|
# ? Jul 20, 2018 19:15 |
it's access restricted I'm not a complete idiot but also yes I am the security horror
|
|
# ? Jul 20, 2018 19:15 |
|
code:
|
# ? Jul 20, 2018 19:26 |
|
thats basically what i expect from researchers writing cuda code
|
# ? Jul 20, 2018 19:38 |
|
Suspicious Dish posted:thats basically what i expect from researchers writing cuda code There is nothing in CUDA that prevents you from re-numbering your parameters when you add more.
|
# ? Jul 20, 2018 20:35 |
|
Athas posted:
I'm param6.75
|
# ? Jul 20, 2018 20:46 |
|
If you want to insert a new parameter, you don't want to have to bump the indeces of all the other ones. Also, If you name things properly, you don't need comments. So, if you do make a comment, just repeat the names of the variables.
|
# ? Jul 20, 2018 21:36 |
|
Athas posted:There is nothing in CUDA that prevents you from re-numbering your parameters when you add more.
|
# ? Jul 20, 2018 22:03 |
|
Dr. Stab posted:If you want to insert a new parameter, you don't want to have to bump the indeces of all the other ones. Proper names like "I" and "u" and "k"
|
# ? Jul 20, 2018 22:08 |
|
Gazpacho posted:whoosh (the problem, therefore, would be the researchers) Well, the researcher problem is to document a parameter called "u" with the description "u". The weird parameter indexing is just... I don't know. This is from Rodinia, a benchmark suite that is unfortunately very popular. These superficial issues are the smallest problem. The bigger problem is that this benchmark suite is not even consistent in how it does profiling or validation (but that's harder to fit in a code block). There are also Actual CUDA Problems with this code; in particular a charming naivety about how you should access memory on a GPU. But that is now what we are here for. This is what we are here for. Here's a teaser: code:
code:
code:
|
# ? Jul 20, 2018 22:12 |
|
Munkeymon posted:Hey GWH, I found a property name just now that should make you feel better by comparison: IsHavingUpdateRights Update Rights? Lmao!!!
|
# ? Jul 21, 2018 00:29 |
|
Athas posted:Well, the researcher problem is to document a parameter called "u" with the description "u". The weird parameter indexing is just... I don't know. Maybe I am the horror here, I don't know. edit: for example, one instance of my program will have 12 variables that don't change during the life of the program but you might stop your program, change the settings, and restart your program. I usually establish a struct for "settings" and then either pass it to relevant functions or keep it as a global. Stuff like time step size when it's constant, bounding box, particle count if it never changes, that kinda stuff. Khorne fucked around with this message at 16:29 on Jul 21, 2018 |
# ? Jul 21, 2018 12:52 |
|
Munkeymon posted:Hey GWH, I found a property name just now that should make you feel better by comparison: IsHavingUpdateRights Not to be confused with shavingUpdateRights
|
# ? Jul 21, 2018 14:00 |
|
"u" and "k" are almost certainly taken straight from an equation
|
# ? Jul 21, 2018 14:46 |
|
Munkeymon posted:Hey GWH, I found a property name just now that should make you feel better by comparison: IsHavingUpdateRights At my last company, English was the second language of a lot of my coworkers and they'd use things like IsHasUpdateRights.
|
# ? Jul 21, 2018 17:44 |
|
HappyHippo posted:"u" and "k" are almost certainly taken straight from an equation Yeah, that was my guess. Someone wrote up a paper saying "here's some math to accomplish this desired result", then the math got turned into a program with as few changes as possible. Happens all the time, sadly. I very much doubt the software engineer aspiration of "meaningful variable names" is going to shift several centuries' worth of single-letter variable names in the world of mathematics.
|
# ? Jul 21, 2018 18:24 |
|
TooMuchAbstraction posted:Yeah, that was my guess. Someone wrote up a paper saying "here's some math to accomplish this desired result", then the math got turned into a program with as few changes as possible. Happens all the time, sadly. I very much doubt the software engineer aspiration of "meaningful variable names" is going to shift several centuries' worth of single-letter variable names in the world of mathematics. Single letter variables are cool and good if used sparingly and carefully. 'i', 'j' and maybe 'k' are nice loop indices ('l' would be pushing it). Shut up, weirdoes who use quaternions.
|
# ? Jul 21, 2018 19:17 |
|
Single letter variable names are fine; I use them myself. But writing C like it's transpiled from FORTRAN is not fine.
|
# ? Jul 21, 2018 19:33 |
|
Zopotantor posted:Single letter variables are cool and good if used sparingly and carefully. 'i', 'j' and maybe 'k' are nice loop indices ('l' would be pushing it). Shut up, weirdoes who use quaternions. At the very least use ii, jj and kk - doing find and replace for "i" even in a single source file is going to be painful.
|
# ? Jul 21, 2018 19:59 |
|
Bruegels Fuckbooks posted:At the very least use ii, jj and kk - doing find and replace for "i" even in a single source file is going to be painful. Can I have a moment of your time to talk about our lord and saviour, semantic refactoring?
|
# ? Jul 21, 2018 20:10 |
|
Bruegels Fuckbooks posted:At the very least use ii, jj and kk - doing find and replace for "i" even in a single source file is going to be painful. If you’re doing textual find and replace on variable names in 2018, you’re doing something wrong. Use the “rename variable” function in your editor. If you’re using an editor without such a function, get a better editor. (If you’re using a language without such an editor, I suggest polishing your resume.)
|
# ? Jul 21, 2018 20:10 |
|
Bruegels Fuckbooks posted:At the very least use ii, jj and kk - doing find and replace for "i" even in a single source file is going to be painful. Even an 80s Emacs supports word boundaries in regular expressions, I would think.
|
# ? Jul 21, 2018 20:39 |
|
|
# ? Jun 8, 2024 12:54 |
|
Bruegels Fuckbooks posted:At the very least use ii, jj and kk - doing find and replace for "i" even in a single source file is going to be painful. I cannot think of a time I have ever needed to rename a loop index variable.
|
# ? Jul 21, 2018 20:43 |