Commit Graph

  • 0d1ea9444b refactor to allow graph lines to be shown at start up Humza Shahid 2024-08-03 06:05:26 +01:00
  • ee2274ffbc improve generated graph lines, so it aligns perfectly with clickPoints (but there are two 'todo' notes: one when the height is greather than the width, and also the constant vector when the program starts is an empty vector) Humza Shahid 2024-08-03 04:40:53 +01:00
  • 5a14f5300b done with code to generate graph lines (but I still need to send new graph lines vector as a DrawMsg) Humza Shahid 2024-08-03 02:56:45 +01:00
  • d946addb81 fix bug in wrong parameter sent to 'genClickPoints' function (code was previously sending 0, when it was meant to be passing the 'wStart' variable) Humza Shahid 2024-08-03 02:48:00 +01:00
  • 57c21448e7 add and improve code to generate graphLines dynamically Humza Shahid 2024-08-03 02:31:35 +01:00
  • 6c444696d4 progress with resizing (triangle and button are always horizontally centred if windowWidth is greater than windowHeight, or windowHeight is greather than windowWidth) Humza Shahid 2024-08-02 13:35:48 +01:00
  • 7a584fea3c progress towards resizing Humza Shahid 2024-08-02 12:46:00 +01:00
  • cff2b4f8df progress towards resizing Humza Shahid 2024-08-02 05:58:22 +01:00
  • 98f6c63b05 correctly generate click points dynamically, even when window resolution is not a square Humza Shahid 2024-08-02 03:09:59 +01:00
  • b01637ba3b a little refactoring Humza Shahid 2024-08-02 00:05:24 +01:00
  • 13063ea2c6 add framebufferSize callback (FFI scaffolding and creating new variant of input_message type but don't react to this message in a meaningful way yet) Humza Shahid 2024-08-01 23:33:54 +01:00
  • c5d9ed4c69 add clickPoints to app-type so we are able to change those points at runtime Humza Shahid 2024-08-01 21:39:09 +01:00
  • 0fc6201231 reduce number of type conversoins required for mouse move callback (and fix the other code which uses it too) Humza Shahid 2024-08-01 21:17:39 +01:00
  • 39b8b45b45 rename to dotscape Humza Shahid 2024-08-01 20:52:20 +01:00
  • 818503d0ac formatting Humza Shahid 2024-07-31 22:28:42 +01:00
  • 16fa1e49af get drawing of triangles implemented Humza Shahid 2024-07-31 22:25:15 +01:00
  • cf38d160d5 minor optimisation (do not have to branch on NO_TRIANGLE | FIRST | SECOND twice in update function; update function was branching on this itself, and call to 'getTriangleStageVector' was branching again which was redundant) Humza Shahid 2024-07-31 21:21:45 +01:00
  • 6e6de41889 keep triangle stages (clicked positions) drawn on screen, until triangle stages resets to NO_TRIANGLE Humza Shahid 2024-07-31 21:15:39 +01:00
  • bd41e7d24d code function to turn work-in-progress triangle (of triangle_stage of) into a square, so user can see where they have already clicked Humza Shahid 2024-07-31 20:58:33 +01:00
  • 087998ac6b return normalised device coordinates together with vector, from getClickPos function Humza Shahid 2024-07-31 14:52:12 +01:00
  • a2c499c933 a bit of fiddling to support different resolutions (as long as aspect ratio of window is 1:1) Humza Shahid 2024-07-31 14:02:23 +01:00
  • d90ed8afa2 minor improvement (using vector literals in 'helpGetTrianglesVector', which is in functional-core/app-update.sml Humza Shahid 2024-07-31 13:34:10 +01:00
  • 95345131ab refinements to 'getClickPos' function (and helper functions) in app-update.sml Humza Shahid 2024-07-31 13:32:22 +01:00
  • 6a2fe3ed18 a bit of formatting (no other changes in this commit) Humza Shahid 2024-07-31 12:30:12 +01:00
  • d18e6f105d additional scaffolding Humza Shahid 2024-07-31 12:27:11 +01:00
  • 29793cccbe refactoring and scaffolding Humza Shahid 2024-07-31 12:00:07 +01:00
  • 94611eceee a little refactoring Humza Shahid 2024-07-31 10:03:30 +01:00
  • 6edb4f2556 remove hardcoded buttonVec, so later I can upload new vector data programmatically Humza Shahid 2024-07-31 08:44:14 +01:00
  • 5525725ef3 add buttonDrawObject and calls to successfully draw button Humza Shahid 2024-07-31 08:41:19 +01:00
  • b1b929e055 add function which generates a drawable vector given a mouse position Humza Shahid 2024-07-30 19:30:59 +01:00
  • b8ab605c90 code function that indicates which area, if any, was clicked Humza Shahid 2024-07-30 19:04:36 +01:00
  • e97768b18a add callbacks for mouse movement and mouse clicking Humza Shahid 2024-07-30 17:10:48 +01:00
  • 75b82fd888 a bit of refactoring (move 'graphLines' constant vector to imperative-shell/constants.sml), and get graphLines background drawn to the screen Humza Shahid 2024-07-30 11:17:19 +01:00
  • d726823249 add function to assist in getting vertex/fragment buffers and shaders, to help with drawing Humza Shahid 2024-07-30 10:48:46 +01:00
  • 6d5ce4cbf6 remove unused constant values from constants.sml Humza Shahid 2024-07-29 22:54:40 +01:00
  • 438f6458a0 create constant vector that looks like graph paper (grid for clicking points later) Humza Shahid 2024-07-29 22:45:10 +01:00
  • 228902297d replace with bland readme Humza Shahid 2024-07-28 14:23:54 +01:00
  • 8b09209d0f first commit Humza Shahid 2024-07-28 14:22:47 +01:00
  • 319ba58b3e init Humza Shahid 2024-07-28 14:22:17 +01:00
  • 9be5d36e50 add benchmark files for line_gap.sml and adjust the Makefile in /bench/ directory to use them Humza Shahid 2024-07-21 00:45:37 +01:00
  • 98f93701fd clean line_gap.sml a little - done with this now Humza Shahid 2024-07-20 14:41:51 +01:00
  • 2fd0df641a remove debugging print statements from line_gap.sml Humza Shahid 2024-07-20 11:31:31 +01:00
  • 8b296d0332 verify that all known bugs have been fixed and that none of the datasets give any issues with string contents or line metadata Humza Shahid 2024-07-20 01:23:38 +01:00
  • 59ac0aded8 after amending a few more bugs, it seems that line metadata and index metadata are handled correctly. At least for svelte dataset; worth checking others as well Humza Shahid 2024-07-20 00:52:49 +01:00
  • fa9e5567ca amend another idx metadata bug, but now there is another one Humza Shahid 2024-07-20 00:28:25 +01:00
  • d71fd80398 amend few bugs - now there is another error with buffer having wrong index Humza Shahid 2024-07-20 00:14:21 +01:00
  • f6c3a01b11 amend error with buffer having wrong index Humza Shahid 2024-07-19 23:56:40 +01:00
  • 26dff0c083 amend a bug to do with tabulating vector Humza Shahid 2024-07-19 20:12:09 +01:00
  • 05e3f3e2db amend a bug to do wth building wrong string output in line_gap.sml Humza Shahid 2024-07-19 19:57:57 +01:00
  • 34139e616b amend another Vector tabulate bug Humza Shahid 2024-07-18 23:16:24 +01:00
  • 120a84fd28 amend another bug Humza Shahid 2024-07-18 22:41:54 +01:00
  • bd8edc3bf4 amend another bug Humza Shahid 2024-07-18 22:27:41 +01:00
  • 898249a1a8 amend bug Humza Shahid 2024-07-18 22:19:29 +01:00
  • b227aa68ba save current status of file Humza Shahid 2024-07-18 15:58:07 +01:00
  • 371bc093ff fix bug revealed by checking for incorrect index metadta in line_gap.sml Humza Shahid 2024-07-18 15:38:31 +01:00
  • 117ffeba6e add check to verify that index is always correct in test program Humza Shahid 2024-07-18 15:36:21 +01:00
  • a2549b9093 amend one bug Humza Shahid 2024-07-16 14:26:53 +01:00
  • 1a325fcc87 fix infinite loop in src/line_gap.sml (still have other errors I need to address though) Humza Shahid 2024-07-16 01:03:09 +01:00
  • d47181921e address some bugs with one deletion function Humza Shahid 2024-07-16 00:07:38 +01:00
  • 99b1a32393 add debug print statements for deletion in line_gap.sml Humza Shahid 2024-07-15 21:48:24 +01:00
  • d8b65a5546 add deletion to compare-testing (deletion does not work properly yet, as expected) Humza Shahid 2024-07-14 17:49:05 +01:00
  • 7c7a4103d8 address compiler warnings and errors in src/line_gap.sml Humza Shahid 2024-07-14 17:43:43 +01:00
  • 1439138d50 additional progress with delete (most helper functions done) Humza Shahid 2024-07-14 17:16:15 +01:00
  • cf18916d00 additional progress with delete Humza Shahid 2024-07-14 16:39:44 +01:00
  • 30cee61f94 progress with delete Humza Shahid 2024-07-14 16:31:03 +01:00
  • 4dd90b5900 progress with delete Humza Shahid 2024-07-14 16:23:42 +01:00
  • 19c5501777 add another helper function for deletion to line_gap.sml Humza Shahid 2024-07-09 23:45:35 +01:00
  • 8d540f4df9 code another deletion helper function for line_gap.sml Humza Shahid 2024-07-07 19:49:37 +01:00
  • d6d2eaac1c complete initial implementation of 'moveRightAndDelete' function in line_gap.sml Humza Shahid 2024-07-07 11:16:06 +01:00
  • 0e384f11e3 a tiny amount of progress with delete Humza Shahid 2024-07-05 12:09:30 +01:00
  • acc7767d24 progress with deletion Humza Shahid 2024-07-04 09:47:35 +01:00
  • a261317e4a partially code another helper function for delete Humza Shahid 2024-07-04 06:29:35 +01:00
  • 9e0dc9734b code first part of delete function Humza Shahid 2024-07-04 05:57:31 +01:00
  • ca3dab5193 wrap helper functions to 'insert' inside 'local ... in ... end' to semantically convey that these helper functions are never used elsewhere Humza Shahid 2024-07-04 03:39:00 +01:00
  • c6fef0499e life if-statement up (so that the test is only done once, to help the branch predictor) Humza Shahid 2024-07-04 03:24:34 +01:00
  • b70763b7b8 clean up line_gap.sml (removed debug editing) Humza Shahid 2024-07-03 18:09:20 +01:00
  • 58a56e9685 address a few things I forgot in line_gap.sml Humza Shahid 2024-07-03 17:41:04 +01:00
  • 3a954ceb4c remove dead comment Humza Shahid 2024-07-03 14:49:32 +01:00
  • 0012304854 verify another if-statement case Humza Shahid 2024-07-03 14:35:38 +01:00
  • 5117678c1d fix another buggy Vector.tabulate case Humza Shahid 2024-07-03 14:05:27 +01:00
  • 65b3db2a6a add comments about sume parts that are verified to work as far as line breaks go Humza Shahid 2024-07-02 06:02:16 +01:00
  • 3e924b1082 verify that moveLeftAndIns works as expected Humza Shahid 2024-07-01 07:40:17 +01:00
  • 1be8a40e48 fix another Vector.tabulate bug (else if statement starting from line 473) Humza Shahid 2024-07-01 06:52:32 +01:00
  • c9a221b5bd clean up one if-statement branch a little Humza Shahid 2024-06-30 16:40:05 +01:00
  • 685a9b0e4d fix another vector joining case Humza Shahid 2024-06-30 16:30:12 +01:00
  • 06ca2a27a4 some bug fixing. (Code is in a messed up/broken/deoptimised stated, but I will fix that once all bugs are address.) Humza Shahid 2024-06-30 15:14:21 +01:00
  • 9e451fea93 ignore compare file in tests/ folder Humza Shahid 2024-06-30 02:09:51 +01:00
  • ca6cf36076 start testing correctness of line metadata Humza Shahid 2024-06-30 02:05:48 +01:00
  • 8ed2bbe94d fixed exceptions that were reaise with regards to array; next is to verify correctness of line metadata Humza Shahid 2024-06-30 01:53:36 +01:00
  • ba7d3579b4 move if statement that only needs to be checked once from helpBinSearch, which is recursive, to binSearch which is not recursive, for negligibly better performance (fewer branch predictions) Humza Shahid 2024-06-30 01:37:52 +01:00
  • 75aba5e8e1 progress on fixing exceptions with regard to vector Humza Shahid 2024-06-30 01:32:59 +01:00
  • 6af253eed9 verified through testing that insertion works as expected as far as contents of string is concerned. However, have added print statements which I need to remove when I have a fully working implementation Humza Shahid 2024-06-30 00:50:38 +01:00
  • de087a86d5 organise repository a little bit Humza Shahid 2024-06-30 00:07:45 +01:00
  • 37653a7c85 address compiler errors/warnings Humza Shahid 2024-06-29 23:40:39 +01:00
  • ffaaa8993e I think implemented insert correctly. Next: check for compile errors, and then test that insert functions as expected. Humza Shahid 2024-06-29 23:27:32 +01:00
  • dfeb4c4647 progress coding fun insInRightList Humza Shahid 2024-06-29 17:46:43 +01:00
  • 99de90febc progress with insertion on line_gap.sml Humza Shahid 2024-06-29 06:50:52 +01:00
  • 2583e0edea begin coding insert for line gap buffer Humza Shahid 2024-06-28 07:16:10 +01:00
  • c5a5bc1986 a little clean up Humza Shahid 2024-05-28 08:10:18 +01:00
  • 1f3736e690 add benchmarks for tiny_rope in bench folder Humza Shahid 2024-05-28 08:01:10 +01:00