-
as seen on Programmers
- Search for 'Programmers'
I'm currently studying engineering in Telecommunications and Electronics and we have migrated from assembler to C in microprocessor programming. I have doubts that this is a good idea. What are some advantages and disadvantages of C compared to assembly?
The advantages/disadvantages I see are:
Advantages:
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm a total beginner when it comes to computer languages, and was asked for a code to write .NET with assembler x86, and i'm stuck here at the moment.
Any basic code lines would work, still couldn't find any on the web.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
One of the stated reasons for knowing assembler is that, on occasion, it can be employed to write code that will be more performant than writing that code in a higher-level language, C in particular. However, I've also heard it stated many times that although that's not entirely false, the cases…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
Since a long time I have thrived for being able to program something I can take with me - a very small computer like a programmable calculator, gameboy, pocket PC or cellphone.
However, I didn't find anything fitting yet!
The thing I'm looking at is the price, because I can't afford to spend too…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I've been a developer since 2009 and I've learnt a lot of languages since, but I've always wanted to understand and be able to code in the lowest level language so I can directly (or at least very close to directly) speak to machines through my code.
There was a point in time when someone showed…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I was trying to solve a hobby problem that required generating a million random numbers. But I quickly realized, it is becoming difficult to make them unique. I picked up Algorithm Design Manual to read about random number generation.
It has the following paragraph that I am fully not able to understand…
>>> More
-
as seen on Internet.com
- Search for 'Internet.com'
<b>The H Open:</b> "Security expert Andreas Bogk warns that, despite recent PHP improvements, the session IDs of users who are logged into PHP applications remain guessable. Upon close examination, the alleged improvements display frightening weaknesses."
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to generate random numbers from a gaussian distribution. Python has the very useful random.gauss() method, but this is only a one-dimensional random variable. How could I programmatically generate random numbers from this distribution in n-dimensions?
For example, in two dimensions, the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My current task is to optimise a Monte Carlo Simulation that calculates Capital Adequacy figures by region for a set of Obligors.
It is running about 10 x too slow for where it will need to be in production and number or daily runs required. Additionally the granularity of the result figures will…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a method, which uses random samples to approximate a calculation. This method is called millions of times, so its very important that the process of choosing the random numbers is efficient.
I'm not sure how fast javas Random().nextInt really are, but my program does not seem to benefit as…
>>> More