Now, will it uses ncurses, X (GTK, Qt, etc.), or something else for the interface? BTW, Win32 = DO NOT WANT. We are on Linux.
I had an idea a week or two ago about a thread where /prog/ writes an ANSI C compiler.., we'll see how this turns out first.
Name:
Anonymous2008-02-03 20:30
J2EE (using AspectJ and in J++, of course), storing all files as XML strings inlined as a cell in a RDMS. All screen formatting will be done in with a client-side BBCode implementation in JavaScript using XMLHttpRequest to fetch and instantly update the EnterpriseTextXML file from the web server that interfaces the database.
>>15
I AM ANTICIPATING THE USE OF A LANGUAGE THAT DOES NOT ALLOW YOU TO CHANGE VARIABLES. THUS WILL WILL NEED TWO FUNCTIONS (MY OTHER FUNCTION IS A LAMBDA).
First, we must agree on what language to write it in.
No, first you must agree on what the fuck are its features, and, more importantly, why exactly it is not going to be just another failure of an editor.
Name:
Anonymous2008-02-03 22:23
>>18
How will we know what features we are able to implement if we don't know the language we're using.
Name:
Anonymous2008-02-03 22:32
>>19
Do you buy a car and then decide how many miles you drive to work in a day?
Name:
Anonymous2008-02-03 22:36
|How will we know what features we are able to implement if we don't know the language we're using.
exactly you cant possibly say what the features are before you pick a language as it might not be possible to implement a certain feature in one language as oposssed to another
Name:
Anonymous2008-02-03 22:37
>>20
Do you buy a car and then decide to take your cdr to work instead?
Name:
Anonymous2008-02-03 23:09
>>21
No, not "exactly". I was making fun of you faggots. You don't even know what you want in a text editor. Cart. Horse. Observe order.
HAY GUYS WHAT I WOULD LIKE IN AN EDITOR, WHICH EMACS MAY HAVE ALREAFDY BUT I HAVE NOT LEARNED EMACS, IS THE ABILITY TO PIPE THE CURRENT BUFFER THROUGH SOMETHING AND FOR THE OUTPUT TO BE PLACED IN A NEW BUFFER OR OVERRIDE THE CURRENT. THEN YOU COULD GREP AND CUT AND SED AND DO LOADS OF STUFF WITH YOUR BUFFER. OR YOU COULD JUST DO IT WITH A SELECTION, AND THEN IT OVERRIDES THE SELECTOIN WITH THE OUTPUT OF THE PIPED COMMAND. IS THAT AEWSOME OR WHAT?
Name:
Anonymous2008-02-04 7:13
>>36
Yes, that is quite awesome. Of course, Emacs already does that, e.g.: !!morse -s|tr -d \\n
or :%!sort
Name:
Anonymous2008-02-04 7:15
>>36
Nope, they already tried that on Mythbusters.
Name:
Anonymous2008-02-04 7:37
Guise, I just wanted us to decide on language based on the fact that if we have a shitton of C programmers and 3 Java programmers, it makes sense to write it in C.
Name:
Anonymous2008-02-04 8:44
PROJECT APPROVED
CODING COMMENCES AT 1800 EST TODAY. BE THERE OR BE SQUARE
Name:
Anonymous2008-02-04 9:09
>>36
I don't understand, somebody please rewrite in plain English ;_;
Name:
Anonymous2008-02-04 9:16
Why write another text editor, when there is already Emacs. Why not write something useful, like a good scheme-mode for Emacs. Something like SLIME except for Scheme.
>>58
It will be harder to use than emacs, vi and ed. Learning it takes about 10 years. But it makes you more productive.
Name:
Anonymous2008-02-04 11:02
WILL IT SUPPORT THE FORCED INDENTATION OF CODE?
Name:
Anonymous2008-02-04 11:11
/prog/ could technically never produce an editor because if all /prog/rammers would agree on ONE set of functions for a text editor it would create a temporal parafoxx and they would all yell to their cabby 'yo homes, smell ya later', then look at their kingdom and they would finally be there, to sit on their throne as the prince of bel air
>>61
It will be incredibly hard to use, have arbitrary restrictions, only support Scheme, and forcibly indent anything it detects not to be Scheme so the code is useless.
Name:
Anonymous2008-02-04 12:34
The help will be SICP. nothing more. nothing less
Name:
Anonymous2008-02-04 12:36
We will design and implement a set of library routines. Each user shall then construct their own editor from those library routines. Language portability is ensured by using C as primary implementation language; there are FFI-type bindings to C from nearly anything not-C.
10 PRINT "TEXT EDITOR"
20 OPEN "FILE.TXT" FOR OUTPUT AS 1
21 PRINT "TYPE :wq! TO SAVE+EXIT."
30 INPUT A$
31 IF A$=":wq!" THEN CLOSE 1:END
40 PRINT #1,A$
41 GOTO 30
Name:
Anonymous2008-02-05 0:26
(loop (print (eval (read))))
Name:
Anonymous2008-02-05 1:02
(loop
(read)
(format t "?~%"))
Behold, I have created mighty ed!
Name:
Anonymous2008-02-05 1:36
/*
* Notepad application
* Copyright (C) 1984-1995 Microsoft Inc.
*/
TCHAR chMerge;
HWND hwndNP = 0; /* handle to notepad parent window */
HWND hwndEdit = 0; /* handle to main text control item */
HANDLE hEdit; /* Handle to storage for edit item */
HWND hDlgFind = NULL; /* handle to modeless FindText window */
HANDLE hStdCursor; /* handle to arrow or beam cursor */
HANDLE hWaitCursor; /* handle to hour glass cursor */
HANDLE hInstanceNP; /* Module instance handle */
HANDLE hFont; /* handle to Unicode font */
LOGFONT FontStruct; /* font dialog structure */
INT iPointSize=120; /* current point size unit=1/10 pts */
TCHAR szFileName[MAX_PATH+1]; /* Current notepad filename */
TCHAR szSearch[CCHKEYMAX]; /* Search string */
TCHAR szReplace[CCHKEYMAX]; /* replace string */
BOOL fUntitled = TRUE; /* TRUE iff notepad has no title */
HMENU hSysMenuSetup; /* Save Away for disabled Minimize */
DWORD dwEmSetHandle = 0; /* Is EM_SETHANDLE in process? */
HANDLE hAccel; /* Handle to accelerator table */
BOOL fRunBySetup = FALSE; /* Did SlipUp WinExec us?? */
BOOL fWrap = 0; /* Flag for word wrap */
TCHAR szNotepad[] = TEXT("Notepad");/* Name of notepad window class */
BOOL fInSaveAsDlg = FALSE;
/* variables for the new File/Open, File/Saveas,Find Text and Print dialogs */
OPENFILENAME OFN; /* passed to the File Open/save APIs */
TCHAR szOpenFilterSpec[CCHFILTERMAX]; /* default open filter spec */
TCHAR szSaveFilterSpec[CCHFILTERMAX]; /* default save filter spec */
NP_FILETYPE g_ftOpenedAs=FT_UNKNOWN; /* current file was opened */
NP_FILETYPE g_ftSaveAs; /* current file was opened */
FINDREPLACE FR; /* Passed to FindText() */
PAGESETUPDLG g_PageSetupDlg;
UINT wFRMsg; /* message used in communicating */
/* with Find/Replace dialog */
DWORD dwCurrentSelectionStart = 0L; /* WM_ACTIVATEAPP selection pos */
DWORD dwCurrentSelectionEnd = 0L; /* WM_ACTIVATEAPP selection pos */
UINT wHlpMsg; /* message used in invoking help */
/* Strings loaded from resource file passed to LoadString at initialization time */
/* To add resource string:
* 1) create IDS_ macro definition in notepad.h
* 2) create string in resource file
* 3) create 'TCHAR*' variable directly below and in notepad.h file
* 4) add &variable to rgsz
* 5) increment CSTRINGS
*/
TCHAR *szDiskError =(TCHAR *)IDS_DISKERROR; /* Can't open File, check disk */
TCHAR *szFNF =(TCHAR *)IDS_FNF; /* File not found */
TCHAR *szFAE =(TCHAR *)IDS_FAE; /* File already exists */
TCHAR *szSCBC =(TCHAR *)IDS_SCBC; /* Save changes before closing? */
TCHAR *szUntitled =(TCHAR *)IDS_UNTITLED; /* untitled */
TCHAR *szCFS =(TCHAR *)IDS_CFS; /* Can't find string */
TCHAR *szErrSpace =(TCHAR *)IDS_ERRSPACE; /* Memory space exhausted */
TCHAR *szNpTitle =(TCHAR *)IDS_NOTEPAD; /* Notepad - */
TCHAR *szFTL =(TCHAR *)IDS_FTL; /* File too large for notepad */
TCHAR *szNN =(TCHAR *)IDS_NN; /* Notepad Note! */
TCHAR *szPDIE =(TCHAR *)IDS_PRINTDLGINIT; /* Print dialog init error */
TCHAR *szCP =(TCHAR *)IDS_CANTPRINT; /* Can't print */
TCHAR *szNVF =(TCHAR *)IDS_NVF; /* Not a valid filename. */
TCHAR *szCREATEERR =(TCHAR *)IDS_CREATEERR; /* cannot create file */
TCHAR *szNoWW =(TCHAR *)IDS_NOWW; /* Too much text to word wrap */
TCHAR *szMerge =(TCHAR *)IDS_MERGE1; /* search string for merge */
TCHAR *szHelpFile =(TCHAR *)IDS_HELPFILE; /* Name of helpfile. */
TCHAR *szBadMarg =(TCHAR *)IDS_BADMARG; /* Bad margins. */
TCHAR *szFileOpenFail =(TCHAR *)IDS_FILEOPENFAIL; /* Can't open File */
TCHAR *szAnsiText =(TCHAR *)IDS_ANSITEXT; /* File/Open ANSI filter spec. string */
TCHAR *szAllFiles =(TCHAR *)IDS_ALLFILES; /* File/Open Filter spec. string */
TCHAR *szOpenCaption = (TCHAR *)IDS_OPENCAPTION; /* caption for File/Open dlg */
TCHAR *szSaveCaption = (TCHAR *)IDS_SAVECAPTION; /* caption for File/Save dlg */
TCHAR *szCannotQuit = (TCHAR *)IDS_CANNOTQUIT; /* cannot quit during a WM_QUERYENDSESSION */
TCHAR *szLoadDrvFail = (TCHAR *)IDS_LOADDRVFAIL; /* LOADDRVFAIL from PrintDlg */
TCHAR *szErrUnicode =(TCHAR *)IDS_ERRUNICODE; /* Unicode character existence error */
TCHAR *szACCESSDENY = (TCHAR *)IDS_ACCESSDENY; /* Access denied on Open */
TCHAR *szFontTooBig = (TCHAR *)IDS_FONTTOOBIG; /* font too big or page too small */
TCHAR *szCommDlgErr = (TCHAR *)IDS_COMMDLGERR; /* common dialog error %x */
TCHAR *szCommDlgInitErr = (TCHAR *)IDS_COMMDLGINIT; /* common dialog error %x */
TCHAR *szLineError = (TCHAR*)IDS_LINEERROR; /* line number error */
TCHAR *szLineTooLarge = (TCHAR*)IDS_LINETOOLARGE;/* line number out of range */
There are four engineers traveling in a car -- a mechanical engineer,
a chemical engineer, an electrical engineer, and a computer engineer. The car breaks down.
"Sounds to me as if the pistons have seized. We'll have to strip
down the engine before we can get the car working again", says the
mechanical engineer.
"Well", says the chemical engineer, "it sounded to me as if the fuel
might be contaminated. I think we should clear out the fuel system."
"I thought it might be an grounding problem", says the electrical
engineer, "or maybe a faulty plug lead."
They all turn to the computer scientist, who up to then had said
nothing, and asked "Well, what do you think?"
"I put on my wizard robe and hat. My other car is a cdr." The computer scientist pulls out a cudder from his pocket, and shoves it down the throats of the engineers. "Take that, motherfuckers!!!!"