Rosetta Code talk:Village Pump/Suggest a programming task: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Assertions: Seems general enough to me.)
Line 26: Line 26:
Are there enough languages that use assertions to warrant a task for them? I know Java, C, and C++ have them, but I'm not sure about other languages. Also, do assertions work similarly enough across all of the languages to make comparison worthwhile? --[[User:Mwn3d|Mwn3d]] 21:22, 3 February 2009 (UTC)
Are there enough languages that use assertions to warrant a task for them? I know Java, C, and C++ have them, but I'm not sure about other languages. Also, do assertions work similarly enough across all of the languages to make comparison worthwhile? --[[User:Mwn3d|Mwn3d]] 21:22, 3 February 2009 (UTC)
: Is there a literary definition of the concept? As far as I know, it's a runtime check of a boolean condition, combined with a debugging aid, such as a breakpoint or logging command. That concept seems fairly universal, at least for procedural languages. I'd be curious what the analog would be for languages like Lisp or Haskell. --[[User:Short Circuit|Short Circuit]] 23:39, 3 February 2009 (UTC)
: Is there a literary definition of the concept? As far as I know, it's a runtime check of a boolean condition, combined with a debugging aid, such as a breakpoint or logging command. That concept seems fairly universal, at least for procedural languages. I'd be curious what the analog would be for languages like Lisp or Haskell. --[[User:Short Circuit|Short Circuit]] 23:39, 3 February 2009 (UTC)

:: I know Modula-3 and Ada both have assertion pragmas. I believe OCaml/F# does too. Oberon-2 has an ASSERT builtin command. I'd say it's "universal" enough that there should at least be libraries for basic assertions in all languages. --01:12, 4 February 2009 (UTC)

Revision as of 01:12, 4 February 2009

Get moving on these

Can we get moving on some of these? --Short Circuit 23:00, 7 November 2007 (MST)

Task guidelines?

Moved to Village Pump:Home/Task creation process discussion

LZW compression and decompression

Sir, I introduce myself as a student pursuing my Mtech VLSI Design in INDIA I am in need of LZW compression and decompression coding in VERILOG HDL Can anyone help.

If possible, send me the coding to,

manekantan@gmail.com

Thanks in advance, Regards, Manikandan

Assertions

Are there enough languages that use assertions to warrant a task for them? I know Java, C, and C++ have them, but I'm not sure about other languages. Also, do assertions work similarly enough across all of the languages to make comparison worthwhile? --Mwn3d 21:22, 3 February 2009 (UTC)

Is there a literary definition of the concept? As far as I know, it's a runtime check of a boolean condition, combined with a debugging aid, such as a breakpoint or logging command. That concept seems fairly universal, at least for procedural languages. I'd be curious what the analog would be for languages like Lisp or Haskell. --Short Circuit 23:39, 3 February 2009 (UTC)
I know Modula-3 and Ada both have assertion pragmas. I believe OCaml/F# does too. Oberon-2 has an ASSERT builtin command. I'd say it's "universal" enough that there should at least be libraries for basic assertions in all languages. --01:12, 4 February 2009 (UTC)