BIBO -- O
|
09-22-2020, 09:56 PM
(This post was last modified: 09-22-2020 10:08 PM by lingu.)
Post: #41
|
|||
|
|||
RE: BIBO
(09-03-2020 11:53 PM)lingu Wrote: insert (){ such logic is quite error-prone because w dont know who may write something to the dir 'typical'. I suggest we change it to use casecnt. Code: newdir=/thinker/globe/udata/lingu/testy/procuratorate/tests/typical/$((++casecnt)) Quote: mkdir $newdir no need to do ++ here and the assignment because the code above already handles both. RR zhihao --- working practively, I have implemented the above in cod://yotta commit fae4fb1 |
|||
09-22-2020, 10:17 PM
(This post was last modified: 09-22-2020 10:22 PM by lingu.)
Post: #42
|
|||
|
|||
RE: BIBO
I am deleting the trash cases 11-200.
save a copy first. Code: 21:09:59 lingu@g1b-2:/home/lingu/forest/prada/prada> cd /thinker/globe/udata/lingu/testy/procuratorate/tests/typical Remove trash files. Code: 21:17:23 lingu@g1b-2:/thinker/globe/udata/lingu/testy/procuratorate/tests/typical> rm -rf 1[1-9] [2 Adjust the value of bibo_doc_cnt. Code: [root@g1b-2 typical]# echo "bibo_doc_cnt: 10" > /thinker/globe/soft/bibo/bibo-ext.pcf |
|||
09-23-2020, 12:39 AM
Post: #43
|
|||
|
|||
RE: BIBO
(09-03-2020 11:53 PM)lingu Wrote: talk2thinker.sh 修改首文talk2thinker.sh的伪代码部分为: Code: function work; do RR lingu |
|||
09-23-2020, 12:41 AM
Post: #44
|
|||
|
|||
RE: BIBO
(09-22-2020 09:56 PM)lingu Wrote:(09-03-2020 11:53 PM)lingu Wrote: insert (){ LGTM |
|||
09-23-2020, 12:49 AM
Post: #45
|
|||
|
|||
RE: BIBO
(09-22-2020 09:41 PM)lingu Wrote: driver: we need handle case count well for the bibo system. LGTM |
|||
09-23-2020, 01:08 AM
(This post was last modified: 09-23-2020 01:08 AM by lingu.)
Post: #46
|
|||
|
|||
RE: BIBO
(09-23-2020 12:39 AM)zhihao Wrote:(09-03-2020 11:53 PM)lingu Wrote: talk2thinker.sh You need define that is 'not full'. Otherwise, we cannot translate this pseudocode into code scientifically. Quote: funtion tellThinker; do OK but pls use a separate code block for a function, unless the function is nested in another. I also suggest you use C-style syntactic structures, such as Code: tellThinker() { The C-style representation is usually more concise. Quote: function getresults; do I think they are generally better than before. So I am fine with the updates. |
|||
09-23-2020, 11:34 AM
Post: #47
|
|||
|
|||
RE: BIBO
(09-23-2020 01:08 AM)lingu Wrote:(09-23-2020 12:39 AM)zhihao Wrote:(09-03-2020 11:53 PM)lingu Wrote: talk2thinker.sh while循环已修改为 read $newcasepfn till meet blank line (09-23-2020 01:08 AM)lingu Wrote:Quote: funtion tellThinker; do work内的函数已提取到代码块外面。 函数现已使用C结构表示。 伪代码如下: Code: work() { (09-23-2020 01:08 AM)lingu Wrote:Quote: function getresults; do 已更新首文talk2thinker.sh伪代码 |
|||
09-23-2020, 12:14 PM
Post: #48
|
|||
|
|||
RE: BIBO
(09-23-2020 11:34 AM)zhihao Wrote: not null 已修改为 not full。work内的函数已提取到代码块外面。函数现已使用C结构表示。 I have split the blocks of functions in the headpost, and added an explanation line to the functions. This will make the writing easier to read. Quote:tellThinker() { This logic needs to handle multiple types of requests -- query, insert, delete. Pls design the switching logic and use different functions to do the work. Also, design and implement the delete logic as we discussed -- for delete, rename the original file to be a different name, create a file in the original name and make sure it does not match any keywords. Later, we need move the logic to a C++ program so that it can communicate with think in memory-to-memory data exchange. |
|||
09-23-2020, 12:39 PM
Post: #49
|
|||
|
|||
RE: BIBO
(09-03-2020 11:53 PM)lingu Wrote: procone.py 添加procone.py 伪代码,增加删除功能 Code: main() { RR lingu |
|||
09-23-2020, 12:58 PM
Post: #50
|
|||
|
|||
RE: BIBO
(09-23-2020 12:14 PM)lingu Wrote:Quote:tellThinker() { 已加上switch逻辑 Code: tellThinker() { (09-23-2020 12:14 PM)lingu Wrote: Also, design and implement the delete logic as we discussed -- for delete, rename the original file to be a different name, create a file in the original name and make sure it does not match any keywords. 删除逻辑设计在procone.py内,已在#49回复 |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: