Saturday, March 26, 2016

Digest for comp.lang.c++@googlegroups.com - 6 updates in 3 topics

Ramine <ramine@1.1>: Mar 26 10:18AM -0700

Hello..
 
 
Hope you have read my previous post about my USL for Delphi
and FreePascal.
 
Please take a look at the source code in the zip file:
 
When you compile the usl.pas , please type this in the
command prompt:
 
usl data.csv
 
 
Here is the output of my program:
 
Peak number is: 449.188
Predicted scalability peak is: 18.434
Coefficient of determination R-squared is: 0.995
 
 
 
The peak number is the peak number of cores (look inside
the csv file) that will give the Predicted scalability peak that
is: 18.434X
 
 
I have used a polynomial regression and i have done other approximations
to find the predicted scalability peak when the derivative must equal an
approximation of 0 and this when the USL coefficient beta equal 0. This
is all about mathematics.
 
 
You can download my USL program from:
 
https://sites.google.com/site/aminer68/universal-scalability-law-for-delphi-and-freepascal
 
 
Thank you,
Amine Moulay Ramdane.
"Öö Tiib" <ootiib@hot.ee>: Mar 26 07:45AM -0700

On Saturday, 26 March 2016 16:14:11 UTC+2, Ramine wrote:
> Hello..
 
Why you again post non-topical irrelevancies about your Delphi and
FreePascal code that process some csv file? Typically such processing
is done in Javascript for to immediately see the resulting graph
in browser.
 
If I remeber correctly you promised not to post that again here in
comp.lang.c++. We can read the other groups when we are interested.
ram@zedat.fu-berlin.de (Stefan Ram): Mar 25 11:47PM

>1. Design an algorithm to print integers divisible by 3, from 1 to N. N should be input by the user.
>a. Write pseudo code of your solution first.
>b. Write the c code for your solution.
 
An algorithm takes two iterators as its first two arguments,
so I have to encode N into two iterators in main, and then
call my custom algorithm with these two iterators.
 
#include <initializer_list>
#include <iostream>
#include <ostream>
#include <vector>
#include <iterator>
#include <algorithm>
 
template< class InputIterator >
void algorithm( InputIterator first, InputIterator last )
{ InputIterator const f{ first }; InputIterator const l{ last };
iota( first, last, 1 ); copy_if
( f, l, ::std::ostream_iterator< int >( ::std::cout, " " ),
[]( int const i ){ return i % 3 == 0; }); }
 
int main()
{ int N; ::std::cin >> N; ::std::vector< int >v( N );
algorithm( v.begin(), v.end() ); }
bleachbot <bleachbot@httrack.com>: Mar 26 02:46PM +0100

bleachbot <bleachbot@httrack.com>: Mar 26 03:13PM +0100

Ramine <ramine@1.1>: Mar 26 09:53AM -0700

Hello......
 
I have just implemented a very powerful tool called USL using
mathematics, please read about it here:
 
http://www.perfdynamics.com/Manifesto/USLscalability.html
 
 
Here it is:
 
Universal Scalability Law (USL) for Delphi and FreePascal version 1.0
 
 
Author: Amine Moulay Ramdane.
 
Email: aminer@videotron.ca
 
 
Description:
 
This program analyzes system performance data with the Universal
Scalability Law (USL), and it compiles with Delphi XE versions and
FreePascal.
 
You have to supply the performance data as a csv file format,
please take a look at the supplied csv file called "data.csv",
the first line of the names of the colomuns of the csv file must
be commented by "#" character.
 
Just compile the usl.pas program and run it by executing it
on the command prompt like this: usl data.csv
 
The Universal Scalability Law (USL) was developed by Dr. Neil J.
Gunther. It can be used to analyze system performance data in order to
learn more about the scalability limitations of the system.
 
Details are presented in the book *Guerrilla Capacity Planning*.
 
Authors of Universal Scalability Law website:
 
http://www.perfdynamics.com/
 
 
You can download it from:
 
https://sites.google.com/site/aminer68/universal-scalability-law-for-delphi-and-freepascal
 
- Platform: Win32 ,Win64,Linux,OSX
 
 
 
Thank you,
Amine Moulay Ramdane.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: