What are you working on?
Previous:
/dpt/ - Daily Programming Thread
Other urls found in this thread:
sourceforge.net
twitter.com
fuck opengl
C# a cute
Hey it is you again. Upgrade (actually downgrade) to Vulkan
Did any of you guys have trouble with the math side of programming at the beginning? How did you overcome it?
C# is proprietary slut designed to vendor lock you.
getting rid of state machine sounds nice, but no driver support for older/limited devices so no.
Why are you angry user?
yes mr wilson sir is very cute
Wank over java all you want but getting butthurt over every post mentioning C# .net core is bad for you health.
projecting your butthurt onto others won't make it go away
>system at work is using Microsoft SQL Server
>it's case insensitive by default
Fucking pajeets with their shitty defaults.
>job wants me to transfer calculations from Matlab to the .net system itself
>write equivalent functionality myself
>suddenly linspaces into meshgrids with v4 extrapolating into interp2
>
...
Which two methods from the Thread class must be used when creating/using threads in Java?
This thread is not here to do your homework for you.
I can't afford expert help
The constructor and .start()
:)
durgasoft.com - never seen such a cancer
I need a basic encryption algorith for a shitty non-important offline program.
Rijndael
you have, you're in /dpt/
It is really good for java though. Wish I has some Indian rupoos
Is LISP still used for anything these days? Is there any point in learning it?
a friend of mine is working as data scientist with some pajeets. he told me they understand shit of what they're actually doing
personally cant approve that
emacs for example.
and natural language processing, i know a company working with lisp for NLP
That's been going on for a long time. I was talking to a woman who was a programmer back when COBOL was a common language. Her company (insurance) kept bringing in green-card Indians and the like who would work for a fairly trivial sum in the US, but return to India with a substantial sum.
Anyway, she said they had to practically hang over their shoulder and tell them what to type. Some learned fast and were decent (few), most never bothered to catch on.
Eventually they eliminated her whole department and outsourced entirely.
I'm Rajeesh and I am C# expert employed in Birmingham. White people know no basic facts from Microsoft certification book and call themselves "programmer" . haha
Poor bait
Julia good
Trying to learn C from K&R's book.
This is my solution to exercise 1-14, anything blatantly wrong?
/* write a program to print a histogram of the frequencies of different characters in its input */
#include
int main()
{
int i, n, c, height, characters[27];
i = n = height = 0;
for (i = 0; i < sizeof(characters)/sizeof(characters[0]); ++i)
characters[i] = 0;
while ((c = getchar()) != EOF) {
if (c >= 'a' && c = 'A' && c = 1; --i) {
for (n = 0; n < sizeof(characters)/sizeof(characters[0]); ++n) {
if (characters[n] >= i)
printf("* ");
else
printf(" ");
}
printf("|%d\n", i);
}
for (i = 'A'; i
Le Stack Overflow Experience
>Q: How to do X?
A1: Why would ever you want to do X?
A2: Don't use X, use (unrelated thing) instead
A3: (actual answer)
>pajeets are real women hate in Women in tech
>Eventually they eliminated her whole department and outsourced entirely
haha thats quite a sad story.
Actual answer optional
>actual answer: boost, guava and jQuery
>scroll down more
Carmack uses a scheme as a scripting language.
I was surprised to learn that some gamedevs I know use common lisp for prototyping and shit.
Works for me!
Nice! Thanks for looking through it
It's fine right now, but it still isn't "complete"...
My only complaint is that some of the compiler errors are trash, but that could be fixed in the future.
Jow ForumsOS when?
Nice. C#?
reminder to learn vert.x
It's called Gentoo
Wrong. It is called CloverOS
Most of Jow Forums would struggle to complete a basic gentoo installation. Where brains were not the problem, it would a deficit in will and attention span.
>follow guide
>wait
>???
>uninstall
>Where brains were not the problem, it would be a deficit in will and attention span.
Read: Most of Jow Forums are kids or people that just need an email/porn machine.
lol i thought it was just a meme
brb writing a Gameboy emulator in Clojure. It even has a JIT
Whatever happened to ClojureClr? Why did the tards avoid "dynamic"?
Fuck off. I don't have an email.
Dunno I never touched it. re is "dynamic" tho? The "every type can be assigned to this variable" keyword in C#?
Yeah it is that. I read long ago they were avoiding dynamic something and chose to emit everything at runtime.
That sounds weird I should look into it. It's true that .NET has value classes and true generics so maybe this makes the Clojure approach a little bit harder.
The CIL level has good support for dynamic features. It would be hard in Scala's case but not Clojure which is much simpler and organized.
Ok, which one of you fuckers did this?
Did you know that Python is the fastest growing cancer?
can someone recommend me a text layout library for c++. ideally it uses freetype and is really low level, but can do shit like markup etc. it doesnt even need to render it, I will do that. but it should take a string and layout it for me.
implementation/undefined behavior
>doesnt even need to render it
>it should take a string and layout it for me
what
How many years until I stop making off-by-ones?
benchmark kun, iirc
you know put the glyphs together, do line breaks and shit
harfbuzz
How different is C++ from Java?
I don't want to use Java anymore because Jow Forums told me it's for pajeets, and C++ code is faster
Can I just start writing C++ if I know the basics of C and Java
Having trouble with this python module.
if the folder ./module/ i have a config file
./module/classify.py
./module/config.json
if im inside module it finds the config
but if i call it from ./
i get :
FileNotFoundError: [Errno 2] No such file or directory: './config.json'
should't it check for the file relative to the module folder?
Very.
C++ is even messier. Prolonged exposure to C++ causes brain damage.
It'll give you a head start but you've got a lot left to learn.
Capitalism, Ho!
the greatest game known to man
yes you can.
C++ is a shit load of different ideas and principles put into on language. And the main difference to Java would be "No Garbage Collector"
Although its mighty as fuck. And C++17 is kinda fun and less cancer than older versions.
Optionals., Smart pointers ... makes your life a lot easier
Java isnt that bad aswell, its easy at first sight but thats what programming should be. Considering what design principles and architecture you plan to solve your domain problem should be the complex part
It is OK, user. Don't fight it..
it doesn't; access it as os.path.join(os.path.dirname(__file__), "config.json")
And after the code is in production it turns out that you really shouldn't have done X.
Thanks
>no golang
this explains a lot of the C/C+ questions on SO
And after the code is in production it turns out that you really shouldn't have done.
is this a good way to run several instances of other programs?
in the source code of said programs I send a signal to the parent process, which is this piece of code.
void sigproc(int);
void launch_other_program();
void main()
{
pid_t wpid;
signal(SIGUSR1, sigproc);
launch_terminal();
while((wpid = wait(NULL)) > 0);
}
void launch_terminal(){
pid_t pid;
if ((pid=fork())==0) { /* child process */
execv(path,NULL);
exit(127); /* only if execv fails */
}
}
void sigproc(int dummy)
{
signal(SIGUSR1, sigproc);
launch_other_program() ;
}
kek what a guy.
Programming isn't really related to maths (more to physics). In other words, you don't need to be good at maths.
thanks
what's the use of a linter vs just enabling all the relevant gcc flags?
linter might have more checks
what if you aren't using gcc?
Anyone used Apache Synapse before?
then i guess you enable whatever flags your compiler has. my question was for my usage, though
Linters tend to be more opinionated, which is a nice way of saying they flag tons of non-issues. Static analysis is really where it's at.
How much crap does apache actually make a year?
Everyday there is some {obscure name} apache product that I have no idea about.
apache is a graveyard where software gets donated when it's no longer relevant
>Microsoft is a graveyard where software gets donated when it's no longer relevant
fixed it for you
>don't mind me, I'm retarded
ftfy
What are some scenarios where self-modifying code is useful?
malware
Modify how? Like the ransomware that injected IL at runtime or a python program that modifies its useless text?
As in overriding its own assembly instructions
genetic algorithm, encryption/decryption. cheats
Look up the Wheeler Jump, though it's obsolete by now it was very useful on machines with no hardware stack back in the day.
nope, nope, nope