|
ManoliIsFat posted:Well it shouldn't be too bad, I'm sure with an environment where something like that is possible, the beautiful and intellectually well-regarded state of Floirda must have a first class backup setup. (good luck) It's a state in New England. They contracted their work out to us down here, though. Also, it's Flordia, not Floirda
|
# ? Oct 11, 2013 16:30 |
|
|
# ? Jun 5, 2024 22:46 |
|
Shinku ABOOKEN posted:Rust compiler is slow because it is written in Rust which is missing a lot of optimizations. There's also that their modules aren't compilation units and instead they pretty much combine an entire project into one blob and then compile it at once, I'm not all that optimistic about them getting down compile times significantly.
|
# ? Oct 11, 2013 16:53 |
|
code:
|
# ? Oct 11, 2013 17:04 |
|
2banks1swap.avi posted:It's a state in New England. They contracted their work out to us down here, though. New Hampshire? Any place intentionally overrun with lolbertairans is going to become a fractal horror.
|
# ? Oct 11, 2013 19:41 |
|
No, not NH. I still don't feel too comfy sharing it. I probably can but oh well. And anyway, it was just dumb luck, it seems. Nothing particularly wrong.
|
# ? Oct 11, 2013 20:20 |
|
Dren posted:One of the main goals of Go was to solve the problem of the C compiler taking forever to parse nested C header includes. I don't support the practice of forcing users to include all header dependencies, I think it's better to write a self contained header with guards and suffer the compilation slowdown, but your code probably compiles faster for the trouble you're enduring. Or you know, just have support for #import because its the compilers loving job to figure it out. Oh, I've seen this header before? Cool, just skip it. There. Done. No duplicates. We also need @import in the standard like yesterday too. I've already told the compiler about my class 27 different times, why not make me also tell the linker? I so thoroughly enjoy telling the computer poo poo it should already know, repeatedly. Otherwise, like why get out of bed in the morning? Now this is crazy talk I know, but why not just have the compiler scan my source files and suss out the prototypes itself, with I don't know... Maybe letting me just stick my qualifiers next to the implementation instead of a completely separate file. Then the compiler could spit out a machine-readable version of the metadata. I wouldn't have to mess with headers at all! Nah... That's too crazy. After all, a compiler that did that would use like 1 whole MB of memory! We can't go around wasting memory willy-nilly! Our PDP-11 only has 512k! Better that we make all programmers deal with it for all eternity.
|
# ? Oct 11, 2013 20:28 |
|
Sounds like you want to be writing C#.
|
# ? Oct 11, 2013 23:45 |
|
Yeah the C preprocessor is trivial to extend.
|
# ? Oct 12, 2013 00:40 |
|
Have you tried D?
|
# ? Oct 12, 2013 02:05 |
|
Bongo Bill posted:Have you tried D? If your complaints are about tooling, D is not the place to run, at least the last time I checked.
|
# ? Oct 12, 2013 16:33 |
|
Dren posted:Got any keywords I can use to search about this? Like, is it in the version of gcc I'm stuck on? (4.4.7) Does it need #pragma once? I'll just leave this here: http://blog.demofox.org/2013/09/13/external-c-header-guards/ it features a coding horror as well as sourced references to why it's such a coding horror.
|
# ? Oct 12, 2013 16:39 |
|
Hughlander posted:I'll just leave this here: http://blog.demofox.org/2013/09/13/external-c-header-guards/ it features a coding horror as well as sourced references to why it's such a coding horror. Yeah that is pretty awful but at least he follows up his post with all the reasons it's a bad idea.
|
# ? Oct 12, 2013 21:08 |
|
Dren posted:Yeah that is pretty awful but at least he follows up his post with all the reasons it's a bad idea. Actually that was me calling him out on it on Facebook.
|
# ? Oct 12, 2013 22:16 |
|
One of my coworkers started doing this:Python code:
|
# ? Oct 13, 2013 07:27 |
|
evensevenone posted:One of my coworkers started doing this: Well they're common imports so you'll want them at some point anyway
|
# ? Oct 13, 2013 13:01 |
|
code:
|
# ? Oct 14, 2013 12:46 |
|
Jarl posted:
Are you talking about overall architecture? The code makes sense.
|
# ? Oct 14, 2013 13:46 |
|
baquerd posted:Are you talking about overall architecture? The code makes sense. Another thread might change downloadFailedListeners while it is being copied. That operation is not atomic.
|
# ? Oct 14, 2013 14:18 |
|
Jarl posted:Another thread might change downloadFailedListeners while it is being copied. That operation is not atomic. That's not what it's protecting against. It's handling the case where the listeners want to remove themselves from downloadFailedListeners when downloadFailed is called on them in the loop, all on one thread. Everything about that code is quite normal other than the word "concurrency" in the comment.
|
# ? Oct 14, 2013 14:22 |
|
Plorkyeran posted:That's not what it's protecting against. It's handling the case where the listeners want to remove themselves from downloadFailedListeners when downloadFailed is called on them in the loop, all on one thread. Everything about that code is quite normal other than the word "concurrency" in the comment. I know it handles that, but the author ALSO thought it would handle what he says in his comment. He actually thought it would be thread-safe. EDIT: I didn't think it was necessary to elaborate since his comment claims the code does X, but does not actually do X. "Concurrency" is the important word. Jarl fucked around with this message at 14:31 on Oct 14, 2013 |
# ? Oct 14, 2013 14:24 |
|
Concurrency doesn't necessarily imply multiple threads executing simultaneously. The comment is saying that it allows listeners to remove themselves while an event is being dispatched without breaking the event dispatching mechanism - the removal of the listener occurs concurrent with an event being processed through the same list of listeners. There's nothing in the comment which suggests thread-safety.
|
# ? Oct 15, 2013 01:30 |
|
Jabor posted:Concurrency doesn't necessarily imply multiple threads executing simultaneously. Okay, it needs to handle thread-safety. The guy who wrote it thought it did, and thus that is what he implied with concurrency. I have never before seen anybody use the word concurrency and not be thinking about multiple threads (they run concurrently). The guy who wrote it thought it would make it thread-safe (which again, it needs to be, and I thought it was not necessary to mention, since it said concurrency, which apparently can be used to mean other things). I hope now it is clear why it is a coding horror. Also the program is littered with thread-concurrency errors. Race conditions AND deadlocks.
|
# ? Oct 15, 2013 08:49 |
|
Jarl posted:I have never before seen anybody use the word concurrency and not be thinking about multiple threads (they run concurrently). The guy who wrote it thought it would make it thread-safe (which again, it needs to be, and I thought it was not necessary to mention, since it said concurrency, which apparently can be used to mean other things). It can be. Concurrency generally just means doing things at the same time. Event-based programming or other use of non-blocking system calls lets you do I/O concurrently, using one thread. Also some languages don't expose a notion of "threads" but you still end up having multiple CPUs executing code at the same time. Also, if you have cooperatively scheduled threads (obviously not the case in Java), that logic would be unhygienic but fine.
|
# ? Oct 15, 2013 10:29 |
|
Jarl posted:
On the plus side, the right way to do it isn't that far off so fixing this should be simple.
|
# ? Oct 15, 2013 13:35 |
|
Volmarias posted:On the plus side, the right way to do it isn't that far off so fixing this should be simple. Indeed. It was just scary, that he thought it would work.
|
# ? Oct 15, 2013 14:36 |
|
Just encountered this in the URL bar on a partner's website: <url w/ query string>... &_statement=SELECT%20*%20FROM%20fabrics%20where%20type%20like%20'%<our product's name>%'%20AND%20photo%20like%20'%jpg%'%20and%20dropped%20=0%20and%20active=1%20order%20by%20name
|
# ? Oct 15, 2013 21:51 |
substitute posted:Just encountered this in the URL bar on a partner's website: That is probably the most unsanitized thing I have ever seen.
|
|
# ? Oct 15, 2013 21:59 |
|
substitute posted:Just encountered this in the URL bar on a partner's website: Holy poo poo. Dooooo itttttttttt
|
# ? Oct 15, 2013 22:12 |
|
What was the game that sent SQL queries to their server?
|
# ? Oct 15, 2013 22:29 |
|
Polidoro posted:What was the game that sent SQL queries to their server? http://forums.somethingawful.com/showthread.php?threadid=2803713&pagenumber=258&perpage=40#post398884189
|
# ? Oct 15, 2013 22:55 |
|
I like how it took less than half of a page for that discussion to deteriorate into a "attacking the SMB servers was equivalent to rape" discussion
|
# ? Oct 15, 2013 23:42 |
|
substitute posted:Just encountered this in the URL bar on a partner's website: the company im renting my house from in london right now had (two years ago) a very similar thing in their website. I informed them that this was a *massive* security problem, and as of just now, its still not fixed.
|
# ? Oct 16, 2013 01:45 |
|
Factor Mystic posted:http://forums.somethingawful.com/showthread.php?threadid=2803713&pagenumber=258&perpage=40#post398884189 Thanks! Remembered reading about it but couldn't remember the game.
|
# ? Oct 16, 2013 03:50 |
|
That meatboy thing was hilarious. I can't believe someone would expose a MySQL server to the internet as their backend. At least the game is fun.
|
# ? Oct 16, 2013 04:24 |
|
Dren posted:That meatboy thing was hilarious. I can't believe someone would expose a MySQL server to the internet as their backend. At least the game is fun. If I recall someone actually took advantage of it to hack it, and claimed that it was to warn the devs or something.
|
# ? Oct 16, 2013 06:27 |
|
substitute posted:Just encountered this in the URL bar on a partner's website: This is absolutely amazing.
|
# ? Oct 16, 2013 07:44 |
|
substitute posted:Just encountered this in the URL bar on a partner's website: I wonder if it accepts a DELETE statement? PS You should probably obfuscate this a little more.
|
# ? Oct 16, 2013 07:52 |
|
substitute posted:Just encountered this in the URL bar on a partner's website: Just remember that besides fixing the obvious security hole, you'd best change all passwords in the MySQL server and pretty much consider any files in that server compromised, too.
|
# ? Oct 16, 2013 08:35 |
|
Beamed posted:If I recall someone actually took advantage of it to hack it, and claimed that it was to warn the devs or something. You could also read the actual story in this very thread. There's even a convenient link literally two posts before yours!
|
# ? Oct 16, 2013 08:54 |
|
|
# ? Jun 5, 2024 22:46 |
|
I remember working for a large company, They do websites for large organisations all running on the same engine. They had a restful SQL service so that devs didnt have to write new DAO/Service calls just call the webservice to get your query....
|
# ? Oct 16, 2013 09:02 |