User loginNavigation |
In search for a programming language to replace spreadsheets.Hello, I'm in the search for a good programming language to replace much of what I use spreadsheets for today: The advantage of a spreadsheet is that it's extremely easy and fast to work with. But a spreadsheet can soon become complex with: I would like a language that can be used like this: You define a data field to be a function of multiple arguments like: Amount Income(Company, Month, Year) You can then derive other fields like: Amount Income(Month, Year) = sum(Income(Company, Month, Year)) Amount Income(Year) = sum(Income(Month, Year)) You can also define a lot of data: Amount Income(Company, Month, Year) = [ ("Microsoft", "01", "2008") => 1234, ("Microsoft", "02", "2008") => 15664, ("Sun", "01", "2008") => 1564, ("Sun", "02", "2008") => 1652 ] You can now ask for Income("2008") and get the appropriate amount: (= sum [for all months] [for all companies] Income(Company, Month, "2008")) I know many imperative languages, but I've only experimented very little with other programming paradigms. I'm thinking of learning a declarative language like Prolog for this .. but are there better alternatives? I like the idea of Haskell being strongly typed, but I don't know if it will be good for this. The idea is to be able to model very complex systems, while keeping the calculations concise. Another advantage would be that you are able to reuse formulas. Ideally there should be a nice IDE with the possibility of getting a graphical/tabular view of the calculated data. Have any of you thought of something like this, or even made or heard of something like this? By Søren Haagerup at 2008-07-11 18:27 | LtU Forum | previous forum topic | next forum topic | other blogs | 11118 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
22 weeks 6 days ago
22 weeks 6 days ago
45 weeks 14 hours ago
49 weeks 2 days ago
50 weeks 6 days ago
50 weeks 6 days ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago